track

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:

ArgumentTypeDescription
event
required
StringName of the event, for example "Subscribed", "Registered", "Clicked"
properties
optional
ObjectFree-form dictionary of properties for the event, like plan or interval.
options
optional
ObjectFree-form dictionary of options.
Note: If you don't pass a properties object, you should pass an empty object {} before options
callback
optional
FunctionFunction executed after a brief timeout (allowing the browser time to make requests).