Skip to content

Automated events miss links added after the page loaded #154

Closed

Description

@simpleanalytics-agent

What

auto-events.js only collects clicks on links that are on the page when it finishes loading. Links that a single-page app or lazy-loaded content adds later aren't collected, and neither are clicks before the page finished loading.

Expected: clicks on outbound, download, email and phone links are collected, whenever the link was added.

Why

Most websites built with React, Vue, Next.js and similar render links after the page loaded, or change them on navigation. Their outbound links and downloads silently go missing.

Notes

Found while writing the events guide for AI agents (docs#79), which currently has to tell agents to use inline events or sa_event for those links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions