确定用户是否通过市场环节安装我们的应用程序

确定用户是否通过市场环节安装我们的应用程序

本文介绍了确定用户是否通过市场环节安装我们的应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在几个不同的网站的应用程序是(通过Android Market的URL)链接。我需要实现一种方法来确定我的用户从哪里来的。有没有一种方法来确定引用URL,用户随后通过Android市场?

I have an app which is linked to (via an Android Market URL) on several different websites. What I need to implement is a way to determine where my users came from. Is there a way to determine the referring URL that the user followed to download my app via the Android Market?

例如,用户A浏览网站xyz.com和点击查看我在Android Market上的应用程序的链接,然后进行下载。一旦安装,我可以programmaticaly看到用户来自(xyz.com)?

For example, user A browses site xyz.com and clicks the link to view my app on the Android Market and then proceeds to download it. Once installed can I "programmaticaly" see where the user came from (xyz.com)?

我需要实现这个自己(在应用程序),而不是依靠外部工具或服务。

I need to implement this myself (within the app) and not rely on external tools or services.

推荐答案

有可能使用谷歌Analytics(分析)来跟踪你的应用程序的使用。

It is possible to use Google Analytics to track the usage of your App.

在Android的谷歌Analytics(分析)提供了一个refferal跟踪。这应该使您能够创建一个链接,每个链接到您的应用程序并跟踪有多少应用程序的地方,因为这部位的安装地点。

On Android Google Analytics provides a refferal tracking. This should enable you to create a link for each of the sites that link to your app and track how much apps where installed because of which site.

看那从跟踪引荐章谷歌Android Analytics(分析)文档了解更多信息。

Look at the Tracking Referrals chapter from the Android Google Analytics Documentation for more information.

您必须依靠谷歌分析罐子,有要在应用程序中调用,并在manifest.xml注册

You have to rely on the Google Analytics jar that has to be called within the app and registered in the manifest.xml

更新

如果你不希望使用一个单独的瓶子,你可以尝试自己获取参考信息。谷歌analyticss通过注册该意图过滤器的工作:

If you don't want to use a separate jar you could try to obtain the referral information yourself. Google analyticss work through registering this Intent filter:

<!-- Used for install referrer tracking -->
<receiver android:name="com.google.android.apps.analytics.AnalyticsReceiver" android:exported="true">
  <intent-filter>
    <action android:name="com.android.vending.INSTALL_REFERRER" />
  </intent-filter>
</receiver>

看来,市场的应用程序将刚刚从市场安装应用程序后,发送指定意图。这样做的目的,然后将从AnalyticsReciever类被逮住,他们将节省引荐在分析以后使用。

It seems that the market app will send the specified intent just after installing an app from the market. The intent then will be catched from the AnalyticsReciever class and they will save the referrer for later use in the analytics.

谷歌指出,这是它如何工作的:

Google states that this is how it works:

而Android 1.6的操作系统版本支持的下载链接到Android Market使用引用URL参数。在谷歌Analytics(分析)SDK的Andr​​oid使用此参数来自动填充推荐/活动信息在谷歌Analytics(分析)为您的应用程序。这使得应用程序的源安装要被记录并与未来浏览量和事件相关联的

这也意味着,链接到你的网站的应用程序必须包括在市场上的URL的特定参数。如何做到这一点的谷歌Analytics(分析)文档中还解释了。

This also means that the sites linking to you app have to include a specific parameter in the market url. How this is done is also explained in the Google Analytics Documentation.

这篇关于确定用户是否通过市场环节安装我们的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-20 18:07