TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Using GoAccess for self-hosted web analytics

110 pointsby bjokoover 5 years ago

8 comments

pilifover 5 years ago
While I do like GoAccess and I like owning my own data, there&#x27;s still a huge difference between what tools like GoAccess offer and what the elephant in the room, Google Analytics, offers.<p>It&#x27;s not just the data available by default, it&#x27;s also the very advanced user interface allowing even somewhat non-technical people to produce their own reports and dashboards.<p>Yes, you only co-own the data together with Google, but at least you <i>have</i> the data compared to using a home-grown solution which will either not provide your product managers with what they need or which will consume all of your life as you slowly re-implement your own Google Analytics which will never be as good and&#x2F;or featureful as the original.<p>Of course, if it&#x27;s just about your personal blog and if you&#x27;re willing to spend some time on the tooling itself, then yes, tools like these don&#x27;t have the privacy issues otherwise accompanying third-party analytics.
评论 #21890490 未加载
评论 #21891340 未加载
评论 #21899226 未加载
评论 #21890282 未加载
评论 #21893546 未加载
评论 #21890232 未加载
djhworldover 5 years ago
If you&#x27;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.<p>EDIT: this was a blog I loosely followed <a href="https:&#x2F;&#x2F;benhoyt.com&#x2F;writings&#x2F;replacing-google-analytics&#x2F;" rel="nofollow">https:&#x2F;&#x2F;benhoyt.com&#x2F;writings&#x2F;replacing-google-analytics&#x2F;</a> - 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&#x27;s not too difficult
评论 #21892156 未加载
hardwaresoftonover 5 years ago
I personally run Fathom[0] for my very simple needs and it&#x27;s pretty good as well. Not quite as simple to deploy as GoAccess, but it&#x27;s got a nice UI as well.<p>I used to use Matomo[1] (which is a lot closer to a full analytics suite) but stopped using it since it felt heavier than what I needed.<p>[0]: <a href="https:&#x2F;&#x2F;github.com&#x2F;usefathom&#x2F;fathom" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;usefathom&#x2F;fathom</a><p>[1]: <a href="https:&#x2F;&#x2F;matomo.org&#x2F;" rel="nofollow">https:&#x2F;&#x2F;matomo.org&#x2F;</a>
mikro2ndover 5 years ago
Like the other solutions I&#x27;ve seen, this assumes you have access to your web-server&#x27;s logfiles. For many (most?) low-end web-hosting this is likely not true afaik. I suspect that this is precisely the window-of-opportunity that enabled the dominance of Google Analytics and similar solutions.
UglycupRawkyover 5 years ago
GoAccess is great and all, but static log analyzation =&#x2F;= Google Analytics. You can only get so much data via log analysis, and if you have a SPA, or even just alot of client side stuff, static log analyzation just cannot provide you with the same type of data you get from client side.<p>If you really want to replace Google Analytics and have the same level of features and tracking you need a client side system - Matomo is the closest I&#x27;ve seen to that.<p>All that being said, I&#x27;ve used GoAccess, I like it, but I haven&#x27;t quite mastered the log format to enable my more robust AWStats logs with GoAccess. I have a bunch of subdomains all as VHosts, and I loved the feature in GoAccess that rolls it all up into a VHost table&#x2F;chart. However I haven&#x27;t figured out the log parser settings to get both AWstats and GoAccess to like it with the %v_host field in the logs. Any thoughts&#x2F;help there?
评论 #21899232 未加载
评论 #21891898 未加载
alicornover 5 years ago
Does anyone else work on a relatively large internal web project in a global corp where GA for obvious reasons is forbidden to use internally? How do you do statistics? Which statistics do you capture and why?
JackPoachover 5 years ago
Yeah, good luck integrating this with Adwords, YouTube, Facebook, etc. I understand why this is good for personal projects, but if you are spending lots of money on advertising (which probably goes mostly toward Google anyway), Google Analytics is the way to go.
评论 #21891640 未加载
reidjsover 5 years ago
This looks awesome for a personal&#x2F;portfolio site. I use matomo for mine and it’s sort of overkill. You have to set up your own lamp&#x2F;lemp stack just to get analytics and I use maybe 1% of the features.
评论 #21890373 未加载