Google Analytics - That was easy!
I thought it was about time that I try out Google Analytics and, unlike my foray into playing with Google AdSense, set out to get the scripts embedded right away. I can't believe how easy it was...
- Go to http://www.google.com/analytics/
- Register
- Copy 3 lines of code to your clipboard.
- Here's the tricky part - PASTE.
For those running a Community Server site in single blog mode, an easy way to drop the tags in your site for Google Analytics is to grab the LayoutTemplate.ascx file in the /themes/blogs/[themename]/ folder. At the bottom of the file you should have something like this:
<div id="footer">
<CS:Footer runat="server" id="Footer1" />
</div> Right after that closing tag for the footer div, add your Google code - includes a script tag like this:
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
That's about it - now just chill and serve warm when your guests arrive...