'Google Analytics API disable robots and "spiders" traffic by API
At Google Analytics in the Admin section -> View Settings, we can check the “exclude all hits from known bots and spiders”, this is exclude bot traffic from Google Analytics. But how to do this with API? I tried to find information about this in the documentation, but I didn't find anything. Maybe someone has already encountered this solution?
Solution 1:[1]
Never seen that filter being used in the API, but that piece of functionality is pretty trivial really.
We typically just reimplement that logic after pulling the data in. The logic looks at the user agent dimension for known bot signatures and that's it.
And you do want to have some control over what a bot is and is not rather than relying on a complete black box.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | BNazaruk |
