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
-
Cross Domain Tracking for multiple sub-domains with multi-lingual and culture versions
Hi, I have a question regarding cross-domain tracking that I haven't seen answered completely elsewhere. A client has a main domain, we'll say www.example.com and 4 or 5 sub-domains e.g. shop.example.com, support.example.com, account.example.com and service.example.com. The different sub-domains are managed by different third parties, with just www.example.com and account.example.com under our control. To add a further dimension, these sites all have multi-lingual versions as folders and in some cases multi-cultural versions e.g. www.example.com/de/ for Germany and www.example.com/ch-de/ for German-speaking Swiss. Not every language/culture has an equivalent site in place for each of the sub-domains e.g. the UK support site serves Denmark and Swiss-German users will use the German site: www.example.com/dk/ links to support.example.com/uk/ for support-based content
Reporting & Analytics | | Nobody1565908128979
www.example.com/ch-de/ links to support.example.com/de/ At present, they use different analytics tracking codes and accounts. Moving forward, they would like to consolidate the data together to be able to see the collective and separate performances. They would also like to be able to see goal completions from referrals when someone clicks from the main domain to the sub-domain or across sub-domains or potentially across language and culture too. I have several questions I would really appreciate some guidance on: What will be the best way to configure Google Analytics to achieve this? Will we need to decorate the HTML links in between each of the sites? Will we need to use a new Google Analytics property? It may not be easy to answer this based on the information above, so I'm happy to provide additional information if required. Thanks in advance for your help.0 -
Track social shares of my webpage
Hello ! I've just implemented new images on my website and I would like to know what is the best tool to track them on social media (how many are tweeted, shared on facebook, etc.). The best would be a tool telling me that this photo was shared X times on faebook, Y times on twitter, etc; What is the best tools for you ? Tks a lot !
Reporting & Analytics | | AymanH1 -
How to track click on phone number on mobile device in GA as a goal?
Hi, I work with a lot of physicians and one of the things I'd like to do is add a goal in GA so we can try to track how many visitors are clicking the phone # to call the office from smartphones. Would doing this be as straight-forward as adding a the standard javascript click text that I'd add for an external link? And Is there a way to make a goal only "count" if the user-agent is a smartphone? Because if I attach the JS to the phone #, it's going to be in all of the HTML regardless of which device is used. Unless of course, I mess with the CSS to only make the javascript code appear on certain stylesheets. Thank you!
Reporting & Analytics | | Titan5520 -
Too many links because mega menu within wordpress
I have a mega menu on my website with a lot of product categories. In my site analysis its coming up as a problem because there are too many links and its on every page. Is this something i should worry about or how should i correct it?
Reporting & Analytics | | Inbuilds0 -
Will GA Tell Me How Often Audio Samples Are Listened To?
We have 1000s of audio book samples for visitors to listen to as part of their buying decision. Will Google Analytics tell me how often and what specific audio files have been listened to?
Reporting & Analytics | | lbohen0 -
Tracking pdf downloads
hello, I have a site with 100's of pdf's for download and I would like to track how many people are downloading these, does anyone have a simple solution for this? Is there anyway I can do this in Google Analytics using one piece of code, thanks...
Reporting & Analytics | | Socialdude0 -
Sessions in GA - need clarifications
Hello, Regarding recent change in how Google now defines a session... If a user visits a site from a different traffic source (say Google and Bing ) within 30 minutes, would that show 2 visits now ? Was earlier it considered 1 visit ? Also, sessions ends "at the end of the day" It can be different for different users ? How does Google defines end of the day ? for USA time ? Thanks
Reporting & Analytics | | seoug_20050