All Collections
Integrations
Analytics
Can I block spam referral URLs in Google Analytics?
Can I block spam referral URLs in Google Analytics?

Yes, you can set up a view filter in your GA account, then connect that view profile to AgencyAnalytics

Matthew Davis avatar
Written by Matthew Davis
Updated over a week ago

Referral spam occurs when your website gets fake referral traffic from spam bots and this fake traffic is recorded by your Google Analytics.

Spam bot traffic can significantly skew your Google Analytics data, so for the most accurate GA results, you'll want to filter (block) referral spam.

Our dashboard imports data from Google Analytics, and displays it in an easy to read and easy to comprehend format, as well as to allow you to aggregate the GA data with data from other sources so that you can present it in an understandable way to your customers.

Outside of those features, we provide very little in the way of options for manipulating your Google Analytics data within our dashboard.

As a result, if you do not want to see referral spam in the Agency Analytics dashboard, you'll need to filter it within your Google Analytics account itself, rather than in our dashboard.

The basic steps within Google Analytics for filtering referral spam are as follows:

Step 1: Determine which referrals are spam. You can get a pretty good idea of which URLs are spam bots by sorting your referrals report within Google Analytics by bounce rate.

Referrals with either 100% or 0% bounce rate and 10 or more sessions are generally spam.

Step 2: Take your list from step 1, and confirm whether or not they are spam. You can first check them against this list of known spam bot referrals. If the URL is not on that list, you'll need to visit the referring website itself to check and see if it is spam. Be sure that you have anti-virus and anti malware software installed on your computer before visiting them.

Step 3: Once you have confirmed the identity of bad bots, the next step is to block them ASAP from visiting your website again. You can take the following steps to do so:

  • Create a custom advanced filter in Google Analytics.

  • Block the referring URL by using your .htaccess file

  • Block the IP address of the spam bot using your .htaccess file

  • If applicable, block the IP address range used by spam bot

  • Automate the blocking of spam IPs using an automated script if possible

  • Block the rogue user agents used by spam bots using your .htaccess file

  • In Google Analytics, under "Reporting View Settings", use the Google Analytics ‘Bot filtering’ feature ‘Exclude hits from known bots and spiders’

As these steps do not directly involve the Agency Analytics dashboard, the exact step by step process used to accomplish them are beyond the scope of what we can cover in a KnowledgeBase article.

Much of the above information was pulled from the "Geek Guide to Removing Referrer Spam in Google Analytics" from OptimizeSmart.com. We highly encourage you to visit that link and read through the full tutorial, which DOES provide step by step instructions for the above suggestions.

Did this answer your question?