News for hackers. Stuff that matters.
Re:Google Analytics, Casualty of Spam by charlieirish on Sunday January 11, 2015 @09:49AM (#8870096)
Google have responded to this (in the past) by implementing an automated spam/bot/spider filtering service:

https://plus.google.com/+GoogleAnalytics/posts/2tJ79CkfnZk

If you're seeing nefarious traffic/referrers you may want to tick this box which I believe is unticked by default.

Re:Google Analytics, Casualty of Spam by adarshr on Sunday January 11, 2015 @10:58AM (#8870256)
I have that setting turned ever since I started tracking my website's traffic. But I am sorry to say, it doesn't work reliably. I still see traffic from sites such as semalt.com and a few others as you can see here.

http://i.imgur.com/XGRvLKa.png

Re:Google Analytics, Casualty of Spam by angry-hacker on Sunday January 11, 2015 @10:42AM (#8870209)
This doesn't work in this case.

I have 100 of clients whose analytics are useless, I can't block them on server side since they never visit the sites.

It's impossible to keep up creating filters to filter them out also on Google Analytics.

This technique is a new, has been going on for a month or so.

Re:Google Analytics, Casualty of Spam by sounds on Sunday January 11, 2015 @12:50PM (#8870584)
Google is definitely aware of this kind of abuse, and it's not too small to notice, too far into the long tail, etc.

The real problem here is that Analytics has that real-time view. If a spammer creates a test account and then tries to spam it, they can get real-time feedback on what works / what doesn't.

The solution is straightforward but not "easy": put the analytics frontend[1] on the same host that serves the rest of the application; use the same session auth and spam filtering that is already there.

[1] By "frontend" I mean the first step of the analytics data-gathering pipeline. And this part could be as simple as a new logging module that consumes log data in realtime, anonymizing it and aggregating it, then uploading it to one or more analytics services of your choice.

This solution sacrifices the ease-of-use that analytics currently enjoys. No more "just drop in this <script> tag."

Re:Google Analytics, Casualty of Spam by simbolo on Sunday January 11, 2015 @01:41PM (#8870775)
This system already exists and is Measurement Protcol (https://developers.google.com/analytics/devguides/collection...) allowing you to send activity data via your webserver, so you won't need the javascript tool at all.

The problem is still there however as this is how the spammers send fake data. Essentially, even the server side API is still unauthenticated.

Re:Google Analytics, Casualty of Spam by ploxiln on Sunday January 11, 2015 @06:23PM (#8871749)
But could you get a new tracking ID and keep it a secret? Since it's now only server-side, and not client-side?
Re:Google Analytics, Casualty of Spam by gingerlime on Sunday January 11, 2015 @09:59AM (#8870122)
That's interesting, but judging by the description, it's based on User-Agent header matching. Sounds trivial to circumvent...

> The backend will exclude hits matching the User Agents named in the list as though they were subject to a profile filter

Re:Google Analytics, Casualty of Spam by joyofdata on Sunday January 11, 2015 @10:05AM (#8870131)
thanks for the hint - no more blackhats and vitaly shown in the sources - seems to work