News for hackers. Stuff that matters.
Re:Show HN: Why Google Analytics May Not Be the Best Option ... by onion2k on Thursday June 22, 2023 @03:03AM (#36428885)
Whenever anyone asks me about ways to improve the performance of their web frontend my first question is always "What do you actually use the data you get from Google Analytics for?" 9 times in 10 the answer is "To see how many people visit my website." My next remark is usually something about vanity metrics and how conversions are what actually count, but that's because I'm a mean person. The point is that adding in Google Tag Manager for the use case of 'counting' is absolutely killing your website's perf. You can, and should, collect that information from the server logs with no frontend JS at all.

If you need more than just a counter then MetricsWave or Plausible or something is better than Google Analytics. The only reason to use Google Analytics is if you need to integrate it with other Google services like ad tracking.

Re:Show HN: Why Google Analytics May Not Be the Best Option ... by oneeyedpigeon on Thursday June 22, 2023 @03:12AM (#36428941)
I think another potential, valid reason is if you don't have access to the server logs - e.g. you host on GitHub Pages. Now, I still choose not to use analytics in that scenario, but I can understand why some would.
Re:Show HN: Why Google Analytics May Not Be the Best Option ... by pointlessone on Thursday June 22, 2023 @04:02AM (#36429257)
What is the current state of the art in server-side analytics?
Re:Show HN: Why Google Analytics May Not Be the Best Option ... by 72deluxe on Thursday June 22, 2023 @05:26AM (#36429748)
I run goaccess on a cron job and have paired it with a MaxMind GeoIP database so that you can see where people are coming from etc.

https://goaccess.io/

Re:Show HN: Why Google Analytics May Not Be the Best Option ... by IAmGraydon on Wednesday June 28, 2023 @10:05AM (#36506671)
This is pretty great. Thanks.