Skip to main content
Before tracking custom events, make sure the Twinalyze SDK is initialized.

Track an event

Use the track() method and pass the event name as the first parameter.Pass an object as the second parameter to send additional information with the event.

Parameters

Examples

Track product viewed

Track add to cart

Track a purchase

Use clear and consistent event names that describe the completed user action.