I need help to solve that self referral scenario:
Domain to exclude self referral:
example.com
Domain to preserve referral:
alpha.example.com;
beta.example.com;
All subdomains.
With the configuration referral exclusion doesn't work. Have you a solution in this case?
Try to write your own javascript function to check document.referrer before sending pageview and then:
Preserve referrer if contains subdomain etc.
Or set it empty if referral == 'example.com'
Docs: https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#referrer I think it should work.
Or if you're using GTM check this: http://www.simoahava.com/gtm-tips/implement-referral-exclusions-via-gtm/
Related
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.
My situation is that I need to track data from:
Domain A with Google Property ID UA-XXXXXX-1
to
Domain B with Google Property ID UA-YYYYYY-2
Problem is, I need to be able to track the source of traffic to Domain A (organic, campaign, referral etc) in the Google Analytics property for Domain B.
As in, if i'm viewing data for a page in Domain B, i'd like to be able to see that the user originally found the referring page on Domain A via an email campaign using a UTM parameter.
Cross domain tracking is enabled on Domain A with Domain B set as an autoLink domain.
Question is, on the link from Domain A to Domain B, is their any way I can "push" the session data captured by UA-XXXXXX-1 across into Domain B so that it can be pushed to UA-YYYYYY-2?
I know the simplest solution to this is to add UA-YYYYYY-2 to Domain A, but that isn't an option.
Thanks
You can try saving in cookie the source and medium on Domain A when user landed (based on document referrer) then add them as UTM parameters in querystring on all URLs from A to B. However, in this way you can know the source/medium but user and session will be different from the domain A.
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
This is a new setup, no historical data.
My objective is to be able to track the domain, as well as sub-domain.
Setup that i have:
domain.com - User generated content site
sub.domain.com - E-Commerce Shop.
Create a New Property for sub.domain.com in addition to domain.com ?
Or Create a Different View in the Property ?
To be precise, i need to know which method to select and why ?
Yes, there are previously asked questions over SO relating to "How to track sub-domains" but none show describing the reason to select an approach.
Sub-domains are tracked automatically by Google Analytics you just need to set the Cookie-domain property to auto.
You can create a new view for your subdomain and analyze data only for that sub-domain that would be more efficient.
Let say you have a site named mydomain.com and have one blog for that also like blog.mydomain.com.So, for both you can have different views and one combined view then it's up to you how you want to analyze the data.
ga('create', 'UA-12345-1', 'auto');
// is the same as
ga('create', 'UA-12345-1', {'cookieDomain' : 'auto'});
Refer the below document for more information on tracking sub-domains.
[https://support.google.com/analytics/answer/1034148?hl=en][1]
This depends on your use case.
If the content of your subdomain is strongly connected to your main domain you probably want to use the same tracker for both without modifications. This will allow you to track user sessions that move between main domain and subdomain. You would either create a view to filter by subdomain, or simply create a filter that adds the subdomain to the page path (so you can discern Urls from the main and subdomain) and look at them in the same view.
If main domain and subdomain share a tracker and a cookie with the client id this has at least two implications. Users that have visited your main domain in one session and the subdomain in another will be recognized as recurring users. Also sampling in a free GA account happens on the property level, so if you track main domain and sub domain via the same tracking id sampling will occur more frequently (on sites with much traffic).
If you want to avoid either you should use separate GA properties for main domain and sub domain and maybe change the cookie domain for your subdomain (documentation for the current gtag.js is here).
I'm trying to set up tracking with GTM between the main domain and its subdomain. I've read a lot on this topic already, including this Google guide (it's about different domains but not sub-domains) and guide from Lunametrics. But still I can't find the answer.
So what I have now:
site.com and blog.site.com
Two separate containers for each of them
Two different properties in Universal Analytics.
What I need is tracking the domain with it's subdomain. I assume I'll need to create a separate view with filters in GA. Please let me know how to configure that tracking right. I wouldn't like to use one single container for the domain and its subdomain.
What you need is a single property. Implement the same code on domain and subdomain.
Set the cookie domain to "auto" (or do not set it all). This means the Google code sets the cookie for the highest accessible "level" from the domain (i.e. Google cannot set a cookie for the .com TLD, so it will use the next level, in your example site.com). It also means the cookie is available on the subdomains for your url.
That's basically it - your property will report users from domain and subdomain and will maintain the session when they switch between domain and subdomain.
However if you have pages of the same name on both domain and subdomain - say site.com/index.html and blog.site.com/index.html - they will be lumped together in the reports. To separate them you can set the hostname as second dimension, or apply a filter to your data view that adds the hostname to the url path (here is randomly googled tutorial on how to do this).