igrigorik / ga-beacon

Google Analytics collector-as-a-service (using GA measurement protocol).
MIT License
3.54k stars 358 forks source link

Analytics are logging excluded (filtered) IP #63

Closed Joohansson closed 6 years ago

Joohansson commented 6 years ago

I always put in my own IP in google analytics filter settings as exclusion from the stats. This work on my other sites. It seems this tracking code is logging the traffic anyway but it seems to know correct country. I don't understand? It says in your description in can detect unique users and IP?

igrigorik commented 6 years ago

You can see the proxied payload here: https://github.com/igrigorik/ga-beacon/blob/master/ga-beacon.go#L78-L85. It includes the IP address that's making the request to ga-beacon endpoint.

So, if you're making a request through ga-beacon, your IP should be proxied to GA and your rules should apply.

Joohansson commented 6 years ago

Very strange then because I removed the beacon and used jekyll seo plugin instead with google analytics and my IP was filtered straight ahead without changing any filters! Something was not working correct.