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.
-
Install the tracking script before the code that sends the event.
-
Call
supermetry.track()with an event name and string properties.window.supermetry.track("Signup", {plan: "pro",source: "pricing-page",}); -
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.