Topic: How do I add Google Analytics to my Kete?

Topic type:

The steps for adding Google Analytics tracking of your Kete site.

Using Basket Preferences > Appearance > Additional Footer Content

If you are using Kete 1.2  and a site administrator, you may simply got to your site basket's "Tools for basket: Site" > basket preferences > Appearance tab.

Then in the Additional Footer Content field, use the HTML button and paste in the Google Analytics javascript, check Allow forms and other possible insecure elements and attributes in the HTML?and save.

This will include the javascript on every page as long as all the rest of your basket's don't have a different setting for Additional Footer Content.

Manually adding Google Analytics to Kete layout template

If the above doesn't suit what you are doing, here's a more technical approach:

Kete uses a common layout for almost all of its pages.  All you have to do is add the Google Analytics javascript code to that one file.

Assuming you have signed up for Google Analytics and have got a copy of the javascript to add tracking as outlined in http://www.google.com/support/googleanalytics/bin/answer.py?hl=en&answer=55488, you should just edit the following file:

your_app/app/views/layouts/application.rhtml

Add the javascript just before the </body> tag, but after the <% end -%>.

That should do it.  Enjoy your new web statistics tracking power.

Discuss This Topic

There are 5 comments in this discussion.

Read and join this discussion

join this discussion

Creative Commons Attribution-Share Alike 3.0 New Zealand License
How do I add Google Analytics to my Kete? by Walter McGinnis is licensed under a Creative Commons Attribution-Share Alike 3.0 New Zealand License