Forums / Install & configuration / Problem with adding Google Analytics code / Comment11431
Gaetano Giunta
Wednesday 23 September 2009 5:19:51 am
@Mik: those pieces of code are in fact html, not javascript.
That means that you need to add them not in one of the javascript files included in your page, but directly in your page's html code.
The standard way to do that is to find out which template files are used by Exponential to render your pages into html and add your bits there - you should enable debug output and the list of used templates (you can do it using the checkboxes in the right hand column of the admin interface), navigate back to the website and look at the list of templates used, displayed at the bottom of the page. Look out for a line reading "pagelayout.tpl": it should report the exact name of the template you need to modify.
Principal Consultant International Business Member of the Community Project Board