Tracking referrals across sub domain - google-analytics

I have set up Google analytics on my root domain and all subdomains. I have a couple of goals set up and data is flowing into Google Analytics. I have a root domain (landing pages) and a subdomain for the service I'm selling. When going to Conversions > Goals > Overview in Google Analytics, my subdomain shows my root domain as the source and referral of all conversions. This makes sense since there is a link to sign up from my root domain to a signup page om my subdomain. But I would rather see the actual source/medium of the visitor coming to my root domain.
All domains log to the same UA property and I have set up a number of views to see data from the individual domains. GA is configured through Google Tag Manager as shown here:
Any idea to how to set this up?

The issue was with cross-domain tracking in GA. The main domain was not added to the exclusion list and that caused referrals to subdomains show up in the referral list. To solve it, just add the main domain to the exclusion list in the ga property.
The referral exclusion list is found under ADMIN > ACCOUNT > PROPERTY> TRACKING INFO > REFERRAL EXCLUSION LIST

Related

How to Set up Google Analytics / google Tag Manager for Payment referral sites

I have just changed my sites payment gateway from embedded ( inside my site ) to redirect to the payment gateway site.
The problem now is that all my conversions are coming from the bank secure site - and there are a LOT of them it's not just one URL. If it was just one URL I could put that URL into the referral exclusion list. but I don't think that is the correct way to do this.
What is the correct way to implement a payment that goes off to another site and then returns so that it registers the correct starting point ( in most cases adwords )
thanks
Martin
You have to use Referral Exclusion list by entering the domain to exclude, not the entire URL. If there are several third levels of the same domain you have to enter the main domain.

Google Analytics: track referral sites when secondary domain redirects to primary domain

I have a client who has a few domains that are all redirected (via DNS settings) to his primary domain. Is there a way that we can monitor the traffic from these other domains in Google Analytics?
Scenario
User clicks on a link on referral.com and goes to domainA.com which is redirected to domainB.com. GA is tracking domainB.com. Currently domainA.com is listed as a referral site, we want to see referral.com listed instead.
You could retrieve via code the referral in domainA.com and then use the UTM parameters in the redirect link like:
domainB.com?utm_source=referral.com&utm_medium=referral
See here for more information about how generate custom campaign parameters:
https://support.google.com/analytics/answer/1033867?hl=en

Google Analytics referral exclusions not working

We have two domains, domain.com and subdomain.domain.com, and they both report to the same GA profile.
We have added both domains to the referral exclusions list and they have been added for a few months now.
On one page we redirect users from domain.com to subdomin.domain.com then after they're done back to domain.com. We are seeing domain.com showing up on our referrals with a referral path which matches that first redirect.
How come? Is there a bug with the referral exclusions list which doesn't block all referrals? I heard some people mention the referral exclusion list will only work on new sessions, however we're still getting them even through new sessions. Any ideas?
Edit: Both domains are part of the same root domain

Referral Exclusion List Not Working (Google Analytics)

I've set up a bunch of referral exclusion domains like the following:
mydomain.com
paypal.com
But when I view the "All Referrals" tab under "Acquisition", I still see mydomain.com and paypal.com.
How come mydomain.com and other domains under the Referral Exclusion list are appearing under the All Referrals tab?
I setup www --> non-www redirects, as well configured each page to have the SAME Google Tag Manager code.
When I click on mydomain.com, it looks like the following:
/
/page1/
/page2/
/page4/
/page5/
/etcc......
I'm not sure what's going on, but I keep getting mydomain.com listed in the All Referrals tab even though I explicitly stated to exclude it.
Make sure to look at % new visitors column head. In most cases, this actually is fixed - but it will not fix retroactive and it will not cease for any visitors who were previous self referrals and visit via direct source going forward until the cookie resets.
You may still see mydomain.com & paypal.com in your referral list, but if you change the time frame to when you implemented referral exclusions, you should see any of those referrals have 0% new visits.

Google Analytics track 2 domains (one with subfolder)

I want to get the GA data with this setup:
Main domain: mydomain.com
Second domain: subdomain.myotherdomain.com/myfolder
So basically I want the visits to the main domain and the visits to the second domain to count as one page. The reason for that second domain is to redirect user to a secure area. That secure area is located in a subfolder, not in the root of the second domain.
I thought that as long as I put the same tracking ID everywhere it would be fine, but donig some research I found this from Google: Set up cross-domain tracking for multiple domains
Do I need this in my case? If so, how do I tell GA about just tracking the specific folder in the second domain? I will have other folders in the future that will need to be tracked separately from this account, so that's why I only want that folder...
Yes, you do need this (or else visits from mydomain.com to myotherdomain.com will be counted as two different visitors with mydomain.com as refering site).
You can use _setCookiepath (in the code for myotherdomain.com ) to limit the Google Analytics cookie to your subdirectory:
_gaq.push(['_setCookiePath', '/myfolder']);
(https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiDomainDirectory#_gat.GA_Tracker_._setCookiePath)

Resources