3 ms·
If you're hosting a static site on shared infrastructure (e.g. github pages, S3) where access logs are hard to come by, you can achieve some level of statistics
by djhworld 7y ago
If you're hosting a static site on shared infrastructure (e.g. github pages, S3) where access logs are hard to come by, you can achieve some level of statistics gathering using a 1x1 pixel GIF and putting a CDN in front of it, then putting the CDN logs through GoAccess.
EDIT: this was a blog I loosely followed https://benhoyt.com/writings/replacing-google-analytics/ https://benhoyt.com/writings/replacing-google-analytics/ - one detail I forgot to mention is you have to do some post processing on the log files to get them into a format amenable for use by GoAccess etc, but it's not too difficult
- awinter-py 7y agoyeah, sharing logs for shared hosting is a small but interesting & unsolved problem it's still weird to me that we rely on the frontend to manage access logging