News for hackers. Stuff that matters.
Re:Lightweight Alternatives to Google Analytics by chaosite on Thursday June 18, 2020 @07:42AM (#23562111)
One of the reason Google Analytics (and logging solutions like it) is popular is that people don't have access to server logs.
Re:Lightweight Alternatives to Google Analytics by JackWritesCode on Thursday June 18, 2020 @08:25AM (#23562394)
Server side logs aren’t an accurate way of doing analytics and bring up compliance challenges (storing access logs and using them for purposes other than security etc.)
Re:Lightweight Alternatives to Google Analytics by justinclift on Friday June 19, 2020 @12:42AM (#23571032)
> Server side logs aren’t an accurate way of doing analytics ...

Based on what? Server side logs records what the server itself sent. That sounds like it should offer far more accuracy than what a JS only solution would do.

That being said, if the code for analysing the server logs is lousy, it's not going to help. :)

Re:Lightweight Alternatives to Google Analytics by snowwrestler on Sunday June 21, 2020 @11:36PM (#23597172)
The identifier in server logs is IP address, which is useless for distinguishing users. On the corporate side, NAT hides all the visits of many people behind a single IP. On the consumer side, ISPs change IP addresses all the time so a single person will show up as multiple IP addresses.

Note that I'm just talking about distinguishing people, not identifying or tracking. A basic question like "how many people came to my website today" is more accurately answered with client-side analytics than by analyzing web server logs.

Re:Lightweight Alternatives to Google Analytics by justinclift on Wednesday June 24, 2020 @09:24AM (#23627549)
> A basic question like "how many people came to my website today" is more accurately answered with client-side analytics than by analyzing web server logs.

How can client side analytics be more accurate, when ad blockers stop visits from even being registered by client-side analytics?

Re:Lightweight Alternatives to Google Analytics by JackWritesCode on Friday June 19, 2020 @10:06AM (#23574642)
Before looking at accuracy, you already have compliance challenges with logging IPs / user agents and using it for analytics purposes.
Re:Lightweight Alternatives to Google Analytics by justinclift on Friday June 19, 2020 @11:59AM (#23575752)
Please don't try and change the goal posts. You said:

> Server side logs aren’t an accurate way of doing analytics...

What is your thinking behind that statement, as it sounds incorrect?

Re:Lightweight Alternatives to Google Analytics by ivanche on Friday June 19, 2020 @12:59PM (#23576351)
What compliance is challenged by logging user agents?
Re:Lightweight Alternatives to Google Analytics by hackernewsn00b on Thursday June 18, 2020 @09:32AM (#23562924)
Can you talk a little bit more about why server side logs aren't accurate for analytics? I was planning on doing basic analytics (pageviews mostly) using Cloudfront access logs stored in an S3 bucket and queried through Athena for a site I'm working on which uses the AWS stack.

I know Cloudfront logs can sometimes drop, but is there a more important reason you're talking about?

Re:Lightweight Alternatives to Google Analytics by XCSme on Thursday June 18, 2020 @09:43AM (#23563020)
I think with server-side only is harder to filter bots, crawlers and get accurate bounce rates or session length times.
Re:Lightweight Alternatives to Google Analytics by tobilg on Friday June 19, 2020 @02:03PM (#23577163)
Shameless plug, you might want to have a look at https://github.com/ownstats/ownstats
Re:Lightweight Alternatives to Google Analytics by f0rfun on Thursday June 18, 2020 @07:43AM (#23562121)
You mean unpopular?
Re:Lightweight Alternatives to Google Analytics by mtmail on Thursday June 18, 2020 @07:58AM (#23562211)
Popular. Because adding lines of javascript is much easier than processing server log files.