You'll need to import the javascript file in your website before starting from this link.
1) setCustomerUserId(userId) To Set Custom User Id
const { appsflyer: AppsFlyer } = window.WTN AppsFlyer.setCustomerUserId("CUSTOM_USER_ID")
import { setCustomerUserId } from "webtonative/AppsFlyer" setCustomerUserId("CUSTOM_USER_ID")
2) logEvent(eventName, eventValues) To Push Event
const { appsflyer: AppsFlyer } = window.WTN AppsFlyer.logEvent("ADD_TO_CART",{ name:"Cadburry", quantity:1 })
import { logEvent } from "webtonative/AppsFlyer" logEvent("ADD_TO_CART",{ name:"Cadburry", quantity:1 })
Last updated 8 months ago