Undercounting Stats

Michael Feldstein posted on Twitter:

Seeing signs that Google Analytics significantly undercounts. Any recommendation for easy, reliable db-based WordPress analytics?

I knew Google Analytics relies on JavaScript to measure what users are doing. Bots typically do not execute JS, so go undercounted. That is OK, probably even great depending on how much they annoy me. It occurred to me browsers now incognito modes, which a desirable feature while in that mode would be to not execute known JS stats.

A response to Michael was:

Maybe try Jetpack? Has analytics built in.

I looked at the HTML for my own site. Jetpack appears to be JavaScript based as well.

Looking at Jetpack’s stats, though, I noticed a significant spike in traffic on September 27th. It got 487 hits compared to around 200 each day two weeks prior and since. Details for that day said my Nationalism post had 267 hits compared to my normal leader the Quotes to Make You Think. This made me curious. So I looked up the same day in Google Analytics. No spike in GA. So I pulled the raw access logs. The hits exist, but almost all were from a single IP. No visits to this page according to GA.¬†Impressively disconcerting. I expected¬†from Google Analytics 1 hit for the DSL user with 200+ hits, maybe 1 for the IP with no reverse DNS, and 0 for the Facebook bot.

Anyway, I looked at various WordPress plugins. I think WP Slimstat is the db-based WP analytics I will check out. It looks mature and seems pretty consistent with what I see in the hits. Too bad I did not add this a long time ago so I can compare Slimstat to GA and Jetpack. Will have to let it collect data and do this again.

Good thing I enjoy this stuff.