Skip to content

Instantly share code, notes, and snippets.

@eugenoprea
Last active May 12, 2018 05:53
Show Gist options
  • Save eugenoprea/cc5c612f81c4175bb248 to your computer and use it in GitHub Desktop.
Save eugenoprea/cc5c612f81c4175bb248 to your computer and use it in GitHub Desktop.
Filter Admin Traffic in Google Analytics - Part 3
</head>
<body onLoad="javascript:pageTracker._setVar('filter_traffic');">
<h1>Excluding traffic by Cookie Content</h1>
<p>This page will set a cookie in your browser that will help Google Analytics filter the traffic that comes from your computer when using this browser.</p>
<p>Once you have this setup, don't forget to set a filter in Google Analytics.</p>
<p>You will need to visit this page only once.</p>
<p>However, if you clear your browser cookies, reinstall the browser or operating system, make sure that you revisit this page, so the cookie will be set again.</p>
</body>
</html>
@ncrmro
Copy link

ncrmro commented Jun 21, 2016

Typo in "reinstall the broser"

@oldlavender
Copy link

It's not working, "pageTracker is not defined", the browser's error console says.

Is there anything that changed in Google Analytics? How can I do it, currently?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment