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
> Are standard web server logs available as well?
Yes, though your hosting provider will need to set them up to be processed for statistics (though you can examine them raw). They are simply Apache standard logs (or nginx if you are running much older versions of Kete) and you can use standard tools (e.g. awstats) to produce reports on a periodic basis (i.e. every ten minutes the statistics page gets updated).
Depending on what is set up, your hosting provider may have log rotation enabled that may discard older logs or simply compress them for archiving. Awstats and other log analyzers can go through old logs if necessary to build up the statistics before you start periodic log analysis.
Tags: statistics, logs, awstats
Google analyetics is great for tracking consumer behaviour. How about tracking new topics created etc?
You can derive different reports from running different searches.
I.e. http://old.kete.net.nz/en/blog/all/topics/of/event?date_since=2009&sort_direction=&sort_type=date
For any search, you can track new results by subscribing to the corresponding RSS feed:
http://old.kete.net.nz/en/blog/all/topics/of/event/rss.xml?date_since=2009
I tend to simply subscribe to all new items added to a site, i.e. RSS feed for all items on site
Tags: statistics, searches, search, RSS, feed, feeds
You can also find contribution numbers for individuals in the site members list or on the individual's profile page.
Or by clicking on their displayed name anywhere it appears.
I.e. http://old.kete.net.nz/en/site/all/comments/contributed_by/user/282-clayjars/
Tags: statistics, reports, users, contributors, creators, contributions, creations, RSS, search, feeds
pws1959
said Server logs
Are standard web serve logs available as well?