Custom event tracking

Track button clicks, signups, purchases and any custom action with a single line of JavaScript.

Fire an event from anywhere in your app with a one-line call:

app.js
// Track a standard signup
window.jamp.track('signup')

// Track a custom purchase conversion
window.jamp.track('purchase')

// Apply tracking to specific DOM nodes
document.getElementById('cta').addEventListener('click', () => {
  window.jamp.track('cta_click')
})

Custom events render natively in your dashboard under the Events tab. Note that they do count toward your monthly event quota.

TypeScript support

Optionally add the tracking bindings to your global ambient declarations.

// Include inside your global.d.ts or similar types file
declare global {
  interface Window {
    jamp: { track: (eventName: string) => void }
  }
}