Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a dynamic IP, which doesn't work for Google Analytics IP filtering. I read this post How to excludes my visits from Google Analytics? but don't see any code for setting the variable mentioned there.

Has anyone been able to block their website visits from Google Analytics using a cookie?

This seems to work https://tools.google.com/dlpage/gaoptout. Although I don't think it was designed as I'm using it.

share|improve this question

Doesn't look like there may a good way to this besides the option below. Adding as an answer since it does work.

This seems to work https://tools.google.com/dlpage/gaoptout.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.