5
11 Comments

How do you do server-side analytics?

I want to tract certain actions on the server-side such as how many times someone requests for something, or counters to see how many times a job has run. I currently use a node.js library for google analytics and ingest it into metabase but the whole process feels wrong because GA wasn't really meant to work like this. Anyone know any other services that offer server-side analytics? I checked out datadog but they seem pretty expensive. Thanks!

on February 12, 2021
  1. 4

    I think the answer to this is two-fold. There is analytics for Monitoring and Analytics for business.

    For monitoring and making sure the server is working well: Graphana, datadog and the like are good.

    For business analytics (like building funnels and things that happen in the back-end). Mixpanel is a great tool for it and can be used by multiple teams (as they also have a FE counterpart that makes you able to get a more holistic view of a user, which is a big plus).

    GA is a pretty crappy tool for the modern startup. It was developed literally 20 years ago to measure what at the time were static content websites(news sites and blogs) and it just kinda stayed that way 3 versions later.

    The new GA4 Does allow you to also track things in the Back-end in an integrated way but it is very very new (i.e. features are missing, like a proper way to pass user_id to the events and documentation is very scarce). On the other hand they are picking up the slack and making mixpanel run for their money. GA4's main advantage is that it is free and super easy to share with, say, your sales guy or a marketing agency if you come to use one.

    btw. Mixpanel has pretty expensive plans, in my day job we were once paying for it (9k USD per year) and then cancelled.... we didn't notice the difference. The paid features are really niche >>> you can get pretty far with their free features

    1. 1

      Thank you for the detailed response! Seems like Mixpanels free tier is actually pretty good. Based on all the replies, I'm gonna try out:

      1. Mixpanel
      2. GA4
      3. New Relic
  2. 2

    I use newrelic for application monitoring (for python, but I'm sure they have nodejs available as well). helpful for looking at transaction counts, transaction times, and error rates. they have a free tier, would recommend.

    1. 1

      Thanks, I will give it a shot for APM!

  3. 1

    I log EVERYTHING to Mongo and filter my way through

  4. 1

    I kinda don't. I just increment a number in a db table for some stats and look at it from time to time.

  5. 1

    I had faced the same scenario few weeks ago while I was setting up our SaaS infrastructure, but finally I decided to track everything in-house. I ALMOST went with Datadog's Log Management plan.

    I didn't signup but from their website I see that it is possible to subscribe to Log Management only, which will be dead-cheap (advertised as starting @ 10 cents/GB).

    1. 1

      I signed up for their log plan but then they started to charge me for everything else so I canceled my subscription. I ended up going with logdna for my logs

      1. 1

        Oh, did they?! Sorry about that. And thanks for the heads up.

  6. 1

    You can use Prometheus for collecting/storing metrics and Grafana for visualization. It is easy to setup, maintain and use.