Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

Archive /

Our old forums are still available as a read-only archive.

Moderators: martimiz, Sean, biapar, Willr, Ingo, simon_w

How to add Google Analytics tracking code??


Reply


4 Posts   4424 Views

Avatar
nodevice

Community Member, 37 Posts

11 June 2007 at 11:13am

Edited: 11/06/2007 11:13am

Is possible to track Silverstripe site with Google Analytics??

Where should I add the code?

Avatar
Ingo

Forum Moderator, 801 Posts

11 June 2007 at 2:19pm

you can add it straight into the <head>-part your main template (Page.ss).
see http://www.google.com/support/analytics/bin/topic.py?topic=7174 for details

Avatar
nodevice

Community Member, 37 Posts

11 June 2007 at 2:55pm

Thanks Ingo I had my doubts about what code should I use, because there's a special code for php static and dynamic sites.

Now I added the standard code into my page.ss... Is that ok??

Thanks for the help

Avatar
Ingo

Forum Moderator, 801 Posts

11 June 2007 at 5:21pm

not sure what the difference between "static" and "dynamic" means for analytics - but as silverstripe produces plain-jane urls (mostly without GET-parameters) you should be OK.