- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在使用 Android 版 Facebook App Invites。一切正常:我发送邀请,在目标设备上收到邀请,我可以从 Google Play 安装应用。
现在我想将用户的引荐代码传递给 Google Play。这个想法是当我的“ friend ”安装应用程序时,他会自动获得我的推荐代码。我的 BroadcastReceiver 正在捕获 Google Activity 参数。
我有一个服务器端脚本,它生成一个像这样的简单代码:
<html>
<head>
<meta property="fb:app_id" content="<MY_APP_ID>">
<meta property="og:title" content="<APP_NAME>">
<meta property="al:android:url" content="market://details?id=<PACKAGE_NAME>&referrer=utm_source%3D<REF_CODE>">
<meta property="al:android:app_name" content="<APP_NAME>">
<meta property="al:android:package" content="<PACKAGE_NAME>">
</head>
<body>
Redirect...
</body>
</html>
问题是 Facebook 更改了 Activity 参数,所以我收到了这样的信息:
utm_source = apps.facebook.com
utm_content = {"app":0,"t":<SOME_NUMERIC_ID>}
utm_campaign = fb4a
Android端:发送邀请:
AppInviteContent content = new AppInviteContent.Builder()
.setApplinkUrl("<SERVER_SCRIPT_URL>.php?referral="+ref_code)
.setPreviewImageUrl("<IMAGE>.png")
.build();
if (AppInviteDialog.canShow()) {
appInviteDialog.show(getActivity(), content);
}
Android 端:广播接收器:
@Override
public void onReceive(Context context, Intent intent) {
Bundle extras = intent.getExtras();
String referrerString = extras.getString("referrer");
...
}
我在 2014 年 here 中发现了一个类似的问题但没有提供任何答案。
所以,我的问题是如何通过 Facebook App Invites 将我自己的参数传递给 Play Store,以及如何使用我的 BroadcastReceiver 接收它?
最佳答案
您不能使用 Android 或 iOS 的任何内置机制(如引用参数)来接收延迟的深度链接参数,因为 Facebook 控制着流程。此外,即使您可以,在 Android 上,安装引荐来源网址有时可能需要几秒钟才能传送到 Google Play,从而导致用户体验非常缓慢。
Facebook 有一个未记录的机制,您可以在其广告和邀请产品之上构建自己的延迟深度链接解决方案。不幸的是,正如接受的答案所提到的,iOS 应用程序邀请延迟深度链接完全被破坏了。广告产品有效。
技术流程如下:
https://graph.facebook.com/<APP ID>/activities?access_token=<APPACCESSTOKEN>&event=DEFERRED_APP_LINK&advertiser_id=<GAID>&advertiser_tracking_enabled=1&application_tracking_enabled=1
或者,如果您不想麻烦这些东西,并且想要在 Facebook 之外使用的深层链接,我一直在研究这个名为 branch.io 的免费工具。它会为您完成所有这一切。
关于android - Facebook 应用邀请 : pass campaign params to Play store,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31503848/
我已经能够将 Google Analytics 集成到我的 Android 应用程序中,但我被广告系列跟踪所困。在 GA 中,我看到页面浏览量、事件和自定义变量,但从未出现广告系列推荐。是否有 cod
在将我的应用放到 Google Play 商店之前,我正在测试我的 Google 跟踪广告系列。正确遵循 HERE 的指示,我通过adb安装了apk,没有启动它,然后我做了说明 adb shell a
Campaign Monitor 似乎更新了他们的代码片段以使用不同的方法提交表单。现在在 标记有一个 data-id属性。使用 Ajax 提交表单的常用方法都不再起作用了。有人知道如何使用 Ajax
我的一个客户需要将 Active Campaign 连接到他们的数据库,以便在添加新字段(主要是姓名和电子邮件地址)时,这些联系人会自动导入到 Active Campaign 的列表或自动化中。 理想
我需要做一个类似于 Campaign Monitor 的电子邮件模板编辑器 (http://www.campaignmonitor.com/templates/)。我尝试了很多所见即所得的编辑器,但它
我的应用程序作为测试版产品安装在 Google Play 上,部分应用程序逻辑是检索安装应用程序时由 Google Play 发送的引荐来源参数。我已经使用我自己的 ADB 广播和 Android S
我有一个客户在 domain.com/print-campaign-uri/上有一个平面广告 我想在 Analytics 中创建一个高级过滤器,以便/print-campaign-uri/输出到“打印
我在下面发布了我的电子邮件事件的所有代码。由于某种原因,“float”属性在 Gmail 和 Yahoo 中不起作用,所以我想知道是否有办法绕过使用“float”,以便它在电子邮件中显示得很好。谢谢!
我正在使用此 URL 构建器来配置 GA Android 广告系列跟踪: https://developers.google.com/analytics/devguides/collection/an
帮助我在 Chart-Boost 中设置广告系列和更多应用程序,以及如何在 android 中实现它。我正在尝试实现它,但它给出了以下异常。 Chartboost: Exception on htt
我一直在寻找解决方案,我认为这很简单,而且似乎几乎不可能。 情况如下:我设置了 AdWords 广告系列、广告组和广告。我将他们指向 www.mysite.com 一旦访问者通过我的一个广告到达我的网
整个下午... 我正准备在接下来的几周内在这里开展一些广播事件。 我会将访问者发送到 www.example.com/superdeal 该 URL 基本上会重定向到我们的主要购物网站,因为它很长。
我是 Sitecore 的新手。我希望为电子邮件事件创建自定义电子邮件模板。我将 Sitecore 8.1 与 EXM 3.3 结合使用。我一直在尝试实现以下演练: Walkthrough: Buil
当用户在我的应用程序中注册时,我尝试将用户数据发布到 Campaign Monitor。任何人都可以帮我将授权添加到请求中。我目前收到此错误: Optional("{\"Code\":50,\"Mes
我正在使用 Android 版 Facebook App Invites。一切正常:我发送邀请,在目标设备上收到邀请,我可以从 Google Play 安装应用。 现在我想将用户的引荐代码传递给 Go
我正在使用 Adwords API,以便客户可以根据特定条件自动暂停与其某些社区相关的广告。我的问题在于如何可靠地测试设置是否正确,而无需修改他们的实时 Adwords 广告系列。 我知道沙箱,但空白
我使用 Google Analytics 已有一段时间了。对于我的一位客户,我们广泛使用事件跟踪。最近我们开始收集多 channel 漏斗分析。使用它的主要原因是我们可以跟踪人们来自哪些事件,然后当有
我正在使用以下教程使用 Php 在 MailChimp 中创建事件和发送电子邮件。 https://isabelcastillo.com/create-send-mailchimp-campaign-
有一个website (称为 Anti-if 运动)讨论如何用更易于维护的东西替换大的嵌套 if 语句(通过使用“绑定(bind)类”参见 example )。我理解这个概念,但我不知道如何实现它(即
我正在尝试实现 FB 分析推送 Activity 。 即使在客户的实现完成并运行(iOS + Android)后,仪表板仍停留在“设置您的推送 Activity ”并且不允许我创建受众和发送推送: 最
我是一名优秀的程序员,十分优秀!