this post was submitted on 22 Apr 2024
54 points (96.6% liked)

Selfhosted

40173 readers
650 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

Hello y'all! I have my personal (static) website / blog running on netlify out on the public internet. Netlify, in case you're not familiar, is not a traditional web host, so I can't add databases or anything else like that on the server itself. Right now, that site has zero analytics / visitor tracking and I've decided I want to fix that. I want to know how many people visited my site and which pages they looked at. I am NOT looking to monetize anything though, to be clear.

I want to self-host that analytics service at home, on my home server, but I need two things, please:

  1. Recommendations for which app to use. I've checked out Umami and Plausible and they both look good for my meager purposes. But please - let me know which app makes sense for a personal web site with low-ish traffic. Is there something simpler I could do?

  2. Help getting the reverse proxy set up so my public web site can send analytics data into my home server. I would prefer this to be entirely under my control, so no CloudFlare or Tailscale, for instance. Is Caddy an option? I get really confused really quickly about this level of networking, to be clear, so maybe I just need a really plain-English guide to handling this sort of thing?

Thanks for any / all ideas! Y'all so totally rock!

ETA: A little more info about Netlify and why I can't install or use tools other traditional web hosts might offer.

** SECOND EDIT**: Thanks to @[email protected] for the goatcounter suggestion, I am trying that out now for the analytics side of this. Getting it set up was easy and free, using their server. (I know, I know...) If I still like the app after the next couple of weeks, I will move it in-house and self-host. That gives me a couple of weeks to figure out my second issue above, how to have my public web site make requests to my self-hosted, behind the firewall/NAT service. Yay, more learning!

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 6 points 6 months ago (5 children)

Off topic, but I wonder if those old visitor counters from the web 1.0 days still work

[–] [email protected] 8 points 6 months ago (2 children)

yep. they're still here. they got smaller, and we call them "tracking pixels" now.

it's just an image, which, server side, you can count the number of times it got loaded. easy to embed and no js required.

[–] [email protected] 1 points 6 months ago

Ah I'm not talking about modern tracking pixels, but that actual html (js?) code from yesteryear

[–] [email protected] 1 points 6 months ago* (last edited 6 months ago) (1 children)

Thanks for this idea - the counting would be easy, but I don't have anywhere to store the numbers. With my free Netlify account and my static web site, I don't have a DB and and can't write to a file when someone visits, at least not that I know of.

[–] [email protected] 4 points 6 months ago

If you don't have a DB or the ability to store data in general none of the open source analytics software will work either.

load more comments (2 replies)