5 hours ago · Tech · 0 comments

Everyone needs a tracking URL shortener. Why tracking? I want to know if they opened my email and clicked the link. Why shortener? I want them to know what the link is about. For example, https://r.s-anand.net/edge-remote-debugging.html is so much more meaningful than https://chatgpt.com/share/68528565-0d34-800c-b9ec-6dccca01c24c I’ve used redirection services in the past - like t.co, bit.ly, goo.gl, ow.ly, and others. They tend to vanish, start charging, serve ads, etc. Here’s my solution: use static HTML for redirection. For example, https://r.s-anand.net/example.html redirects to https://example.com/. Here’s the code: <script data-goatcounter="https://sanand0.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script> <meta http-equiv="refresh" content="0; url=https://example.com/"> The first line sets up tracking with GoatCounter, which is my current favorite analytics provider. It might vanish, but I can export the data if required and move to another. While it lasts, I can…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.