Track Custom Events
Reteno Plugin provides ability to track custom events.
import { RetenoPlugin } from 'сordova-plugin-reteno';
const eventName = 'EVENT_NAME';
const date = new Date().toISOString();
const parameters = [
{
name: 'Additional parameter',
value: 'Additional value',
}
];
const forcePush = false;
var payload = {
'eventName': eventName,
'date': date,
'parameters' : parameters,
'forcePush': forcePush
}
cordova.plugins.RetenoPlugin.logEvent(payload, success, error);
The parameters
list item structure:
type CustomEventParameter = {
name: string;
value?: string;
};
Note
date
Date should be in ISO8601 format.
forcePush
is iOS
-only feature; Please read more about it here .