PDA

View Full Version : analytics


RockyMtnHi
08-19-2006, 11:36 AM
Hi,
Is there an easy way to use site analytics? On my other sites I usually include a page that contains the analytics code so I can place multiple sets of code for different analytics sites. I usually use http://www.StatCounter.com and http://www.google.com/analytics/.

Thanks,

Vincent Wright
08-21-2006, 05:00 AM
You have to put JavaScript code somewhere in your template files. The best place is header.tpl since it is included in all the other files so that tracking will be available in all the pages automatically.

Google Analytics requires to include its code before </head> tag. You can include it like this:


...
{literal}
<!-- Google Analytics JavaScript here -->
{/literal}
</head>


Hope this helps.

RockyMtnHi
08-24-2006, 01:47 PM
Vincent.
Thanks. It's in.
Best,