Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Google analytics setAllowAnchor to change URL tracking
 
atoodog
Jr. Member
 
Total Posts:  2
Joined:  2013-01-11
 

Hi,

I did not find the solution in the forum, thats why I create a post : I would like to change the method to track URL via Google Analytics on Magento CE :
Now URL tracked starts with ?utm_source.....
Because of duplicate content issue, I want the to start with #utm_source....

I would like to implement the setAllowAnchor method and I need to add one line into the middle of my existing Google Analytics TC :

var pageTracker._gat._getTracker(‘UA-xxxxxx-y’);
pageTracker._trackPageview();

Somewhere in between those two lines you need to add a line of [removed]

var pageTracker._gat._getTracker(‘UA-xxxxxx-y’);
pageTracker._setAllowAnchor(true);
pageTracker._trackPageview();

Could you please indicate where to do that in magento CE (v1.7) ?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top