How do I track a primary domain and a subdomain as single site in Google Analytics?
-
Our website consists of a primary domain (marketing focused) and subdomain (ecommerce platform). The two sites look and function as one site even though they are using different technology.
I would like to track the primary domain (example.com) and the subdomain (shop.example.com) as a single site in Google Analytics. The subdomain will be set up with GA ecommerce tracking as well.
Can someone provide an example of the GA snippet that each would need?
-
I haven't read that article before, but from quick glance it does sound right and make sense, so, most likely yes, you'll have to do that. However, it's not required, it's just for ease of reading your google analytics data.
-
What about ignoring self-referrals, prepend hostname to request URIs, and Ga.js / doubleclick.js only: set domain name?
Do I need to do any of that?
https://mza.bundledseo.com/blog/cross-domain-subdomain-tracking-in-google-analytics
-
Hi. In new Universal Google Analytics you don't have to do anything special. Just use the same GA code on both domain and subdomain.
https://productforums.google.com/forum/#!topic/analytics/H3Q55xn91Pk
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
-
What Analytics Do You Use To Track IOS and Android?
We have about 600k downloads of our app and would like to know what cost effective analytics tool you use to gain insight into what your app users are doing? Thanks! Best... Mike
Reporting & Analytics | | 945011 -
How to track google auto search suggestion click?
Hello Guys, In google.co.uk when I search SEL and google gives me option of different different sites and when I click on any one site then that click tracking I need. I have attached the screenshot to understand easily. Is it possible to track such things or possible via server logs etc? TV99h
Reporting & Analytics | | micey1231 -
In google analytic for google /cpc it is showing url with 404 which even not exists in my database
Hello All, In google analytic for google /cpc it is showing url with 404 which even not exists in my database that also more than 300 per day. How can it is possible? it is showing /black-friday-offers but I don't have such page. Thanks!
Reporting & Analytics | | pragnesh96390 -
Analytics Tracking in China
I am setting up a Chinese domain and I was wondering if anyone has experience with using Google Analytics for tracking in the country and if it really works or if Baidu is the better solution for the website. The website will be hosted in the US so I don't know if that makes any difference with getting around "The Great Firewall". I would prefer to us GA if possible because I am extremely familiar with the platform but I am more concerned with getting accurate tracking data for the site. Thank you in advance and any help would be greatly appreciated. Brooke
Reporting & Analytics | | Ryan_Henry0 -
Does Google encryption of keyword data impact SEO revenue reporting in Google analytics?
Hi there, I know Google has been encrypting SEO keyword data which they rolled out in September 2013. My question is - will this impact SEO revenue figures reported in Google analytics? I have been monitoring SEO revenue figures for a client and they are significantly down even though rankings have not lowered. Is this because of Google's encryption? Could there be another reason? Many thanks!
Reporting & Analytics | | CayenneRed890 -
Goal Totals in Google Analytics
How do I get a cumulative tally of all the goals reached in google analytics? I've been using the percentages currently, but I was wondering if there was an easier way. Thanks
Reporting & Analytics | | OOMDODigital0 -
Google Analytics
Is there any way around being able to set up 20 goals in Analytics? What if one of my clients want to set up 10 pages with separate actions to track on each page. Will then each actions count as a separate goal? If this is the case, how could I work around creating more than 20 goals? Would I have to look into hiring/buying a third party or separate software? Your help is greatly appreciated.
Reporting & Analytics | | flcity150 -
Viewing stats for a single webpage in Analytics
I have Google Analytics and can't figure out how to generate stats for a single page on my site. I would like to know what websites are referring this page, time on site, unique views, etc.
Reporting & Analytics | | StreetwiseReports0