How to Filter Language Spam in Google Analytics

1 Method: How to Block Language Spam in Google Analytics

Google Analytics spam is quickly growing and becoming a concern with many webmasters and website owners. Spammers are using more methods to spam Google Analytics accounts than ever before and ways to block spam in Google Analytics changes as spammers find ways to get around them.

language spam in google analytics

One new way spammers are using to get into our Google Analytics data is by using the language dimension with a message. Spammers are using the Language dimension to send messages to those who monitor Google Analytics data. One of the most recent instances occurred with a Russian spammer started to use the Language dimension to spam his support for Donald Trump.

How to Block Language Spam in Google Analytics

In order to block language spam in Google Analytics it is recommended to create an exclude filter for language spam using the “language setting” filter type.

1. Log in to your Google Analytics account and go to the Admin tab

2. In the “View” column select Filters and then click + Add Filter

3. Add a Filter Name: Language Spam (or something you can easily remember)

4. Go to: Filter Type > Custom > Exclude

5. Select Filter FieldLanguage settings

block language spam in google analytics
The numbers in the image do not represent the numerical order of steps

6. Add a Filter Pattern\s[^s]*\s|.{15,}|\.|,

7. Click on the blue text that says Verify this filter to see a preview table of how this filter will work in your account. You should only see language spam on the left side of the table: filter-verification-language-spam

8. After you verify the filter click the Save button on the bottom of the page

  • Hi Sean Doyle,

    Your information is very informative. I like it.

    I know, how to defense spam in google analytics.

    Thanks a lot again. formulabloggercomnawaterprogramnet

  • Hi Sean Doyle, The language makes me anxious and uncomfortable. Now the issue has been resolved in a way that you give. Thank you..

    Greetings from the State Indonesia

  • Hi Sean,
    Thanks for the post. Great idea!

    Quick FYI — I think your filter pattern has a slight error.

    You want the first part to match any whitespace, followed by 0 or more non-whitespace, followed by another whitespace. The expression in your post is missing a backslash after the carrot. (You need to escape that “s”, otherwise it will match 0 or more non-s characters, instead of non-whitespace characters.) You can test it out here: https://regex101.com/
    Thanks again,
    laurie