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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Archive /

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

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

How to add Google Analytics tracking code??


Go to End


4 Posts   5610 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.