• dev_null@lemmy.ml
    link
    fedilink
    English
    arrow-up
    15
    arrow-down
    1
    ·
    4 days ago

    No, it’s not the only way. You could track the click with JavaScript.

    • tauren@lemm.ee
      link
      fedilink
      English
      arrow-up
      5
      ·
      4 days ago

      The user can also block your tracking scripts. Besides, the user can share the link with friends, and you won’t be able to track them this way. I’m sure there are many other reasons why having a middleware is de-facto the industry standard.

      • dev_null@lemmy.ml
        link
        fedilink
        English
        arrow-up
        3
        arrow-down
        1
        ·
        4 days ago

        The user can also block the URL target rewriting. Not sure what’s your point though, I said it’s not the only way, not that there are better ways.