These docs are for v1.0. Click to read the latest docs for v2.0.

Tracking Events

Introduction

Events are all the actions performed by the user on the mobile application. Smartech SDK enables you to record user events and later learn more about your app’s usage patterns and to segment your users, target and personalize messaging based on the events performed by them.
Each event must have a name and a set of attributes describing more about the event in detail.

Tracking Custom Events

Custom events enable you to track user actions in your app. Now you can now start associating user actions with the custom name instead of ids, use below method.

SmartechSDK.trackEvent("EVENT_NAME", "PAYLOAD_STRING");

// Sample code for reference purpose only
const payloadata = {
    name: "Galaxy",
    description: "20gram bars",
    payload_id: "1",
    event_id:21
};
SmartechSDK.trackEvent("Page Browse", payloadata);