DEV Community

Cover image for How I self-hosted my own website analytics with Umami

How I self-hosted my own website analytics with Umami

Deepankar Bhade on December 08, 2021

I absolutely love over-engineering this site. After months of procrastinating I finally rolled out my blog to this beautiful world. I stumbled upon...
Collapse
 
michael_scharen profile image
Sci-Fi Author Michael James Scharen

Doh!
data-domains='dpnkr.in' is your own domain. I did not recognize the .in
So for my code I need to add data-domains='michaelsbookcorner.com' right?

Collapse
 
madza profile image
Madza

Curious what's your costs of hosting the DB with Railway?
I use free Postgres instance in Heroku with 10k row free tier. Have to clear the database once the limit is full to avoid cost, otherwise it's effective solution, too 😉

Collapse
 
deepcodes profile image
Deepankar Bhade

$1.85 per month

Also Railway's free tier is 5$ per month

so I don't have to pay anything yet.

Railway Cost

Collapse
 
madza profile image
Madza • Edited

Nice to see that they use pay-for-use model 👍 Reminds me of AWS 😉

Collapse
 
anthonynsimon profile image
anthonynsimon

Hey Deepankar! Love to see Panelbear mentioned on your tutorial 🐻❤️

To add some of the benefits you also get on Panelbear vs self hosting umami:

  • Performance monitoring (eg. load time, DNS, TLS timings, and soon Web Vitals)
  • Alerting integrations to Slack, Discord, Email
  • And of course, fully managed (no databases or servers to take care of)

P.S.: I'm the dev running Panelbear, feel free to shoot any questions my way.

Collapse
 
deepcodes profile image
Deepankar Bhade

Things I really loved about Panelbear than other vendors

  • Web vitals stats (as you mentioned)
  • Free to use (no credit card)
  • Dedicated Nextjs wrapper

Been using it! Amazing stuff

Panel bear dashboard

Collapse
 
michael_scharen profile image
Sci-Fi Author Michael James Scharen

Where are we supposed to set umami.disabled = true?
Also, what is data-domains='dpnkr.in'? What does it mean? Is it specific to your case or does it have general meaning?

Collapse
 
alexweininger profile image
Alex Weininger

I self host Umami analytics for PulseBanner.com. Loving it so far!

Collapse
 
deepcodes profile image
Deepankar Bhade

Yep it's a delight , curious to know how are you hosting it?

Collapse
 
alexweininger profile image
Alex Weininger

I use CapRover on a DigitalOcean Droplet.

Collapse
 
asdivyansh profile image
Divyansh Chaurasia

Worth reading, loved it!

Collapse
 
deepcodes profile image
Deepankar Bhade

Thank you so much Divyansh ❤️

Collapse
 
mike_andreuzza profile image
Michael Andreuzza

Been using Umami for more than a year.

Love it to the bones, amazing stuff.

Collapse
 
th1nhng0 profile image
Ngô Phú Thịnh

Cool stuff, thanks for sharing this :D

Collapse
 
arturgdevelop profile image
Artur G

What about 66Analytics?

Collapse
 
deepcodes profile image
Deepankar Bhade

Looks very great, might be an overkill for personal sites tho

Also their OSS tier is paid.