<div dir="ltr"><div dir="ltr">Thanks very much, my wording was very loose.<div><br></div><div>The instructions say" Include the JavaScript SDK on your page once, ideally right after the opening body tag."</div><div><br></div><div>ngā mihi</div><div><br></div><div>SImon<br><br></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, 6 Sept 2021 at 05:04, Petko Yotov <<a href="mailto:5ko@5ko.fr">5ko@5ko.fr</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 05/09/2021 11:10, Simon wrote:<br>
> Does PmWiki have the ability to specify scripts to be added to a page<br>
> directly after the body tag?<br>
<br>
$HTMLFooterFmt is intended for this:<br>
<br>
   $HTMLFooterFmt['my-recipe'] =<br>
     '<script src="$FarmPubDirUrl/my-recipe.js"></script>';<br>
<br>
Or possibly, if you want to allow customization:<br>
<br>
   SDVA($HTMLFooterFmt, array('my-recipe' => '<script ...>'));<br>
<br>
<br>
BTW, this is not added "after" the </body> tag but just before it. After <br>
it would be invalid HTML.<br>
<br>
Petko<br>
</blockquote></div>