1 min.
How to protect your Google Analytics account from language spam
1L’art de la gestion de projet2Un projet à succès commence par une bonne gouvernance3Cascade, agilité, demandes de changement?

How to protect your Google Analytics account from language spam

  • TECHNICAL LEVEL
Analytics & Tracking

Google Analytics accounts have always been spammed, in particular in the event sections. Waves of direct traffic, with an average session duration close to zero and a bounce rate close to 100% are not new either. However, since November 2016, some uncommon languages have been appearing in many Google Analytics accounts.

img1

 

Spam shows up in Google Analytics as erratic traffic concentrated on specific days, and never leads to a single conversion.

img2

 

But unlike traditional spam, this new type of spam is much harder to detect. The related metrics make it appear more like real traffic from actual humans like you and me (unless you’re a robot). We used to see that traffic generated through spam was made up of single hits per session, which appeared in reports as bounce rates of 99.9%, an average session duration of less than 1 second, and only one page view per session… In the present case, the numbers don’t lie, it’s clearly spam: Way below average bounce rates, erratic traffic. The difference here is the number of page views, which impacts bounce rates and session duration, making it look more like human traffic. This means spammers have improved their algorithms to make them seem more human.

This type of traffic can sometimes skew your data significantly for certain periods, so it’s important to protect yourself by adding a view-level language filter. Here’s how:

  1. Log into Google Analytics, then click Admin, then Filters: img3
    img4

  2. Click Add Filter, then fill it out as below using the following regular expression: .{12,}|/s|!|,|/
    img5

  3. Then verify that your filter is working properly by clicking here:
    img6
  4. and that it’s filtering the right data:
    img7

  5. Click Save and the filter will become active. Don’t forget that filters only apply to future data. To analyse periods before you added the filter, it’s preferable to use a segment. Finally, don’t forget to check Google’s Bot Filtering checkbox. In combination with regularly updated filters, it’s very effective!
    img8

  6. Click Save and the filter will become active. Don’t forget that filters only apply to future data. To analyse periods before you added the filter, it’s preferable to use a segment. Finally, don’t forget to check Google’s Bot Filtering checkbox. In combination with regularly updated filters, it’s very effective!