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
-
GA: How do I preserve custom dimension across domain and subdomain?
Using custom dimensions our site tracks logged-in vs not logged-in users on our shop site (shop.example.com). A user can only login on the shop.example.com. The problem is when the logged in user visits our the main domain (example.com), we lose the custom dimension and the user becomes anonymous. At this point, if the user goes back to shop.example.com, the logged-in custom dimension comes back. How do I preserve the logged-in user dimension across the main domain? Example of snippet:
Reporting & Analytics | | Evan340 -
Subdomains retaining PA and DA?
Hello Mozzers It was my understanding that google sees a new subdomain as a new domain - however I have created a subdomain for one of my sites, and this has retained exactly the same DA (35) and a high PA (but slightly lower than original domain) of 35 - Is this normal, and if so is it only temporary? Thanks
Reporting & Analytics | | wearehappymedia0 -
Stripping Out Referral Spam From Past Reports
Hi, I'm looking to confirm the best approach for retroactively stripping away referral spam (free buttons, SEMalt, etc.). Now to be clear, I already have filters in place to ignore them from current stats, so moving forward I'm fine. However, I'd love to go back and check untainted stats. I've setup segments using a regex to strip the root words away and it seems to be working. I have a regex setup to strip out things like: social-buttons|seoanalyses|copyrightclaims|classifiedads|jobsense|free-share-buttons|e-buyeasy|acrobats.hol|cheap-online|amezon|search-help|qut-smoking and so forth. I've been going through my referral data, noticing obvious spam, and adding their domains to my segment. Is this the optimal way for me to get a clear, untainted view of my past stats?
Reporting & Analytics | | kirmeliux0 -
.com site referral traffic to ccTLDs
We have 7 international domains set up along with our main .com site. All of the ccTLds are showing their main referral traffic as coming from the .com site in GA, and most of those being from mobile. Each site is set up correctly with geo-targeting and hreflang tags. Has anyone experienced this before?
Reporting & Analytics | | ggpaul5620 -
Does "not provided" affect the referral traffic data?
There is a discrepancy between what an referring site is showing as clicks back to my site versus what Google Analytics is showing. For example - They are stating that their site sent 100 clicks to my site. The GA data shows 25 referred clicks from that site. Could this be due to the "not provided" that hides most of the keyword data?
Reporting & Analytics | | devonkrusich0 -
Google referral traffic drop around 14th July 2014 (UK). Anyone else seeing it?
We've seen around a 25% drop in Google referral traffic from the 14th July 2014 onwards and having real trouble identifying why and from what search terms we're being effected. WMT and Moz Pro don't show any movement. Is anyone else seeing the same thing on UK search terms? Seems a bit late to be the effect of Panda 4.0? Any help would be amazing. Thanks.
Reporting & Analytics | | whis1 -
Locating Source of Referral Traffic
Hey Folks, I have discovered a Korean site is sending considerable traffic to a specific landing page on my client's cosmetic surgery site in California. I am concerned Google may deem this as spammy - I know I do. I have been able to track the referral traffic to this point: cluster1.cafe.daum.net/c21/bbs_read which appears to be a community-based site and/or forum. However, I can not locate the exact source where the href back to my client's site resides. Given that my Korean is not exactly up to par 😉 and Google translate only takes me so far, can any of you suggest an advanced query or method of tracking to pinpoint the source page? Thanks!
Reporting & Analytics | | SCW0 -
Google referral drop after setting preferred domain
Hey all, After doing a lot of research, and verifying here in the forum, I set our site's preferred domain on monday. We had no preferred domain set for years, but we were already redirecting the non www site to the www one. So, it was evidently an oversight. The day after I set the preferred domain (Jan 29) our google referral traffic hit an all time low. Any other thoughts on the cause? Any ideas on why setting a preferred domain would be a bad idea? Our site is www.mnn.com. Thanks!! Lisa
Reporting & Analytics | | Aggie0