Skip to content

Instantly share code, notes, and snippets.

View mweber-ak's full-sized avatar
:octocat:

Matt Weber mweber-ak

:octocat:
View GitHub Profile
@mweber-ak
mweber-ak / README.txt
Created September 20, 2017 15:55
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.