Subdomain referral
-
Hi,
We have two sites mysite.com and aa.mysite.com. We want to track these sites separately. We created two different properties with IDs UA-XXX-1 for main domain UA-XXX-2 for subdomain.
gaq code for main domain is as following,
gaq code for subdomain is as following,
It works well for subdomain. But we want to see traffic from subdomain to main domain as referral.
What is wrong with the gaq code of main domain?
Do i need to change code or is it enough to inactivate subdomain tracking option in profile settings of main domain?Thanks in advance,
-
If you want to see the subdomain show up as a referral, you need to remove this line of code from the main domain.
_gaq.push(['_setDomainName', 'mysite.com']);
That should be all you need to change.
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
-
Google Analytics - Referral traffic being reported as Direct traffic
Hi, I have a link on my www homepage to another subdomain website. Both websites are served on https, and have independent Google Analytics properties. However, the traffic from the www site to the subdomain site is being reported as Direct, and not Referral traffic. Any ideas why? See image provided for context... RCn6HER
Reporting & Analytics | | RWesley1 -
Android Webview & Safari (in-app) without any referrer information in Google Analytics
I've got a client that gets a considerable amount of traffic that: Enters on an interior page (that we are running properly tagged ads for on various platforms) Bounces Has a browser of either Android Webview or Safari (in-app) which I believe indicates the website is being viewed within a mobile app Has no referrer data: (direct) / (none) We've tested several scenarios (Facebook app, Gmail app, etc.) and ruled them out. Anyone know what this might be? Thanks in advance!!
Reporting & Analytics | | SarahLK0 -
Payment gateway referrals disappeared
Hi All, I was getting payment gateway referrals for my site for many months but when I have implemented enhanced eCommerce tracking self referral issue resolved but I haven't read anywhere about this solution so I just want to confirm once . Thanks
Reporting & Analytics | | Alick3000 -
Why isn't my google analytics working on a subdomain?
I have a website with Google Analytics which works fine. I tried adding the code to a subdomain using http://www.verticalrail.com/kb/filter-in-google-analytics-to-track-subdomains/ as a guide. There is no data showing up though. Any ideas?
Reporting & Analytics | | EcommerceSite0 -
Drop in google.com / referral trafic
Hi, On one of our sites (after the release of a new version, including redirections), we've seen a drop in referral trafic from google.fr (france). I know that this trafic usually comes from Google Images but it doesnt seem to be the case this time. The referal path is "/" and not "imgres" as it usually is when it comes from google images. The search trafic hasnt dropped tough... The site is a job listing site. We also saw a drop from indeed.com, I guess their crawler got lost in our new site... Any idea on the possible google site it could come from? Thank you,
Reporting & Analytics | | AdrienLargus0 -
Can't identify the real source of a goal because subdomains in GA
Hello, I have one domain for my website (www.domain.com) where I receive all the new traffic and a subdomain (billing.domain.com) for the billing system. Im tracking both in Analytics. I have a goal (new order) configured in the subdomain -billing system-. But when I want to track the source / medium of the goals (new orders) in billing.domain.com, always appears my main website (www.domain.com) as the referral. Now I added in Analytics: Admin > Property > Referral Exclusion List, the www.domain.com and domain.com. Do you think that now I can track the real referrer of the goals? Or should I do a more complex tracking setup with Tag Manager ( https://support.google.com/tagmanager/answer/6106951 ) to pass the session cookies from a subdomain to another one, just to identify the real source / medium of the visitor? Thank you 🙂
Reporting & Analytics | | estebanseo0 -
Referral exclusion not working with GTM?
Hi, how are you?
Reporting & Analytics | | arielbortz
I have my website with Google Tag Manager implemented. Google Analytics is one of the tags I have configured. The problem is that Referral exclusions aren't working for me. I excluded 3 domains, and I keep seeing them in my Referral Traffic report.
Any idea why this could be happening? Best wishes,
Ariel g04tIqv IrzKXiY0 -
Dramatic Increase in referrals from own website
The past few weeks I've been wracking my brain to figure out why on earth my branded searches could be dropping off at 30-40%. Well today, I realize I've had a dramatic increase in referrals from my own site (the non www verison). I'm talking 150 in March of last year to 5k in March of this year drastic. My 301 redirects haven't changed as far as I know -- I've had them set to redirect from the non www. to the www. for at least a year or two. I'm assuming visitors from search engines are somehow getting the non www version and the redirect is attributing the traffic to referrals instead of search. The drop in search traffic and the increase in referral traffic fall on the same day. Does that sound right/possible? If so, how do I fix this? My traffic stats for two clients are all screwy because of this. I want to make sure whatever solution I implement won't hurt my search traffic numbers any more 🙂 Has anyone else seen this happen recently? I could imagine an anomaly with one site but I find it odd that it could be two client sites. I still have some others to check. Thanks in advance! Leslie
Reporting & Analytics | | LeslieVS0