Cross-Domain Tracking and header("Location:...")

81 views
Skip to first unread message

Oleg Krupnov

unread,
Jul 16, 2009, 2:33:21 PM7/16/09
to google-analytics-api - GA Data Export API
Hi,

I am looking to set up cross-domain tracking between my website and a
third-party shopping cart website. I have read the relevant
documentation here:

http://code.google.com/apis/analytics/docs/tracking/gaTrackingSite.html#domainAndSubDirectory

As far as I understand, I should replace the link to the shopping cart
with the link like follows:

<a href="pageTracker._linkByPost('www.example-commerce-host.com/
petStoreCart/legalTerms.php');"

Currently, the link to the cart points to a PHP file on my domain
containing header:("Location:...") that redirects to the actual third-
party cart domain. This is a great convenience for me, because when I
want to change the third-party shopping cart website, I only modify
this PHP file, without having to change all links on my website and in
other places.

However, I am confused how I set up the cross-domain tracking in this
case?

Thanks!

Nick

unread,
Jul 16, 2009, 3:01:59 PM7/16/09
to google-analytics-api - GA Data Export API
Hi,

I understand you question is important, although this is a Google
Analytics Data Export API Specific forum.

Our implementation help forum should be able to help you out :
http://www.google.com/support/forum/p/Google+Analytics/?hl=en

-Nick

On Jul 16, 11:33 am, Oleg Krupnov wrote:
> Hi,
>
> I am looking to set up cross-domain tracking between my website and a
> third-party shopping cart website. I have read the relevant
> documentation here:
>
> http://code.google.com/apis/analytics/docs/tracking/gaTrackingSite.ht...
Reply all
Reply to author
Forward
0 new messages