Native extension (iOS, Android) AppsFlyer SDK for OpenFl
Install:
-
run
haxelib git AppsFlyerExtension https://github.com/GreenishFlow/AppsFlyerExtension-HAXE
-
add to project.xml:
<haxelib name="AppsFlyerExtension" />
Initialization:
AppsFlyerExtension.startTracking(devKey:String, appId:String = "");
(appId is using for for iOS https://support.appsflyer.com/hc/en-us/articles/207032066-AppsFlyer-SDK-Integration-iOS)
Send event:
AppsFlyerExtension.trackEvent(eventName:String, eventData:String);
eventName - AppsFlyer event name
eventData - strigify JSON with data
e.g.
AppsFlyerExtension.trackEvent('af_revenue','{"af_quantity":100}');