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.
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 -
Stripping Out Referral Spam
I'm working my way through Google Analytics adding filters to all Spam referrals. 1. Am I doing this correctly:- Filter > Custom > Exclude - Campaign Source > Filter Pattern - Website address 2. I understand I can also strip out referral spam from past data Can anyone tell me how to do this or direct me to a blog or article about this? 3. Who on earth are Semalt, and why do they keep changing their URL and bombarding our websites? Appreciate any help. Christina
Reporting & Analytics | | ChristinaRadisic0 -
Weird referral data. Spam?
Hi all, a few of my sites are suffering from referral spam. I read a couple of articles here on how to exclude them from your traffic using htaccess but today I was going through some referral stats of the company I work for and I noticed a lot of referral traffic coming from prod2.ssosecure.com I didn't find any article telling me this is spam, so it could also be an intranet of one of our clients where they are sending their employees to our application. Anybody a clue what this could be?
Reporting & Analytics | | jorisbrabants0 -
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.
Reporting & Analytics | | mrdavidingram1 -
Tracking Goals on a Subdomain?
What needs to be done to Analytics to track goal completions on a subdomain? The main Analytics profile is set up for example.com, but landing pages for paid campaigns are set up at sub.example.com. Thank-you page is sub.example.com/thank-you.php What needs to be modified in Analytics (or to the Analytics code) or how do the goals need to be set up to track these subdomain conversions all within the same Analytics profile? They're not tracking currently. Thanks.
Reporting & Analytics | | elcrazyhorse0 -
Google Images referral visits fell off a cliff
As of 28-Jan, referral traffic from Google images (/imgres) to my domain has pretty much vaporized. Visits are down 85%. It's actually not a disaster because most of those visits were from poorly optimized alt tags that were resulting in low quality visits. The interesting thing is that visit duration is up 80% during the same period. So I'm asking this question out of curiosity more than anything. Is this likely an algorithm tweak? I can't think of any major changes on my end. There's only one other data point to mention but I don't see how they'd be connected. I did two PRWEB releases on 29-Jan and 30-Jan that resulted in a few hundred new no-follow links back to my site. 22b7k2.png
Reporting & Analytics | | JonDiPietro0 -
Google Analytics Report throws up Google as a referrer
Good morning from Wet & Windy 12 degrees C wetherby UK... Using Google analytics I've noticed in the traffic sources refferer subsection some traffic is categorized as originating from Google. Whats puzzling me is.... I know a huge amount of traddic stems from Google but as the below screenshot illustrates only 21 visitors come from Google: http://i216.photobucket.com/albums/cc53/zymurgy_bucket/google-refferal-sources-top-levelcopy.jpg And when i drill down some are coming from Google mobile 😞 http://i216.photobucket.com/albums/cc53/zymurgy_bucket/google-referral-sourcescopy.jpg Is traffic categorised as Google referrer down to Google hiding searches via ssl as explained here: http://i216.photobucket.com/albums/cc53/zymurgy_bucket/google-referral-sourcescopy.jpg Any insights welcome 🙂
Reporting & Analytics | | Nightwing0 -
Any updates regarding 'not provided' organic keyword referrals in Google Analytics?
I know that the encrypted searches done by people logged into their Google accounts is causing the error, is there any workaround or any update from Google as to IF they will give us our keyword data back? I'm currently losing data on about 20% of my daily searches . . .
Reporting & Analytics | | nsauser0