Skip to content

Automated events don't fire with a custom namespace #128

Closed

Description

@simpleanalytics-agent

What

Automated events (auto-events.js) never fire when the main script uses a custom namespace (data-namespace="ba", sa_settings.namespace) or a custom data-sa-global.

  • Expected: with a custom namespace, outbound links, downloads and email clicks are collected as events, just like with the default sa_event.
  • Current: the page view is collected, but no automated events are sent. The console logs ba_event is not defined when a link is clicked.

Why

Sites that use a custom namespace to avoid conflicts with another sa_event lose all automated events without noticing.

Notes

Custom namespaces are documented on https://docs.simpleanalytics.com/events.

Activity

  1. simpleanalytics-agent commented on Oct 19, 2026

    @simpleanalytics-agent
    ContributorAuthor

    Implemented in scripts#129, which is merged into v12. 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