How to protect your Google Analytics account from spam in language settings
Analytics accounts have always had spam, especially in the events section. Waves of direct traffic with zero session duration and a near 100% bounce rate aren't new either. However, since November 2016, uncommon languages have appeared in several Google Analytics accounts.

Spam is not new in Google Analytics: it is erratic traffic, concentrated on certain days and which never triggers any conversion.

But unlike regular spam, this new type of spam is harder to detect. The related metrics make it appear more similar to real traffic from humans like you and me (unless we're a bot). We had previously observed that spam traffic was made up of hits unique per session, which causes 99.9% bounce rate reports, an average session duration that never exceeds 1 second, a single page per session... Yet in this case, the numbers don't lie, it's This is clearly spam: much lower than average bounce rate, erratic traffic. The change here is visible on the number of page views, which impacts the bounce rate and session durations, which thus resemble more human traffic. Spammers have therefore improved their algorithms to make them more human!
This type of traffic can sometimes skew the data significantly over certain periods, so it is important to protect against it by adding a filter on the language setting at the view level. Here's how:
- Log in to Google Analytics, then click on Admin, then go to the filters section:


Click on add a filter, and fill it like this with the following regular expression: .{12,}|/s|!|,|/

Then check that your filter works as expected by clicking here:

et qu’il filtre les bonnes données :
Click save and the filter will activate. Remember that filters only apply to future data. For the analysis of periods where the filter was not present, it is preferable to use a segment. Finally, don't forget to check the robot exclusion box offered by Google, which is always effective in addition to regularly updated filters!

Share this
You May Also Like
These Related Stories

How to protect your Google Analytics account from language spam
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.

The mystery of Facebook language targeting
Have you ever seen a Facebook ad or content in English while your browser and Facebook interface are in French?

Use data to make SEO and marketing decisions
Today, the trend is more and more to automate tasks to abandon repetitive work and focus on analysis. It is an evolution of the market and of our daily occupations. However, it is sometimes complicated to navigate in the jungle of data, scripts, languages, formulas and others. At Adviso, we believe that data is essential in decision-making aimed at prioritizing the sustainability of online activities and how to reach the right targets at the right time. The good news? Everything we need to facilitate these decisions is accessible on the web. This article follows another recently published text, The Guide to Data Analysis in Times of Crisis . For crisis-specific SEO information, you can skip the prerequisites section by clicking here. PREREQUISITES In order to better understand the scripts and methods presented, it is necessary to have some knowledge and some understanding of programming languages and spreadsheet formulas. This knowledge will help to better understand the article. To re …
Repérer et valoriser ce qui compte vraiment.
Recevez nos analyses et conseils pour rester à l’avant-garde du numérique.