ooto.info

Finally up on CS2007 - getting ready for 2008 - it is AMAZING!

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...

  1. Go to http://www.google.com/analytics/
  2. Register
  3. Copy 3 lines of code to your clipboard.
  4. 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...

Comments

Dennis van der Stelt said:

Isn't that what "Raw Header" is for, under Admin -> Settings -> Site name & description?

# September 1, 2006 6:25 AM

CarKnee said:

The easiest way to add it to your site is through the "Raw Header" however, if GA ever goes down it will bring your site to a halt. That is why GA suggests adding it right above the end body tag.

# September 1, 2006 6:29 AM

scott wilson said:

dude, that is hilarious... I just got this installed on my site this week and was thinking about bloggin' about it... you beat me to the punch hah

# September 1, 2006 11:04 AM

Adonis said:

Dennis, THE Scott Water was saying the same thing this morning - you can do this without touching the code and it's pretty reliable.  I like what CarKnee had to say.  Basically, both ways work great; you just have to decide if you want to edit code or if you like using the control panel.  Hey Scott, what are you going to blog on next?  Why do I ask?  Oh, no reason... ;)

# September 1, 2006 1:04 PM

Community Server Daily News said:

from the editor occasional messages that don't fit anywhere else We'll be adding a weekly recap of the

# September 1, 2006 2:22 PM

Announcements said:

Welcome to our first installment in bringing you the week's top news stories from the Community Server

# September 2, 2006 10:57 AM

Eric Falsken said:

You can also edit /Themes/default/Masters/Master.aspx and put it at the bottom. Then your analytics code will appear on almost every page in your site.

# September 8, 2006 12:34 PM

Eric A. Duncan said:

After trying this on a few websites in the past, I still very much prefer Urchin.

Even though Google bought out Urchin to get the user base (they discontinued the product immediately), I still install it on all of my servers.  

It provides so much better reporting.

But I guess it does come down to that old saying, "Something is better then nothing."  

# October 7, 2006 2:22 PM

Daily News Faq List said:

Telligent&#39;s Adonis Bitar shows us how easy it is to add Google Analytics to our sites . Sidebar:

# November 22, 2006 10:21 AM

Community Server Bits said:

Telligent&#39;s Adonis Bitar shows us how easy it is to add Google Analytics to our sites . Sidebar:

# March 12, 2007 10:31 AM
Leave a Comment

(required) 

(required) 

(optional)

(required)