Google Universal Analytics Principal Domain Self Referral -


i need solve self referral scenario:

  • domain exclude self referral:
    • example.com
  • domain preserve referral:
    • alpha.example.com;
    • beta.example.com;
    • all subdomains.

with configuration referral exclusion doesn't work. have solution in case?

try write own javascript function check document.referrer before sending pageview , then:

  1. preserve referrer if contains subdomain etc.
  2. or set empty if referral == 'example.com'

docs: https://developers.google.com/analytics/devguides/collection/analyticsjs/field-reference#referrer think should work.

or if you're using gtm check this: http://www.simoahava.com/gtm-tips/implement-referral-exclusions-via-gtm/


Comments

Popular posts from this blog

mysql - Dreamhost PyCharm Django Python 3 Launching a Site -

java - Sending SMS with SMSLib and Web Services -

java - How to resolve The method toString() in the type Object is not applicable for the arguments (InputStream) -