Re:Replace Google Analytics with a shell script
by tux on Sunday April 18, 2021 @09:53AM
(#26852480)
I've been doing similar but with much more advanced bash script since about 2010 :-) I haven't used Google Analytics, after I learned how they use this data. I just never even thought about sharing this, because I thought no one would care. But I find like minded people on HN all the time ^_^ It's much cooler if you use this as a live script to watch for traffic. You can filter out only the pages you want to see for example. If there is any interest, I can share my scripts ;-)
[ Parent
| on HN ]
Re:Replace Google Analytics with a shell script
by tux on Sunday April 18, 2021 @01:03PM
(#26854198)
Nothing special really, but you asked for it ^_^
https://github.com/tuxys/bash/blob/main/tail.sh
This script is for nginx web server, but I'm sure with some modification it will work on other web servers like apache.
EDIT: Later after some rewrite, I will also publish "stats.sh" a tiny script that generates daily/monthly/yearly static logs.
Re:Replace Google Analytics with a shell script
by zeeshanqureshi on Monday April 19, 2021 @12:52PM
(#26864956)
Thanks!
Re:Replace Google Analytics with a shell script
by zeeshanqureshi on Sunday April 18, 2021 @12:35PM
(#26853925)
Joining the line. Please do share.
Re:Replace Google Analytics with a shell script
by samstave on Sunday April 18, 2021 @10:36AM
(#26852834)
Please share
Re:Replace Google Analytics with a shell script
by fidesomnes on Sunday April 18, 2021 @12:08PM
(#26853651)
2nd share request