New Google Enhanced Link Attribution...

For general questions and discussions specific to the AbleCommerce 7.0 Asp.Net product.
Post Reply
crazyjoe
Commander (CMDR)
Commander (CMDR)
Posts: 172
Joined: Mon Apr 26, 2010 2:20 pm

New Google Enhanced Link Attribution...

Post by crazyjoe » Mon Jan 21, 2013 9:01 am

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.
Crazy Joe Sadloski
Webmaster
Hot Leathers Inc.
http://www.hotleathers.com

User avatar
mazhar
Master Yoda
Master Yoda
Posts: 5084
Joined: Wed Jul 09, 2008 8:21 am
Contact:

Re: New Google Enhanced Link Attribution...

Post by mazhar » Tue Jan 22, 2013 7:20 am

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.

crazyjoe
Commander (CMDR)
Commander (CMDR)
Posts: 172
Joined: Mon Apr 26, 2010 2:20 pm

Re: New Google Enhanced Link Attribution...

Post by crazyjoe » Tue Jan 22, 2013 8:23 am

Heck yeah! Thanks Mazhar, I appreciate everything you do for me :-)
Crazy Joe Sadloski
Webmaster
Hot Leathers Inc.
http://www.hotleathers.com

Post Reply