Skip to content

Instantly share code, notes, and snippets.

@markstinson
Forked from mweber-ak/README.txt
Last active February 16, 2019 16:34
Show Gist options
  • Save markstinson/3c1fd4816c95fb3829239b03fe0944a9 to your computer and use it in GitHub Desktop.
Save markstinson/3c1fd4816c95fb3829239b03fe0944a9 to your computer and use it in GitHub Desktop.
Facebook Ad Approval Bot Exclusion for Google Analytics
Enter this text as a filter for your views.
This will stop the massive spikes of fake traffic that occur from Facebook's bots when you create new Facebook Ads.
Go to Admin > Filters > Set a New Custom Filter > Exclude > IP Address
In the Filter Pattern enter:
^173\.252\.96\.([0-9]|1[0-9])$|^173\.252\.88\.([0-9]|1[0-9]|2[0-1])$|^173\.252\.64\.([0-9]|1[0-9])$
NOTE: Test on a different view first to ensure data lossage will not occur. I'm not responsible if it does.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment