Filter your own traffic on Google Analytics

Put this code in your browser address bar and hit enter:


Don’t forget to set the your_keyword as your unique word in Google Analytics filter settings (Cookie method of course).

…and to test if the cookie is set in the browser:

javascript:alert((/__utmv=.+?.(.*?)(;|$)/.test(''+document.cookie))?RegExp.$1:'No unique word');void(0);

Note: Modern browsers will strip-off the javascript part, please use Inspect element on Google Chrome or Developer Mode in Firefox.

Still won’t work? It does for me, at least, so far. Post here, I’m working to find a full-proof method, especially after GA updated with new set of codes.

Join the Conversation

1 Comment

Leave a comment

Leave a Reply, Comment or Feedback