Documentation
API reference
The client API surface for sending custom events.
window.jamp.track(eventName: string)Sends a custom event beacon asynchronously to your JAMP dashboard.
Parameters
eventName a short string identifier, max 100 characters. For example 'signup'.
Notes
- Events are sent with
Navigator.sendBeacon(), so they survive page unload. - The global
window.jampinitialises as soon as the script loads. - Event names are case-sensitive.