Google Analytics exclude IP filters not working on AMP
-
Hi,
I have filters for my Google Analytics view, the filter excludes my office IP addresses so my results are not skewed by my local activity.
AMP google analytics seems to have the var for Anonymize IP set permanently to TRUE. This means my filters are not working and including my own traffic activities and others from my IP.
So to solve this I need to set the var which controls Anonymous IP setting, which is – “aip”:”false” to turn it off, so my IP filters will continue to work as desired, excluding my own traffic.
How can I do this in the code? I have found settings in /templates/features.php around lines 728 & 1914 where I could edit to include the aip = false setting.
It would be nice if there was an option to include more vars in the wordpress settings screen, so I could control this with a simple setting.
Thanks for any tips
The page I need help with: [log in to see the link]
- The topic ‘Google Analytics exclude IP filters not working on AMP’ is closed to new replies.