Skip to content

Track custom events

Send a named browser event with optional properties and verify it in Supermetry.

Call the browser tracker when a visitor completes an action you want to measure.

  1. Install the tracking script before the code that sends the event.

  2. Call supermetry.track() with an event name and string properties.

    window.supermetry.track("Signup", {
    plan: "pro",
    source: "pricing-page",
    });
  3. Complete the action once, then open Events in Supermetry.

What you should see: Signup appears on the Events page; plan and source appear when identified collection is enabled.