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 |
---|---|---|
| String | Name of the event, for example "Subscribed", "Registered", "Clicked" |
| Object | Free-form dictionary of properties for the event, like |
| Object | Free-form dictionary of options.
|
| Function | Function executed after a brief timeout (allowing the browser time to make requests). |