Registers an event in AppsFlyer
trackingLogEvent = async () => {
try {
const modules = await Eitri.modules();
const logEvent = modules?.appsFlyer?.logEvent;
if (!logEvent) return;
await logEvent({eventName: "eitri_event", data: { page: "/Playground"}})
} catch (error) {
console.log("appsFlyerLogEvent.error: ", error);
}
}
Object describing the event.
Object describing the event's data.
Name of the event.
Sets the customer user id in AppsFlyer
setCustomerUserId = async (customerUserId: string) => {
try {
const modules = await Eitri.modules();
const setCustomerUserId = modules?.appsFlyer?.setCustomerUserId;
if (!setCustomerUserId) return;
await setCustomerUserId({customerUserId})
} catch (error) {
console.log("appsFlyerSetCustomerUserId.error: ", error);
}
}
Object describing the customer user id.
The customer user id to associate with AppsFlyer.
Collection of functions responsible for tracking an user's activity in an Eitri-App using various services.