Skip to content

Latest commit

 

History

History
48 lines (39 loc) · 1.43 KB

analytics.md

File metadata and controls

48 lines (39 loc) · 1.43 KB

AriesSDK.analyticsEvent(event: Object)

const payload = {
    eventName: 'the event',
    properties: {
        param1: 'value1',
        param2: false,
        param3: 123
    }
};
AriesSDK.analyticsEvent(payload);

Sends events to the different analytics provider configured in the native app.

Field Type Description
eventName string Event name that will be sent to the analytics provider
properties Object List of key/value pairs

AriesSDK.udpateAnalyticsUserInfo(event: Object)

const payload = {
        fullName: 'Name Surname1 Surname2',
        email: '[email protected]',
        phoneNumber: '1231236666',
        gender: 'M',
        property1: true,
        property2: 123
};
AriesSDK.udpateAnalyticsUserInfo(payload);

Updates user information to be tracked on Analytic events.

This method MUST be used right before AriesSDK.analyticsEvent(...) in order to allow Native to get that new user data to be sent within the analytics payload for those events that required them.

Some values are handled slightly differently, so if you want to send any of them please use the specific key:

Specific keys supported

Field Type Description
fullName String Name + Surname1 + Surname2
email String Email
phoneNumber String Phone number
gender String Gender