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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Google Analytics in footer OK?


Reply


4 Posts   1232 Views

Avatar
Web Designer Perth

Community Member, 49 Posts

26 June 2009 at 1:25pm

I have read elsewhere that people placed in the code in page.ss.

I have a footer that is common to all my page types/templates, so is it OK just to paste it there?

TIA.

Avatar
Willr

Forum Moderator, 5513 Posts

26 June 2009 at 3:46pm

Yep as long as that footer is included on everypage then it is fine. It is recommended that the google snippet is just above the closing </body> tag.

Avatar
BuddhaSource

Community Member, 57 Posts

27 June 2009 at 10:14pm

Would still recommend page.ss . As there are some more javascript thats included by SS before </body>

There was a module for this but I guess it does not support new google analytical code ga.js

Avatar
Web Designer Perth

Community Member, 49 Posts

29 June 2009 at 3:02pm

Thanks guys.