Live data from Hacker News

Ask HN: How can I trust Google Analytics?

news.ycombinator.com

11–20 of 46 posts

Re: Ask HN: How can I trust Google Analytics?

#11
post #6
post #4

Well, let's see. A bunch of phds who still can't get support right, or find a viable business beyond the stench of adverts. Yes, I would be suspicious of GA as well...

Is there any other reliable tool I can use instead?

Shameless plug: my web-analytics-as-a-couchapp https://www.smileupps.com/store/apps/microanalytics

Also vulnerable, but at least there are so few users that no one would bother to fake its events.

Re: Ask HN: How can I trust Google Analytics?

#12
post #6
post #4

Well, let's see. A bunch of phds who still can't get support right, or find a viable business beyond the stench of adverts. Yes, I would be suspicious of GA as well...

Is there any other reliable tool I can use instead?

You could use Piwik, it's Open Source and you can self-host it. http://piwik.org/

Re: Ask HN: How can I trust Google Analytics?

#14
post #10

You can't know. GA spam is rampant, more so via referer spam than anything else.

This is the correct answer. You may be able to filter data to some extent in the dashboard using special views, but if you want a 100% guarantee that your data stays reliable, currently your best bet is not to use GA, or at least complement it with another tool.

Re: Ask HN: How can I trust Google Analytics?

#16
post #6
post #4

Well, let's see. A bunch of phds who still can't get support right, or find a viable business beyond the stench of adverts. Yes, I would be suspicious of GA as well...

Is there any other reliable tool I can use instead?

piwik? https://piwik.org/

Re: Ask HN: How can I trust Google Analytics?

#17
post #8

We just ran into a problem with Google Analytics trying to track opening clicks by sending an event to GA. Turns out when you click a link to open it, the browser page would load before the event to GA could be sent. Screwed up a huge amount of our click tracking data on GA.

window.addEventListener('unload', function () { var now = Date.now(); while (Date.now() < now + 300) {} });

Re: Ask HN: How can I trust Google Analytics?

#19
Experienced this a few times when somebody cloned my whole website, GA tracking code included.

Also, with the increasing spam coming from referrer and the new trend of adv blocking plugins (they block GA too), Google Analytics has become less reliable than ever.

However, you can setup open source analytics software on your own server, like [Piwik](http://piwik.org/).

Re: Ask HN: How can I trust Google Analytics?

#20
post #8

We just ran into a problem with Google Analytics trying to track opening clicks by sending an event to GA. Turns out when you click a link to open it, the browser page would load before the event to GA could be sent. Screwed up a huge amount of our click tracking data on GA.

Why not just use an event handler which sends the event to GA, and after that, follows your link? They provide a callback and everything...

   var outboundLink = function(url) {
      ga('send', 'event', 'button', 'click', {'hitCallback':
         function () {
            document.location = url;
         }
      });
   }

   Foo
See: https://developers.google.com/analytics/devguides/collection...
Post reply on HN