Hi,
I need to track goals/conversions that happen on 2 domains.
Between my domain and the shopping cart domain.
Now Google tells me that I need to append javascript code to my links to push the cookie from my domain to the shopping cart domain. It has to be the same cookie in order to track conversions, logically.
Now, my GA code is present on my website and on the shopping cart and that's all that matters since this is where the conversions happen.
Here's the example they give:
The thing is I don't have any links that send the user from my domain to the shopping cart domain. The links go through an aff network, then to the merchant network, then to the shopping cart.
Since I don't have links to push the cookie to the shopping cart domain and can't use the "onclick" function, is there any other way to push the cookie to the shopping cart domain automatically, when my page loads?
If it's not possible, then there might be a way to push the cookie when the user clicks on ANY of my links WITHOUT the user being redirected to the shopping cart domain...
Any javascript hero out there?
Thanks.
I need to track goals/conversions that happen on 2 domains.
Between my domain and the shopping cart domain.
Now Google tells me that I need to append javascript code to my links to push the cookie from my domain to the shopping cart domain. It has to be the same cookie in order to track conversions, logically.
Now, my GA code is present on my website and on the shopping cart and that's all that matters since this is where the conversions happen.
Here's the example they give:
Code:
<a href="http://www.my-website.com/index.html"
onclick="_gaq.push(['[URL="http://code.google.com/apis/analytics/docs/gaJS/gaJSApiDomainDirectory.html#_gat.GA_Tracker_._link"]_link[/URL]', 'http://www.shoppingcart.com/buy.html']); return false;">See my blog</a>
The thing is I don't have any links that send the user from my domain to the shopping cart domain. The links go through an aff network, then to the merchant network, then to the shopping cart.
Since I don't have links to push the cookie to the shopping cart domain and can't use the "onclick" function, is there any other way to push the cookie to the shopping cart domain automatically, when my page loads?
If it's not possible, then there might be a way to push the cookie when the user clicks on ANY of my links WITHOUT the user being redirected to the shopping cart domain...
Any javascript hero out there?
Thanks.