Analytics
Configure
Configuration by using the Unity Settings Inspector.
Please fill the following settings in the settings inspector (ask your release manager for those parameters):
iOS
- Analytics Project Id - project id uses for the production environment (101XP Analytics)
- Appsflyer Developer Key - developer key of the project in AppsFlyer.
- AppStore Id - Apple project id
Read more anout AppsFlyer configuration process you can here.
Android
- Analytics Project Id - project id is used for the production (101XP Analytics)
- Appsflyer Developer Key - developer key of the project in AppsFlyer
Usage
To send analytics use:
P101XP.GetInstance().SendAnalyticsEvent(eventName, eventProperties);
eventName - the event name
eventProperties - dictionary with keys and values associated with the event
Conversion data
To get the conversion data for AppsFlyer use the next event of P101XP:
private void AnalyticsConversionDataHandler(IReadOnlyDictionary<string, string> data)
{
}
P101XP.GetInstance().AnalyticsConversionDataEvent += AnalyticsConversionDataHandler;