AppsFlyer SDK 集成

AppsFlyer SDK integration

我在应用中添加了AppsFlyer SDK。以下是我在应用程序中添加的代码:

申请中class:

 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>

在 Activity 中跟踪事件:

Map<String, Object> eventValue = new HashMap<String, Object>();
                    eventValue.put("login", "member");
AppsFlyerLib.getInstance().trackEvent(getApplicationContext(), "event_login", eventValue);

我无法在 AppsFlyer 控制面板中查看事件。也无法查看事件的自定义参数。

有什么建议吗?

谢谢!

您的设备可能未列入白名单。如前所述,here测试设备 应通过 AppsFlyer 的应用程序列入白名单 My Device ID by AppsFlyer