Subdomain tracking in GA
-
Hi Moz community. Wonder if you could help us out with a baffling Analytics issue.
Are there any reasons why the _setDomainName() function in Google Analytics wouldn't track across subdomains correctly? We have been seeing visits to a subdomain come up as referral traffic, even after implementing the right tracking code.
Would be interested to hear everyone's thoughts on this. Thanks in advance.
-
If you have set it up correctly to track across subdomains a common cause of subdomain referrers is if you have pages that don't have the GA code on. When a visitors lands on one of these then navigates to a page that is tracked their referrer will be the subdomain.
Also check the tracking across subdomains is working by using the “Navigation Summary” to make sure there are visits that show “Next page” as a different subdomain.
Lastly there will always be some but as long as it is less than 5% of all referrers it is probably just the fact that web analytics tools are never perfect.
Hope that helps?
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
-
Event/Goal Tracking For EKM Powershop
Hi There, I have a client with EKM powershop. I am trying to figure out a way to either setup goal tracking (however I don't know what the final destination page is) or event tracking. I know I can do the ecommerce tag thing, but I am always worried about breaking the tracking code. Any ideas?
Reporting & Analytics | | nezona0 -
How to track in Google Analytics
Hello, I am helping a client track traffic using Google Analytics. We recently just signed an agreement with a publisher and they have given original credit using a canonical link. How can I track this? I believe it is showing up under direct/ none and I don't know to measure the success of our new partnership.
Reporting & Analytics | | rmazur0 -
Show item status in GA - LIve vs sold vs unsold
Hi guys, I am working with SEO for an auction site with B2C and C2C. (similar to eBay) All item\products on our page have an unique url. The auction can last from hours to weeks.
Reporting & Analytics | | helgeolaussen
When the item is live, sold or (finished but)unsold it still has the same url.
So when I take a look at SEO traffic to items in Google Analytics, I can't tell if the item was live, sold or unsold at the time the user landed on the page. Which makes it diffucult to analyse the traffic. Is there anyway I can make GA show the status of the item for the time user landed on it? Best regards, Ceran0 -
Google analytics is not tracking well
Hey, There is something not working in our GA account, its shows too many visits per day, when look where this traffic comes from, the majority comes from (not set). Please find attached. Really appreciate help! Thank you! BvmAKtO
Reporting & Analytics | | Comunicare0 -
How do i get Social Media Actions Tracked in GA
Greetings from 17 degrees C wetherby UK 🙂 http://i216.photobucket.com/albums/cc53/zymurgy_bucket/how-do-get-this.jpg The above url pints to dat I'd love to see in my Google analytics account but instead all i can see is this:
Reporting & Analytics | | Nightwing
http://i216.photobucket.com/albums/cc53/zymurgy_bucket/no-socail-media-engagementcopy.jpg What i really want to measure is Facebook Likes etc not just referral traffic from social media sites. So my question is please... "Do i have to add additional tracking code to Google analytics as explained here - https://developers.google.com/analytics/devguides/collection/gajs/gaTrackingSocial " Thanks in advance,
David0 -
Google Analytics Tracking Code Queries
Hello, I have taken on a new client who has Google Analytics installed. The tracking code is set to 'single domain'. Recently they added a mobile site using a sub-domain (m.website.com) which means that Google Analytics is not picking up this traffic. I want to revise the account so that I have a master account (raw data) and then profiles for the mobile site, main domain (www.website.com) and one other for a sub-domain that they are using. I am aware that there is mobile specific tracking code however I thought it would be easier (re conversions/goals/eCommerce tracking) to not use this and by changing the account to 'multiple domains' we could also get data for another sub-domain that they are using . My questions are: Am I right to want to use individual profiles over web properties. If not please explain why. When installing the tracking code (where the profile number is changing) I believe that I need to add that code with the changing profile number to the sub-domain sections. So my question is a) is that correct, and b) if I use a profile number on a sub-domain section will the master account still gather the data for the main URL as well as all sub-domains. If I change the master account from using 'single domain' tracking code to 'multiple domain' tracking code will this affect historical data? Will I lose the data? When changing from 'single domain' tracking to 'multiple domain' tracking does this affect eCommerce tracking? Or do we only need to be adding the additional lines of tracking code that allow sub-domains to be tracked? The web developers are using asynchronous code however half is in the and the other half is at the bottom of the source code. Given that traffic is being reported in the Google Analytics account should I have any concerns that the code is split? I have done a lot of reading but seem to be going around in circles, so your help is much appreciated! Thanks,
Reporting & Analytics | | Unity
Dinny0 -
Question on regular expression for filters on GA
Hi guys, I am creating profiles on some of the countries sites in my network, and have managed to establish the filter for tracking certain url patterns, for example: ^/japan-english- is tracking all my urls in the Japan site that start by japan-english great! however, it is not tracking the japanese instance of the urls. The pattern for the latter is : www.mysite.org/jp/japan-english I could then modify the filter to track the jp subfolder like this: ^/jp/japan-english- but it will then only track the urls on the /jp/ subfolder does anyone know the regex command for tracking the two url patters as follows: /jp/japan-english- & /japan-english- thanks in advance david
Reporting & Analytics | | BritishCouncil0 -
Get search query information for wildcard subdomains
For various reasons, I have a couple of domains with a couple of hundred subdomains on each. I would love to track how many search impressions they get each day as an overall site in webmaster tools. I have this information for my normal domains and it's a great way to track progress up the rankings (in addition to hits). Anyone know if it's possible to add wildcard subdomains to webmaster tools or any work around? I have tried *.domain.com but it's not accepting it. Thanks
Reporting & Analytics | | Grumpy_Carl0