Re: Log analysis for statistics
Jakub T. Jankiewicz 06 Aug 2022 19:13 UTC
It's better than nothing, but not as nice as some analytics software. Not
every Analytics is tracking people. But by tracking I mean invading privacy,
like Google Analytics does or other commercial software. Example is Open Web
Analytics https://www.openwebanalytics.com/ I use it on my website.
But by analytics for links I was thinking about adding some server side code
that will save IP address, time and URL. This is exactly what server logs
are saving. Also saving User-Agent is good idea since it's sent as HTTP
header.
I will try to search something for Nginx, since cookie based analytics is
probably not an option, even if self hosted.
And a question: how the redirect on go.scheme.org is working? Is it Nginx
configuration, or is is some kind of server side script that is doing HTTP
redirect?
On Sat, 6 Aug 2022 17:29:27 +0300
Lassi Kortela <xxxxxx@lassi.io> wrote:
> > One think that would be nice is some kind of analytics for the clicks.
> > It's not tracking just count how many times the link was open it may be
> > useful for people that create those links. This is not private data so
> > this can be public to everyone. But I'm not sure how difficult it will be
> > to add.
> >
> > yourls have counter but also nice graph that show when people visited the
> > page and from what countery (probably based on IP address).
>
> If I've understood correctly, Magnus allows us to crunch the server-side
> nginx logs to generate anonymous statistics. I just tried out the old
> Unix program `analog` to do that.
>
> It generates reports like this: https://servers.scheme.org/analog/go
>
> The "Redirection Report" shows the most popular redirects:
> https://servers.scheme.org/analog/go/#redir
>
> Analog has tons of options
> (https://allstar.jhuapl.edu/repo/p1/amd64/analog/doc/docs/indx.html). We
> could also try some other log analyzer that runs on the server.
--
Jakub T. Jankiewicz, Senior Front-End Developer
https://jcubic.pl/me