我在应用程序中添加了 AppsFlyer SDK。以下是我在应用程序中添加的代码:
在应用程序类中:
AppsFlyerConversionListener conversionDataListener =
new AppsFlyerConversionListener() {
@Override
public void onInstallConversionDataLoaded(Map<String, String> conversionData) {
}
@Override
public void onInstallConversionFailure(String errorMessage) {
Log.d(AppsFlyerLib.LOG_TAG, "error getting conversion data: " + errorMessage);
}
@Override
public void onAppOpenAttribution(Map<String, String> attributionData) {
Log.d(AppsFlyerLib.LOG_TAG, "DEEP LINK WORKING");
}
@Override
public void onAttributionFailure(String errorMessage) {
Log.d(AppsFlyerLib.LOG_TAG, "error onAttributionFailure : " + errorMessage);
}
};
AppsFlyerLib.getInstance().startTracking(this, "DEV_KEY");
在清单中:
<receiver android:name="com.appsflyer.SingleInstallBroadcastReceiver" android:exported="true">
<intent-filter>
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>
在跟踪事件的活动中:
Map<String, Object> eventValue = new HashMap<String, Object>();
eventValue.put("login", "member");
AppsFlyerLib.getInstance().trackEvent(getApplicationContext(), "event_login", eventValue);
我无法在 AppsFlyer 仪表板中查看活动。也无法查看事件的自定义参数。
有什么建议么?
谢谢!