Research & Development for 3D & the Web

Google Analytics in Sitecore

by on Nov.20, 2011, under Sitecore

The best place to add Google Analytics for a Sitecore website is in your Sitecore layouts files. The layout files are used on all pages so analytics code will be on all pages that way.

One thing to keep in mind here is that you need to remember to add it to any new layouts which might get added or you’ll end up with pages which don’t get tracked. If possible, having a ‘base’ layout which is called into every other layout is preferable so you only need to insert it into that one layout file.


Leave a Reply

You must be logged in to post a comment.

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Blogroll

A few highly recommended websites...

Log In