Android - Facebook Analytics App Install Event not triggered

限于喜欢 提交于 2019-12-06 04:45:43

问题


Am using Facebook SDK 3.21 for Android and Facebook SDK 3.23 for iOS, and I have an App ID & App Link url.

Now my questions are:
1. Is App Install event counts for each fresh install to the same device.?
(By fresh install I mean installed once, launched the app & uninstalled it. Again installed and so on)

2. I tried fresh installations for 3 devices; Galaxy S4, Galaxy A7 & Moto X. The App Install event is not getting counted for Galaxy A7 (not listed in filter options). And If I freshly install it again to 2 other devices, the app install count is not getting updated. So is there any special case like for a device only once the app install event is counted? But in case of iOS app, fresh installations are counted as each App Install events, and so the count keeps updating. But iOS device models are not listed in filter options. (During upgrade installation, the app install is not counted which is expected)

Android code:

protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    AppEventsLogger.activateApp(this, FB_APP_ID);
    Settings.sdkInitialize(this);
    Uri targetUrl = AppLinks.getTargetUrlFromInboundIntent(this, getIntent());
    if (targetUrl != null) {
        Log.i("Activity", "App Link Target URL: " + targetUrl.toString());
    }
    ........
}

iOS code:

- (void)applicationDidBecomeActive:(UIApplication *)application{  
    [FBSettings setDefaultAppID:FB_APP_ID];
    [FBAppEvents activateApp];
}

3. Now in Android, if I use the AppEventsLogger.activateApp(this, FB_APP_ID); in onResume() function (as per documentation), and Settings.sdkInitialize(this); in onCreate() function, the App Install count is not updated for fresh installs but Inbound AppLinks count updates(on clicking App Link shared in Facebook). Now if i remove the Settings.sdkInitialize(); from onCreate(), the App Install counts but not the Inbound AppLink event. I can't figure out whats happening here.

4. Can we track the Installations done via App Link(doesn't include installations directly from play store)? Is there any event for that.? What I came into conclusion is that, Mobile Ads Installs could be tracked but not via App Link(If am wrong please correct me).

Final note, the AppEventsLogger.activateApp(this, FB_APP_ID); updates the App Launch events as expected and i haven't used AppEventsLogger.deactivateApp(this, FB_APP_ID); as I don't want any session events.

I'am out of my mind, any help will be appreciated and thanks in advance.

来源:https://stackoverflow.com/questions/30887161/android-facebook-analytics-app-install-event-not-triggered

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!