Cross Domain Tracking in GA (without cross domain links)
-
Hi everyone,
Been doing some research about cross-domain tracking in Google Analytics (preferably Universal Analytics where documentation is a bit spare). All of the tutorials focus on the auto-linking and ensuring links to the other site are taken care of.
I'm considering a site that may not cross-link like that at all (or it may, but won't be the main avenue). A good example is:
www.gap.com
www.bananarepublic.com
www.oldnavy.comNow, they do link to the other brands in their navigation but let's pretend that they don't necessarily do that. Gap Corporate may want to roll up all these domains into a single reporting profile because customers can clearly visit any of those sites on their own and buy. It would be nice to know that Visitor X bought 2 items from gap.com and 3 from oldnavy.com... and of course, here were their campaigns, etc. From what I am reading, I am not sure this is really possible. It seems that the cross-domain code is really only best for when my main site links to another domain for checkout or something. But in my example, we are definitely not in control of that kind of behavior.
Thoughts? Perhaps I need to recommend they go with subdomains only which Universal GA seems to handle quite fine out of the box. Thank you!
-
Google Analytics uses first party cookies to track visitors which means a small text file is stored on your computer associated to the domain of your site. This files stores a unique visitor ID and for security reason is only accessible by the associated domain.
If you want to track another domain, without double counting visitors that go to both, you must use the link code you've seen in GA documentation. What the code does is copy the visitor ID from one cookie under one domain to a cookie under the linked to domain.
Sorry if that was a bit technical but the upshot is: use subdomains, live with double counting or use a web analytics tool that also uses third party cookies as well as first party, such as Webtrends.
-
Just thought I'd follow up after doing a lot more research. It's now my understanding that cross-domain GA will only work if you are moving from one domain to another via onsite links or form posts. It won't do any good if the user visits Domain 1 and Domain 2 independently (they won't look like the same visitor in this case).
If such a thing is required, it seems that sub-domain usage is the only way to account for both types of behaviors (cross domain links and random cross-domain visits).
-
Thanks John - the gap for me in the documentaion has to do with this:
It discusses traffic moving from A.com to B.com, in either direction (via links). Does this also work if there are never any links between the sites. How would the cookie pass and true up? This parent company has two business lines and wants things to role up if say the user visits Site A on his own accord and buys something. Then a few days later, goes to site B and does the same. Thanks!
-
I can't speak for Universal GA, but in standard Google Analytics you can use one tracking script across multiple domains with no problem (Google documentation on that). You can then set up a GA profiles for each of the three domains in your example, and a profile to aggregate them, so you can track how each site is doing on its own, and how all three are doing in aggregate. You can do this with both subdomains or top-level domains.
Got a burning SEO question?
Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.
Browse Questions
Explore more categories
-
Moz Tools
Chat with the community about the Moz tools.
-
SEO Tactics
Discuss the SEO process with fellow marketers
-
Community
Discuss industry events, jobs, and news!
-
Digital Marketing
Chat about tactics outside of SEO
-
Research & Trends
Dive into research and trends in the search industry.
-
Support
Connect on product support and feature requests.
Related Questions
-
GA Landing Page Inaccuracies
I had seen a thread on this a while back but no solution posted. There was a link posted to someone else explaining the issue but I got a 404 when clicking. Have a client that does mostly PPC and they are getting their conversion page showing up as landing page from paid many times. This is definitely not a sitelink, etc. The only way you get to this page is if you filled out the form. There are a few other pages showing up as landing pages that don't make sense too. Can this be attributed to someone being "inactive" for 30 minutes and then coming back and performing an action on this page (leaving)? If so, does this double count the conversion if a page visit here is a conversion? Just trying to make sense of the landing page report showing so many instances of our conversion page. Thanks in advance!
Reporting & Analytics | | jeremyskillings0 -
GA Internal Site Search Correct Query Parameter?
Hi Guys, Recently added GA internal site search to a sub-folder: http://tinyurl.com/jhm9cyl Just want to confirm would the query parameter be: /search/ Or different because it's a sub-folder? Cheers.
Reporting & Analytics | | jayoliverwright0 -
Universal Analytics & Google Tag Manager - Track URLs that include hashes
Does anyone have any experience tracking URLs that include hashes (#) using Universal Analytics and Google Tag Manager? Can it be done using GTM's container for UA, using the "more settings" options? Or building another tag to work with the GTM UA container? The fallback I'm considering is implementing the UA code in GTM for every page as Custom HTML with the "ga('send', 'pageview', location.pathname + location.search + location.hash);" solution, rather than GTM's specialized UA tag. I'm not yet sure what problems may arise from that, if any. Thanks in advance.
Reporting & Analytics | | 352inc0 -
Goal tracking in Google Analytics
Hi folks I read from various sources that if you setup goals in Google Analytics each of these goals can only be fulfilled once per visit. Also some sources suggesting that only one goal from each goal group can be fulfilled per visit. On our site we have a goal for external links since this provides value to partners. Some users do open an external link in a new tab, then come back to the main site. Any further goal completions would then not get tracked. Since we apply a result based payment model for our work this means we are literally loosing money. Anyone has official info from Google on this? Can it be configured? How long is a visit? Thanks a million and have a great day. Fredrik
Reporting & Analytics | | Resultify0 -
Switching from synchronous to asynchronous code in GA
Morning all, I'm looking to integrate GA with Webmasters tools but to do so I need to have the new asynchronous GA code implemented into my website. Now, I'm happy to just copy and paste the new code into my site footer, but will that any effect on the data that I've already tracked? Is there any reason why this is really not a good idea? Thanks for your help,
Reporting & Analytics | | theshortstack0 -
Huge Ranking drop without touching the page
I was ranked #5 for the keyword "Become a Sportscaster" - had been in the top 10 for months, then all of a sudden dropped to #46. I haven't touched this page in a few months, so I don't think I messed anything up. Any thoughts on why such a dramatic drop would happen? Brian Clapp Founder, SportsTVJobs.com
Reporting & Analytics | | sportstvjobs0 -
How do I track a PDF?
I have this eBook in PDF and I don't know how to track it: http://www.shipoverseas.com/PDFs/how-to-buy-a-car-in-usa-and-ship-it-overseas.pdf I ultimately want to do like SeoMoz in their Ranking Reports: Export to PDF Anybody have a quick idea on how to do this?
Reporting & Analytics | | Francisco_Meza0 -
Problem when searching for "link:www.mysite.com" vs "link: www.mysite.com"
Why does a search for "link:www.mysite.com" show no results, but when there is a space before www.mysite.com it shows results? The same happens for "link:www.mysite.com" (nothing shows up), but when I search for "link:www.mysite.com/index.php" it returns results. Is there a problem I am missing? Thanks so much!
Reporting & Analytics | | EmilyP0