Page 1 of 1

New Google Enhanced Link Attribution...

Posted: Mon Jan 21, 2013 9:01 am
by crazyjoe
Google recently announced it will implement enhanced link-tracking functionality.
Here is Google's instructions... http://support.google.com/analytics/bin ... ctx=topic
I'd like to get this setup on my Able 7.0.7 site as soon as possible. Can someone please show us how the code in the GoogleAnalyticsWidget.ascx.cs should look with this added to it.

Re: New Google Enhanced Link Attribution...

Posted: Tue Jan 22, 2013 7:20 am
by mazhar
I believe this can be done easily. Edit your Website/Conlib/GoogleAnalyticsWidget.ascx.cs file and locate following code

Code: Select all

_GoogleAnalyticsJs.AppendLine("var _gaq = _gaq || [];");
and update it like

Code: Select all

_GoogleAnalyticsJs.AppendLine("var _gaq = _gaq || [];");
_GoogleAnalyticsJs.AppendLine("var pluginUrl = '//www.google-analytics.com/plugins/ga/inpage_linkid.js';");
_GoogleAnalyticsJs.AppendLine("_gaq.push(['_require', 'inpage_linkid', pluginUrl]);");
save the file. I think this all thats needed as code change.

Re: New Google Enhanced Link Attribution...

Posted: Tue Jan 22, 2013 8:23 am
by crazyjoe
Heck yeah! Thanks Mazhar, I appreciate everything you do for me :-)