How do you exclude Google Analytics Tracking based on cookie with cross-domain tracking?

by Cloud   Last Updated August 13, 2019 18:04 PM

I enabled anonymizeIp for Google Analytics tracking on my website and since changing that, the filters that should exclude requests from my test and staging environments based on IP do not work anymore.

I tried setting up a specific cookie exclusion rule and setting a 'test_environment' cookie on my local machine (according to the answers to this question: How do you exclude yourself from Google Analytics on your website using cookies?)

However, I use cross-domain tracking (linking) and it seems that my 'test_environment' cookie value is simply being ignored. It might be that the cookie of my linked domain is used instead of the local test environment cookie.

Is it possible to combine cookie based exclusion/filtering with cross-domain tracking?



Related Questions


Updated October 10, 2017 09:04 AM

Updated March 08, 2018 19:04 PM

Updated June 21, 2017 17:04 PM

Updated February 06, 2019 15:04 PM

Updated June 27, 2018 11:04 AM