有没有办法将参数传递给应用程序的市场安装程序

发布于 2024-08-21 18:54:40 字数 144 浏览 1 评论 0原文

当通过网页向移动设备上的用户提供指向 Android 应用程序的链接时,可以将 url 中的参数传递给正在安装的应用程序。

我猜答案是否定的——但问也无济于事。

原因是,在某些情况下,拥有一个从引荐来源网址提取配置信息的通用应用程序会很方便。

when providing a user on a mobile, a link to an android application via a web page, it is possible for params from the url to be passed to the app being installed.

I'm guessing the answer is no - but it doesn't help to ask.

The reasoning being that it would be handy for some situations to have a generic app that pulls config information from the referrer.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

神经暖 2024-08-28 18:54:40

这仅适用于使用 引荐跟踪用例“noreferrer">移动应用 SDK 的分析跟踪。该文档将提供更多详细信息,但基本步骤是:

  1. 使用 这个工具
  2. 在您想要跟踪推荐的网站上使用这些链接。
  3. 当用户使用推荐链接下载您的应用程序时,会存储推荐信息。
  4. 首次运行您的应用时,使用 Analytics SDK 通过 trackEvent 跟踪“首次运行事件”。如果您的应用程序是通过推荐信息下载的,则此事件(以及所有未来的事件和综合浏览量跟踪)将使用推荐信息进行标记。
  5. 在 Analytics 中,您将能够根据营销活动/推荐信息过滤这些事件。

This is possible only for the use case of referral tracking, using the Analytics Tracking for Mobile Apps SDK. The documentation will have more details, but the basic steps are:

  1. Create referral-tagged market deep link URLs using this tool.
  2. Use these links on web sites that you want to track referrals from.
  3. When a user downloads your app using the referral link, the referral info is stored.
  4. Upon first run of your app, use the Analytics SDK to track a 'first-run event' using trackEvent. If your app was downloaded with referral info, this event (and all future event and pageview tracking) will be tagged with the referral info.
  5. In Analytics, you'll be able to filter these events on campaign/referral info.
百善笑为先 2024-08-28 18:54:40

我认为如果需要,您可以稍微更改一下分析引用跟踪的场景,以便在安装过程中将参数传递给您的应用程序...

您必须在自定义接收器解析 url 中为 com.android.vending.INSTALL_REFERRER 声明一个自定义接收器来自市场。

如果您希望分析也能正常工作,最好扩展 com.google.android.apps.analytics.AnalyticsReceiver 并调用 super.onReceive

在引荐中,有两个可选参数:营销活动术语和营销活动内容所以我会把你想要传递的信息放在那里

我对此做了一些工作,我写了一篇文章,我什至解释了如何测试它:http://www.dev-articles.com/article/Analytics-referral-tracking-for-Android-447001

I think you can change a bit the scenario of the anlytics referral tracking to pass parameters to your app during installation if you need...

You have to declare a custom receiver for com.android.vending.INSTALL_REFERRER in the custom receiver parse the url from the market.

If you want the analytics to work as well, is better if you extend the com.google.android.apps.analytics.AnalyticsReceiver and call the super.onReceive

There are two parameters that are optional in the referral the campaign term and the campaign content so I will put there the information you want to pass

I worked a bit on this and I wrote a post where I explain even how to test it : http://www.dev-articles.com/article/Analytics-referral-tracking-for-Android-447001

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文