How to exclude traffic in Google Analytics from Dynamic IP addresses? -


google's detection of unusual traffic nice. how handling dynamic ip addresses?

for example,i not have ranges of ips , isp provides dynamic ip may change everytime router reboots , changes everyday. here, when ip address see notification w/o captcha. after several reboots seem ip not blocked!

how solve type of issues in google analytics. know how exclude traffic single ip , ranges of ips not know how block internal traffic ips changes everyday?

there problems many of popular answers question...

  • even if you're lucky enough find ip range, if you're working coffee shop or hotel?
  • checking host name eliminates hits dev environment, if i'm debugging live site?
  • editing server configurations annoying/advanced , multiple domains become complicated.
  • opt-out extensions either block hits on websites or none @ depending on ask.

so, combined several other solutions works me...

  • it follows me wherever go
  • it works on dev environment , on live/public domains
  • it affects me , sites i'm developing
  • it turns on/off 1 click
  • it's easy verify not sending data analytics
  • it can used whole team of people

i keep "developer cookie" set on machine @ times domains manage. cookie has unique value specific me. check cookie in scripts before sending data analytics.

examples of how put code pages...

javascript

if (window.location.host==="mydomain.com" || window.location.host==="www.mydomain.com") {    if (document.cookie.indexof("cookiename=cookievalue") === -1) {       // insert analytics code here    } } 

php

if ($_server['http_host']==="mydomain.com" || $_server['http_host']==="www.mydomain.com") {    if (@$_cookie["cookiename"] !== "cookievalue") {       // insert analytics code here    } } 

verifying host name equals domain of live site ("mydomain.com") ensures analytics data never sent visitor while viewing test domain such "localhost" or "beta.mydomain.com". in examples above, "www.mydomain.com" , "mydomain.com" 2 valid domains want visits recorded.

the live site sends data analytics expected unless developer cookie found matching values. if finds unique cookie set on device, visit not count towards totals in google analytics (or whatever other analytics tool might decide use 1 day).

but happens when cookies cleared? how keep "developer cookie" set in background? created own browser extension that... https://chrome.google.com/webstore/detail/lknhpplgahpbindnnocglcjonpahfikn

it works specific domains choose. customize own unique name , value cookies in extension's settings.

this method can used team of people long use same name/value pair, developers, content creators, proofreaders, , else in organization can view pages without inflating statistics.

feel free share solution , use extension keep cookies set.


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -