Wednesday, May 28, 2014

How to Integrate Google Analytics with SharePoint 2013

Google Analytics is a popular free service for website analytics. Why don't we use Google analytics with our SharePoint sites? Here is how to add Google analytics to SharePoint 2013:

Step 1: Sign-up & Get Google analytics Tracking code
You need to have a Google analytics account sto start with! Signup for the Google analytics account at:,  Login to Google analytics site, Navigate to "Admin" tab and setup new property for your web site by filling the farm, Click on "Get Tracking ID" button to generate  Google analytics tracking code for SharePoint. We need this tracking code to add google analytics to sharepoint site.

google analytics sharepoint integration
 You'll get tracking code something like:
install google analytics sharepoint 2013
Step 2: Edit Master page and Add Google analytics tracking code
Next step is to add Google analytics to SharePoint master page. Edit your master page in 'Advanced mode' with SharePoint designer 2013 and insert this code just before </head> tag.
google analytics in sharepoint master page
Save-Check-in-publish/Approve the master page.

Step 3: view Google analytics data for SharePoint
Wait for 24 Hours and you should see Google Analytics statistics populated based on your site's traffic.
Can I have Google analytics for SharePoint intranet sites?
How Google analytics works? Well, every time when users access the site, Google script runs on their browsers and registers the hit with Google Analytics along with some analytics data. So it doesn't matter even if your website is an intranet site, as long as the user viewing it has access to internet network to reach Google Analytics servers.

Google analytics vs SharePoint analytics:
We all know SharePoint already has some built-in usage analysis capabilities. Why we need Google analytics still? Well, Google Analytics extends these OOTB capabilities and provides more data such as: Say, you have a public internet SharePoint site and want to track which country your visitors are coming from, What they are looking for? How did they get to your site, What browsers they are using, etc.

You can use this technique to integrate google analytics with any version of SharePoint such as SharePoint 2010, SharePoint online, SharePoint foundation, etc.

You might also like:
SharePoint Usage Reports
Usage reports, collaboration and audit for SharePoint.
Document SharePoint Farm
Automatically generate SharePoint documentation.

Check out these SharePoint products:

1 comment :

  1. Yes. This is really helpful for beginners.


Please Login and comment to get your questions answered!

You might also like:

Related Posts Plugin for WordPress, Blogger...