简体   繁体   English

如何使用从Google Play安装Google Analytics(分析)跟踪引荐来源网址?

[英]How to use Google Analytics track referrer install from Google Play?

  1. Add libGoogleAnalytics.jar to your project's /libs directory. 将libGoogleAnalytics.jar添加到项目的/ libs目录中。
  2. Add the following permissions to your project's AndroidManifest.xml manifest file: 将以下权限添加到项目的AndroidManifest.xml清单文件中:

     <uses-permission android:name="android.permission.INTERNET" /> <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> 
  3. Add the following code snippet to your project's AndroidManifest.xml manifest file: 将以下代码段添加到项目的AndroidManifest.xml清单文件中:

     <!-- 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> 

But I never entered my UA-xxxxx-yy ID. 但我从未输入过UA-xxxxx-yy ID。 The ID entered for Pageviews and Events tracking like this: 为“浏览量和事件”跟踪输入的ID,如下所示:

tracker.startNewSession("UA-xxxxx-yy", this);

Google Analytics for Android SDK ReadMe says: (NOTE: do not start the GoogleAnalyticsTracker in your Application onCreate() method if using referral tracking). 适用于Android SDK的Google Analytics(分析)自述文件说:(注意:如果使用引用跟踪,请不要在Application onCreate()方法中启动GoogleAnalyticsTracker)。
With referrer tracking where do i put my ID or not? 通过引荐来源网址跟踪,我应该在哪里放置我的ID? If need, how? 如果需要,怎么办? If not, why? 如果没有,为什么?

At first, it seemed strange to me that Google would require those who only need to do install referrer tracking to incorporate two permissions that might otherwise be unneeded, plus a library, into their apps, given that the information needed to track referrers is already available on the Google Play servers, and could presumably be accessed from there via a Web-based interface, similar to the one used to track purchases on the Chrome Web Store. 起初,我觉得奇怪的是Google会要求那些只需要安装引荐来源跟踪的人就可以将原本不需要的两个权限以及一个库以及一个库合并到他们的应用程序中,因为跟踪引荐来源所需要的信息已经可用在Google Play服务器上运行,大概可以通过基于Web的界面从那里进行访问,类似于在Chrome Web Store上跟踪购买交易的界面。 When you consider that the app-based Analytics interface does not even cover purchases via the GP Web pages, the case for doing this seems even more convincing. 当您认为基于应用程序的Google Analytics(分析)界面甚至无法涵盖通过GP网页进行的购买时,似乎更令人信服。

This omission still seems odd in the general case of tracking an arbitrary referrer, but I recently discovered that in the specific case where the referrer that you are trying to track comes from an Adwords ad, there seems to be an easier means of tracking Google Play app installs that does not require any modifications to your app. 在跟踪任意引荐来源网址的一般情况下,这种遗漏还是很奇怪的,但是我最近发现,在您要跟踪的引荐来源网址来自Adwords广告的特定情况下,似乎可以更轻松地跟踪Google Play应用安装,不需要对您的应用进行任何修改。 All of this is set up through the Adwords interface, not through Google Play, and not through modifications to your app. 所有这些都是通过Adwords界面设置的,而不是通过Google Play设置的,而不是通过修改应用程序设置的。

You did not indicate whether your referrers were from Adwords or from some other source or sources, so I'll provide this information, in case it is useful. 您没有指明引荐来源是来自AdWords还是来自其他来源,因此,在有用的情况下,我将提供此信息。

This page 这一页

http://support.google.com/adwords/bin/answer.py?hl=en&answer=1722054 http://support.google.com/adwords/bin/answer.py?hl=zh_CN&answer=1722054

describes how to set up conversion tracking of Google Play app sales via Adwords. 介绍了如何通过Adwords设置Google Play应用销售的转化跟踪。 From that page: 从该页面:

Tracking mobile app downloads from Google Play doesn't require adding a code snippet. 跟踪从Google Play下载的移动应用程序不需要添加代码段。 It can be done with no changes to your app's code. 无需更改您的应用代码即可完成。 Simply follow the steps below. 只需按照以下步骤操作。

Sign in to your AdWords account at http://adwords.google.com 访问http://adwords.google.cn并登录到您的AdWords帐户。

Click the "Tools and Analysis" tab, and then click the "Conversions" tab. 单击“工具和分析”选项卡,然后单击“转换”选项卡。

Click the "+ New conversion" button. 点击“ +新转换”按钮。 Name your conversion, select "Mobile app download" and click "Save and continue". 为您的转化命名,选择“移动应用下载”,然后点击“保存并继续”。 Enter the package name. 输入软件包名称。 (You can find your package name by looking up your app in Google Play. It's the part of the base URL that identifies your application: "https://play.google.com/store/apps/details?id=" (您可以通过在Google Play中查找应用来找到包名称。这是标识应用的基本URL的一部分:“ https://play.google.com/store/apps/details?id=“

Click "Save and continue". 点击“保存并继续”。

On the next screen, click "Done". 在下一个屏幕上,单击“完成”。

Your mobile app downloads conversion data will now start showing up with the rest of your conversion data within 24 hours. 现在,您的移动应用下载的转化数据将在24小时内与其他转化数据一起显示。

Note: Mobile application download tracking for Android will only work if your links in Click-to-download or Mobile App Extension ads point directly to the Google Play Store. 注意:仅当您点击下载或移动应用扩展广告中的链接直接指向Google Play商店时,Android移动应用下载跟踪才会起作用。 Third-party tracking URLs are not supported at this time. 目前不支持第三方跟踪网址。

Check the GA SDK implementation at - the measurement is explained very clearly. 在以下位置检查GA SDK的实现-测量结果非常清楚。 https://developers.google.com/analytics/devguides/collection/android/v2/campaigns#google-play-implement https://developers.google.com/analytics/devguides/collection/android/v2/campaigns#google-play-implement

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM