• Lena@gregtech.eu
    link
    fedilink
    English
    arrow-up
    3
    arrow-down
    3
    ·
    6 days ago

    I don’t think that is true, iirc you can’t track simple clicks on HTML a elements.

    • dev_null@lemmy.ml
      link
      fedilink
      English
      arrow-up
      9
      ·
      6 days ago

      With JavaScript you can track your precise mouse cursor movements. Many analytics products even offer that as an “session replay” feature to check how a user moved their mouse, or to see heatmaps of where people are pointing to.

      Tracking actual clicks is obviously much more trivial.

    • hikaru755@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      6 days ago

      Yes, you absolutely can, and it’s super simple. Click listeners are one of the most basic things you can do with JavaScript, and there’s nothing special about a elements that would make them not work. The only way to stop it from the user’s side is to disable JavaScript in their browser, but that comes with the downside of the majority of websites and apps just plain not working anymore.