09-12-2012 07:38 AM
We are trying to integrate the Google Analytics Ecommerce but are having problems keeping the attribution going from the website to the payment gateway
We have tried a few things but athough we can track revenue on the final page after credit card payment. We lose the cookies for Google Analytics when they cross the domain in the meantime, so this means we cant see which marketing channel the visitor transacts from
Are there any solutions for this?
03-05-2013 12:40 PM
I have been frustrated by this exact issue for over the past few weeks.
I was able to get the ecommerce setup by including the appropriate GA code in the relay-response URL, but like peterloleit, all attribution of the sales was going to my main domain, instead of giving proper campaign attribution.
I tried it ALL using variations of _setDomainName _setAllowLinker _linkByPost, but NOTHING would pass cookies to authorize.net properly.
Finally, I found a workaround that will let me attribute my campaigns!
1) For the pages on my domain, I added in the following GA code...
_gaq.push(['_setDomainName', '.mydomain.com']); _gaq.push(['_setAllowLinker', true]);
2) On my relay-response page, which ultimately shows on secure.authorize.net, I included...
_gaq.push(['_setDomainName', '.authorize.net']); _gaq.push(['_setAllowLinker', true]);
3) I found the following JS that'll let you read cookies, so I used it as an include for the pages on MY domain:
4) Then, I appened the cookie params to the end of the order form's action URL.
So, when the user submits the order, it now credits all those campaign attributes in the ecommerce overview in Google Analytics!
Sorry if any of this is unclear, because I'm not really a programmer (I'm marketing); I am just hacking away at code that was delivered to us and only concerned with the end result, which is being able to see exactly how my campaigns perform.
I hope this was useful, as I would have LOVED a summary like this, but found nothing be people in the same boat with unanswered questions.
Let me know if you want more details.