2 pointsby semking5 hours ago1 comment
  • semking5 hours ago
    I'm Elie Berreby, the author and I'm sharing first on HN. Using standard UTM parameters (utm_source, etc) on internal links is a dangerous anti-pattern.

    Architecturally, it creates two massive problems: it forces web crawlers into infinite, redundant loops that destroy your crawl budget, and it permanently fractures your analytics by overwriting the user's original session acquisition source in tools like GA4.

    The modern fix is to completely decouple your routing and presentation layers from your analytics.

    Pass structured payloads using HTML5 data-* attributes and pick them up via event listeners. It keeps URLs clean and makes your telemetry immune to CSS refactors.