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