Software Alternatives & Reviews

One Worker to Track Them All: Injecting Analytics Scripts into Multiple Websites with Cloudflare Workers

umami CloudFlare
  1. 1
    A simple and open-source own your website analytics.
    Pricing:
    • Open Source
    For a while now, I've been creating mini web tools to test out ideas or as tiny helpers for myself. I usually publish them on individual subdomains, which might not be the best idea, but I like the concept of a short, easy-to-remember URL. Recently, I discovered that some of these tools actually have a few users, which made me consider adding analytics to them. After a bit of research, I settled on umami. It's a great little privacy-conscious tool with exactly what I need and nothing more.

    #Web Analytics #Analytics #Privacy 69 social mentions

  2. Cloudflare is a global network designed to make everything you connect to the Internet secure, private, fast, and reliable.
    Except that there is. Cloudflare is pretty great for free SSL certificates and DNS management, but they also offer a free Workers plan. A Cloudflare worker is basically JavaScript code that runs on Cloudflare's edge network and handles HTTP traffic. You can do a lot with workers, including modifying/rewriting HTML responses. You can probably see where this is going: If a worker can modify HTML responses, then it can inject the umami script into every HTML response.

    #CDN #Cloud Computing #Content Distribution 94 social mentions

Discuss: One Worker to Track Them All: Injecting Analytics Scripts into Multiple Websites with Cloudflare Workers

Log in or Post with