The errors that you received are due to the fact that javascript uses curly braces as part of its syntax - which trips up smarty.
You can tell smarty to ignore a section by wrapping it in {literal}{/literal} tags. i.e:
- Code: Select all
{literal}
... your analytics code here ...
{/literal}
This only applies when placing code in a smarty template. This is not necessary from any other context.
Your idea of putting it in global_footer.html is a fine one.
The alternative I mentioned is done though the web. Log in as admin, click on "Auction Settings" on the left menu. There is a field called "custom footer" (it may be in a section that is default collapsed, but it is there).
-Steve