Skip to content

Instantly share code, notes, and snippets.

@bergantine
Last active October 13, 2015 08:47
Show Gist options
  • Select an option

  • Save bergantine/4170027 to your computer and use it in GitHub Desktop.

Select an option

Save bergantine/4170027 to your computer and use it in GitHub Desktop.
#Google #Analytics #Ignore User by User Defined Variable.
Setup a new filter in Google Analytics with the following configuration:
Filter Type: Custom Filter
Filter Field: User Defined
Filter Pattern: no_report
Case sensitive No
// documentation: https://developers.google.com/analytics/devguides/collection/gajs/methods/gaJSApiBasicConfiguration?hl=en
// other thoughts: http://productforums.google.com/forum/#!topic/analytics/LTG8e7aYbDc
// insert before a _trackEvent() method (such as _trackPageview)
_gaq.push(['_setVar', 'no_report']);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment