Pre-requisites

Create User - Mandatory to pass in event trigger

Sending Events to SuprSend

You can setup events on user actions in your app and configure workflows on top of it that triggers when the corresponding event is passed through App. Variables added in the template or workflow should be passed as event properties

You can send Events from your app to SuprSend platform by using suprsend.track() method.

suprsend.track(event_name, property_obj);
suprsend.track("clicked", {"page":"Dashboard","city":"Bangalore"});

Event Name or Property Name should not start with $ or ss_. These keywords are reserved for internal events and property names.

System Events tracked by SuprSend

There are some system events tracked by SuprSend SDK by default. These are some basic events, as well as events that are necessary for tracking notifications related activity (like delivered, clicked, etc). You are not required to do anything here.

Event NameDescription
$app_installed$app_installed will get tracked when user launch his app for the first time. FYI cases in which it will also get called 1. When user lanches his app for first time. 2. When user uninstall the app and installs it again. 3. [Multiple device login ]When user launch app for first time on different devices. 4. When user clears the app cache and relaunches the app.
$app_launchedGets tracked when user launches the app each time.
$user_loginGets tracked when user logs in inside the app
$user_logoutGets tracked when user logs in to the app
$notification_deliveredWill get tracked when the suprsend notification payload is received at sdk end.
$notification_clickedWill get tracked when user either clicks the notification body or any action button in the notification.
$notification_dismissedWill get tracked when user dismisses the notification by left swiping the notification or by clicking on “Clear All” button

Advanced Concepts

1. Super Properties

Super properties are data that are always sent with events data. These super properties will be sent in each event after calling this method. Super properties will be stored in local storage, and will persist across invocations of app.

2. Flush Events

SuprSend SDK automatically flushes events at an interval of 5 seconds, and on certain activities like app relaunch, etc. If you wish to flush a time sensitive event to SuprSend immediately, you can use the suprsend.flush() method.

All the system tracked events are flushed immediately

suprsend.flush();