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