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:
- preserve referrer if contains subdomain etc.
- 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
Post a Comment