How to fix the ‘Vote For Trump’ bot in Google Analytics

November 25, 2016
November 25, 2016 Anubhav Tiwari

So recently, I was going through our Google Analytics Account to analyze the traffic for the month of November. I found that we are getting unusual traffic from places which looked suspicious. After doing some research, I found that this is a widespread Google Analytics ‘Vote For Trump bot’ and many websites are being affected by this.

Screenshot below shows how the ‘Vote For Trump’ bot appears in Google Analytics under the Language section:

Referral traffic from Vote For Trump bot

Our website was getting a large chunk of traffic from some source, which was mentioned as “ You are invited! Enter only with this ticket URL. Copy it. Vote for Trump!”

So, some Language mentioned as- “ You are invited! Enter only with this ticket URL. Copy it. Vote for Trump!”, was sending the third-highest traffic to our website. It was quite obvious that traffic is spammy. Without investigating further, I tried to find the source of the referral traffic and found something exciting. We were getting traffic from!!!


But the excitement died as I clicked on the source. It leads me to the same referral path which looked something like this:


This link lead me to TNW Article which said –

“The spammer we’ve written about below is using the Google Analytics Measurement Protocol to create hits and send those to your Google Analytics property. These hits seem like they’re coming from this page or another page on, but they’re not.”

So yes, this was a ‘Vote For Trump bot’ and more details can be found here.

But how to fix this spam traffic?

You can try the following steps to filter the traffic coming from this bot:

  1. Go to Google Analytics > Admin > Filters > Add Filters

  2. Add the filter like below: create-filter

  3. ‘Verify’ and ‘Save’ the filter 

    save-filter-Vote For Trump Bot

And you are done. When you click on ‘verify’, the blank cells in the ‘After’ column indicate that the filter is working fine.

verification - Vote For Trump Bot

UPDATE December 15th, 2016:

People are observing spam traffic from the below sources as well:

  1. Vitaly rules google ☆*:。゜゚・*ヽ(^ᴗ^)ノ*・゜゚。:*☆ ¯\_(ツ)_/¯(ಠ益ಠ)(ಥ‿ಥ)(ʘ‿ʘ)ლ(ಠ_ಠლ)( ͡° ͜ʖ ͡°)ヽ(゚Д゚)ノʕ•̫͡•ʔᶘ ᵒᴥᵒᶅ(=^ ^=)oO
  2. search shell is much better than google!
  3. Google officially recommends an search shell!

These bots can also be filtered out of GA using the steps explained above.

Some useful reading to tackle bots traffic

  1. The best blog I have come across to tackle spam traffic is ‘Definitive Guide to Removing All Google Analytics Spam’
  2. justification on the spam can be read here: ‘A Russian Trump fan is celebrating by hacking Google Analytics’
  3. Read on how to verify your filter by Carlos Escalera
  4. Learn more about Language Filters
  5. Post by Google on Creating and Managing Filters

So that’s how you can tackle the “Vote for Trump” bot. Hope you find this helpful. And do let us know if you have spotted unusual traffic on your site. It’s always great to compare notes.

Comments (12)

  1. Alexander

    This doesn’t work (anymore)
    Did exactly what you described and got this when I verify:
    This filter would not have changed your data. Either the filter configuration is incorrect, or the set of sampled data is too small.
    Got 115 session from them…

    • Boris Poonia

      Hey Alexander,
      The verification sometimes doesn’t work, for now just apply the filter and it should block the spam referral traffic
      Just do a double check on the steps from the tutorial and monitor your traffic once you apply the filter

  2. Karen

    I’m getting the same results. Have tried different variations of the URL including* but nothing seems to change.

    • Anubhav Tiwari

      Hi Micha… I prefer using segmentation only for the sake of comparison, because it does not remove data from the reports. For example, I will prefer using segmentation if I have to compare the performance of a particular marketing campaign against another, viewing mobile visitors versus desktop visitors.
      Conversely, I use filters to remove ‘spam’ from the report level or any other data which needs to be included from the reports.

  3. Hi
    I tried the usual “known bots” option in Google and it didn’t work; I tried this as well and didn’t work; tried excluding by country (as this traffic is coming from Russia, Poland and Vietname and my company fortunately doesn’t work there) and preview says it won’t affect the data.

    • Anubhav Tiwari

      Hi João Barbosa,
      1. Known bots thing might not work if the list is not updated. So I can help if you let me know the steps you used for it.
      2. How are you verifying if the method given in the blog is working or not. Can you please share the screenshot?
      3. I suggest you not to exclude the country as you may lose out on the legitimate traffic coming from Russia.

  4. Mauro Fellmann

    Thanks for the article. But sadly Im not able to create an effective filter for this problem.
    When I try to create a filter excluding the “Language Settings” i have the following error: “This filter would not have changed your data. Either the filter configuration is incorrect, or the set of sampled data is too small.”
    But if I try to exclude “ru” using the Filter Field “Language Settings” I’m able to get some data. The thing is that I don’t want to exclude possible Russian visitors.
    How I can find a solution for this?
    All the best

    • Boris Poonia

      Hey Mauro,
      Just ensure that you’re copy pasting the name of the bot correctly, GA can be a bit of a stickler sometimes.
      Further, if it still doesn’t work, apply the following segment to your view to have a look at your data with the filter applied:
      Note: Applying a segment does not alter your GA data, it merely runs various conditions on your current data and shows you a visualization.

  5. Darien Cheyanne

    I found this much useful information, as to what I was exactly searching for google analytics. Thanks for sharing this so interesting post! I really want to be thankful for the way you have put it here.

Leave a Reply

Your email address will not be published. Required fields are marked *