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:

Argument

Type

Description

event
required

String

Name of the event, for example "Subscribed", "Registered", "Clicked"

properties
optional

Object

Free-form dictionary of properties for the event, like plan or interval.

options
optional

Object

Free-form dictionary of options.

  • Note: If you don't pass a properties object, you should pass an empty object {} before options*

callback
optional

Function

Function executed after a brief timeout (allowing the browser time to make requests).