Google In-Page Analytics Improvements in Google Analytics | Google Web Analytics Consultant - Webanalytics Expert

Thursday, November 8, 2012

In-Page Analytics Improvements in Google Analytics


In-Page Analytics in Google Analytics had a major flaw in attributing the statistics of similar urls in the page. All the similar links will have the same amount of data while viewing through In-Page Analytics tool.

This was persistent for many years and Google Analytics has found a way to fix this issue and give precise statistics for clicks on similar destination links in a given page. In order to make this work two lines of code need to added to the basic tracking code before _trackPageview and enable the enhanced link attribution in the property settings:.

The llustration in the green text furnished below is where the new lines of code
should go in:

var _gaq = _gaq || [];
var pluginUrl =
'//www.google-analytics.com/plugins/ga/inpage_linkid.js';
_gaq.push(['_require', 'inpage_linkid', pluginUrl]);
_gaq.push(['_setAccount', 'UA-XXXXXX-Y']);
_gaq.push(['_trackPageview']);

In addition to the above improvement there are couple of others too.

Read the GA blog post here
For implementation guidelines click here

2 comments: