Tracking user behaviour

How to track user behaviour with the methods available in the web tracking SDK.

CrossEngage's web tracking SDK uses an event-based system to track user behaviour. To send these events to CrossEngage, you may use one of the following three methods, depending on the behaviour you would like to track or even set up custom functions & triggers.

To trigger a predefined or a custom event, you can use the Trigger Command functionality which is used by providing the trigger name as string and additional arguments based on the trigger:

// Interface:
ce([triggerCommandName], <...[commandParameters]>);
// Example:
ce('identify', {email: '[email protected]'});

Please note that that no user tracking will occur until the configuration ce({trackingOptIn: true}); has been set.

This command is used to identify users based on a given identifier

This command is used to update user attributes(traits)

This command is used to track simple Page Views including context information available.

This command is used to track any user behaviour other than identification and page views e.g. completed orders, cart views.

This command allows you to give your users an option to opt-out of CrossEngage tracking by setting an opt-out cookie in user's browser.