Track actions performed by your users.
The track call lets you track any action performed by your users.
Actions are named events. For example, you could track the event Subscribed to indicate that a customer just signed up for a monthly subscription.
You could track this event as follows:
Sift.track('Subscribed', {
plan: 'Pro',
interval: 'monthly'
});
track method definition
Sift.track(event, [properties], [options], [callback]);
The track call accepts the following arguments:
| Argument | Type | Description |
|---|---|---|
eventrequired | String | Name of the event, for example "Subscribed", "Registered", "Clicked" |
propertiesoptional | Object | Free-form dictionary of properties for the event, like plan or interval. |
optionsoptional | Object | Free-form dictionary of options. Note: If you don't pass a properties object, you should pass an empty object {} before options |
callbackoptional | Function | Function executed after a brief timeout (allowing the browser time to make requests). |
