如何在我的应用程序中跟踪自然用户与付费广告 Facebook 用户?

How to track organic vs paid-ad facebook users in my app?

我在我的应用程序中使用 facebook sdk 来跟踪广告和安装计数。有什么办法可以知道新应用安装的来源是否是 facebook 广告。

我阅读了 facebook sdk 文档,但找不到直接的方法。

Facebook 的移动应用程序安装广告支持deep linking. You can use that to send install attribution data into the app. This answer 解释如何。

我帮助建立并积极维护了一个名为 branch.io that can do this very easily for both Android or iOS. The tool leverages a public API that Facebook has to check if a new device came from a Facebook ad, app invite or whatever. You can read more about this public API here 的免费深度 linking 平台。

让我来解释一下如何设置和使用它。

  1. 前往 dashboard.branch.io 并创建分支 link。根据您的用例添加 campaignchannel 等标签。如果你想塞入自定义参数,你可以在底部的deep link data部分添加unlimited keys/values。

    这是它的样子:https://bnc.lt/m/3vk4ENnQcm

  2. 一旦你有了你的分支 link,你就可以制作广告了。创建广告时,您只需将 link 粘贴到 'Deep Link' 字段中,如下面的屏幕截图所示。

  1. 最后,您想知道客户端(安装后)用户是否来自广告。为此,您只需在 App Delegate 中为 iOS 调用 Branch 库或在 Android 中调用 Activity。以下示例中的回调块将包含您在仪表板上创建的 link 的所有参数。

     Branch *branch = [Branch getInstance];
     [branch initSessionWithLaunchOptions:launchOptions 
               andRegisterDeepLinkHandler:^(NSDictionary *params, NSError *error) {
         if (!error) {
             NSLog(@"finished init with deep link params = %@", [params description]);
         }
     }];
    

希望对您有所帮助!