gallery2 goes blank

Hello,

I just installed the latest version of piwik and everything seems to be running so far. Pages get tracked on my wordpress installation (I use the plugin).
However, when I manually add the javascript to my gallery2 template, the entire gallery goes blank, i.e. none of the gallery pages display.
I added the code just before the closing body tag.

Is this a “typical” problem?

Thanks.

figured it out. It’s a smarty problem. With

{literal}
...
{/literal}

the page displays correctly.

This also got me, so I added this to the wiki and posted some friendly blogspam to help the search engines.