In 99% of cases, you do not need to do anything to filter Affilimate from Google Analytics.
For most sites, the way we scan your site and check your cloaked links will never load or send data to Google Analytics.
However, you may be using a plugin that sends server-side events to Google Analytics. So you'll need to filter Affilimate from Google Analytics if:
- You are using Pretty Links Pro Google Analytics tracking
- You are using Thirsty Affiliates Pro Google Click Tracking
- You are using Monster Insights Affiliate Link Tracking
- You are using another plugin which sends server-side events to Google Analytics
You'll know you are getting Affilimate tracking in your Google Analytics data if you go to Audience > Technology > Browser and OS and see "AM" listed as a browser:
Luckily, it's pretty easy to add this filter and takes just a couple of seconds. Here's how:
Add a custom filter in Google Analytics
In Google Analytics, click the Cog icon in the bottom left corner to open your Admin Panel. Then in the right column for the View, choose Filters.
Then, click the red button called Add Filter.
Set the Filter Name to Affilimate, then set Filter Type as Custom.
Set it to exclude the browser "AM"
Under the Filter Field, search for Browser.
Set the Filter Pattern to ^AM$, then press Save.
That's it! Any future checks from Affilimate will be filtered from Google Analytics, even if you are using plugins like Pretty Links Pro or Monster Insights' GA tracking.
Note: If you already have past, tracked data in Google Analytics from Affilimate, this will not filter out past data. However, it will exclude any of Affilimate's checks on your cloaked affiliate links in the future.
Troubleshooting: Filter Verification
You may try to "Verify this filter", and see the following message:
This is completely OK, and can perhaps mean that you only have a small number of cloaked affiliate links, so the amount of events that have been sent in the past is very small.
Continue to save, and your data will be filtered going forward!