Loading...
 
Skip to main content

Features / Usability


Google Analytics Error

I tried to add the Google Analytics code to a site tonight that is running Tiki 12.0. I copied the code into the site header, and now I'm getting the following error.

Fatal error: Uncaught exception 'SmartyCompilerException' with message 'Syntax Error in template "bc41fafc1f2e0e28535fdd85c2e5db8bfaa43c5e" on line 2 "(function(i,s,o,g,r,a,m){i'GoogleAnalyticsObject'=r;ir=ir||function(){" - Unexpected "[", expected one of: "}" , " " , ATTR' in /home/content/54/5206954/html/vendor/smarty/smarty/distribution/libs/sysplugins/smarty_internal_templatecompilerbase.php:667 Stack trace: #0 /home/content/54/5206954/html/vendor/smarty/smarty/distribution/libs/sysplugins/smarty_internal_templateparser.php(3144): Smarty_Internal_TemplateCompilerBase->trigger_template_error() #1 /home/content/54/5206954/html/vendor/smarty/smarty/distribution/libs/sysplugins/smarty_internal_templateparser.php(3209): Smarty_Internal_Templateparser->yy_syntax_error(64, '[') #2 /home/content/54/5206954/html/vendor/smarty/smarty/distribution/libs/sysplugins/smarty_internal_smartytemplatecompiler.php(105): Smarty_Internal_Templateparser->doParse(64, '[') #3 /home/co in /home/content/54/5206954/html/vendor/smarty/smarty/distribution/libs/sysplugins/smarty_internal_templatecompilerbase.php on line 667

I'm not sure if I copied it incorrectly, but I cannot get this error to go away. I went into the database and removed the code in the user preferences. This didn't work. I then removed the preference completely, and it still didn't work.

So two questions...

1. Most importantly, is there somewhere else this code is stored that I need to remove?
2. Has anyone had success with Google Analytics in 12.0? I've installed it on other sites, and I thought I had put it in the header but maybe not. Is there a better place to put it.

Thanks,
Greg