Steven JW Kennedy

My Blog

Google Analytics connector for SharePoint 2010

Posted by Steven Kennedy on December 8, 2010


The Codeplex Open Source Project Community have a Google Analytics connector for SharePoint 2010 that allows you to use Google Analytics to track SharePoint 2010 usage. Now for some caveats;

  • You’re going to need a Google Analytics account, they’re free so this isn’t such a big deal
  • You’re going to need to be a SharePoint Administrator to install the ‘.wsp’ package
  • You’re going to need to be okay with SharePoint reporting back to Google what pages are being accessed. This could be a security concern, see comments below.

The Codeplex URL for this package is; http://spgoogleanalytics.codeplex.com/

Once you’ve downloaded the package copy it over to your SharePoint 2010 server. You’re then going to need to know the path to the package. Open a ‘SharePoint 2010 Management Shell’. When I first tried this using the SharePoint Farm account I got an ‘Access Denied’ error so I re-opened the ‘SharePoint 2010 Management Shell’ by right clicking on it and selecting ‘Run as Administrator’.

Run the two commands;

  • stsadm -o addsolution -filename {[PATH]}\ConsultPoint.SharePoint.GoogleAnalyticsConnector.wsp
  • stsadm -o deploysolution -name ConsultPoint.SharePoint.GoogleAnalyticsConnector.wsp -allowgacdeployment –immediate

replacing {[PATH]}, in the first command, with the path to where you saved the package 

Providing the two commands run without error you can now go to the SharePoint Central Administration for the site and enable this new Feature. To do so look under ‘Site Collection Administration’ and select ‘Site Collection Features’. You should see something like;

Site Collections Features 

Just click on ‘Activate’ to activate this new feature for the site collection.

Now back at ‘Central Administration’ under ‘Site Administration’ you should see a ‘Google Analytics settings’ entry, as shown below.

 

Google Analytics Settings - Highlighted

 

Click on ‘Google Analytics settings’. The resulting dialog is shown below. In the ‘Account Id:’ box enter the Google Analytics code for this particular profile.

 

Google Analytics Account Settings

 

Security concerns

When users access SharePoint pages that usage is going to be reported back to Google so that you can use the Google Analytics to identify what’s going on, who’s looking at what, etc. on your SharePoint site. The $64,000 question is what information is reported back and what, if anything, of that information, might give you or your company cause for concern if others where to be able to view it.

As I haven’t gotten any results as yet I don’t know the extent of the information that’s going to be available but at the very least it’s going to include the page URL and title so you have to ask yourself;

  • is any of this information sensitive.
  • What happens when you access a Document Library and then select a document from that library. Is that document name captured?
  • Is it going to capture host names and or IP addresses?

Advertisements

One Response to “Google Analytics connector for SharePoint 2010”

  1. Jeremy said

    Hello,
    I am wanting to use this wsp file but am concerned about sensitive information traveling to Google. I want to use it on a private intranet site but wasn’t sure what information is shared with Google or the public.
    Did you ever find anything out?

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: