Skip to content

Combine data-simple-event="event_name" into latest.js #84

Closed

Description

@adriaandotcom

Docs: https://docs.simpleanalytics.com/events/inline

Script: https://scripts.simpleanalyticscdn.com/inline-events.js (unminified)

The script also contains a 404 check, which is useful too.

I want to embed this inline events functionality into our latest script. It should be enabled by default. Because Simple Analytics users need to add data-simple-event="event_name" to their HTML for it to work anyway.

At some point, we want to include auto events too. That should be behind a feature flag because it generated more events automatically.

Activity

  1. DelfinSR commented on Sep 15, 2025

    @DelfinSR

    Hi! I want to contribute and solve this issue. I'm checking how to do this, but it seems like I only have to do a copy paste to src/default.js and then compile it

  2. adriaandotcom commented on Sep 16, 2025

    @adriaandotcom
    CollaboratorAuthor

    I would start with an easier issue. It's definitely not a copy paste :)

  3. simpleanalytics-agent commented on Oct 19, 2026

    @simpleanalytics-agent
    Contributor

    Implemented in scripts#106: data-simple-event clicks, form submissions, attribute metadata and the opt-in 404 check (data-detect-404) are now part of the main script. It ships with the v12 release in scripts#40.

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