Re:The Google Analytics Setup I Use on Every Site I Build
by jameslk on Monday February 13, 2017 @01:54PM
(#13637722)
It's pretty annoying that I have to create spam filters for Google Analytics to be useful. Every site I've installed GA on has required me to filter out spam. I don't understand why something isn't done about it at an engineering level. If site owners can set up filters against spammers, is it really that hard for Google to do it? Especially since they can see it across their accounts. Seems like it's the same type of issue that plagues email, yet Google seems to have that under control.
[ Parent
| on HN ]
Re:The Google Analytics Setup I Use on Every Site I Build
by throwawaydbfif on Monday February 13, 2017 @04:14PM
(#13638836)
You can get around this with some fairly simple hacks. Write some JavaScript that evals a part of your page or something crazy like loading part of itself from Rot13 text file. Have this js generate an ID you can identify as 'real' or 'fake'. Filter your analytics by this ID. If you want to be extra funny make real and fake IDs look indistinguishable to human eyes.
99.9% of spammers are too lazy to spend any time figuring this out for a single site, and their tools won't even tell them spam isn't working. I've gotten away with adding a simple static ID to everything and except for really large juicy targets spammers don't even watse time on this.
All of my sites get zero spam with this filter
Re:The Google Analytics Setup I Use on Every Site I Build
by joshdance on Monday February 13, 2017 @06:45PM
(#13639975)
Can you elaborate on that? How do you make the real and fake ids?
Re:The Google Analytics Setup I Use on Every Site I Build
by throwawaydbfif on Tuesday February 14, 2017 @10:33PM
(#13649463)
The spammer bots are so dumb that using anything besides default "pageview" events seems to work
Re:The Google Analytics Setup I Use on Every Site I Build
by netzone on Tuesday February 14, 2017 @04:45AM
(#13642408)
I assume he means something like the real ids being divisible by 2, while the fake ids are not.
Re:The Google Analytics Setup I Use on Every Site I Build
by seattlekiwi on Wednesday February 15, 2017 @11:31AM
(#13653170)
Can you share any details on this implementation? Sounds really interesting.
Re:The Google Analytics Setup I Use on Every Site I Build
by flamtap on Monday February 20, 2017 @12:13AM
(#13684468)
I love me a good honeypot.
Re:The Google Analytics Setup I Use on Every Site I Build
by pedalpete on Monday February 13, 2017 @04:20PM
(#13638875)
Can you elaborate as to what sort of spam you are referring to? Do you mean bots viewing your pages? Or is it something else?
Re:The Google Analytics Setup I Use on Every Site I Build
by whatever_dude on Monday February 13, 2017 @05:18PM
(#13639307)
Referral spam. Pretty common nowadays. Plenty of articles talking about it and showing how to filter it.
https://moz.com/blog/how-to-stop-spam-bots-from-ruining-your...
Re:The Google Analytics Setup I Use on Every Site I Build
by gressquel on Monday February 13, 2017 @04:27PM
(#13638927)
He is probably talking about the infamous "vitaly referrer spam". It shows up on the referrer tab of GA dashboard with a really long domain like "merry.christmas.go.to.this.link.to.get.a.price.vitaly.com".