API Reference
Error Monitoring
Getting Started
Welcome to Highlight
Integrations
Product Features
Session Replay
Tips
Menu

H.track()

This method is used to track events that happen during the session. You can learn more Tracking Events.

H.track(eventName: string, metadata: [key: string]: string | boolean | number) => void;
Copy
eventName Required

The name of the event.

metadata

Metadata for the event. You can think of these as additional tags for the event.

Example
H.track('Opened Shopping Cart', { accountType: 'premium', cartSize: 10, })
Copy