谷歌Analytics(分析),安装跟踪机器人 [英] Google Analytics, Install Tracking android

查看:263
本文介绍了谷歌Analytics(分析),安装跟踪机器人的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要追踪安装引用者使用谷歌分析我的应用程序。
我不希望使用的跟踪浏览量和活动功能,只有安装。
所以我加了SDK罐子在我的应用程序,这些行添加到清单:

I want track install referer for my application using google analytics.
I don't want use the Tracking Pageviews and Events feature, only install.
So I added the sdk jar in my app, add these lines to the manifest :

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

和发布应用程序。
但如何能看到的统计资料?我从来没有进入我的UA-XXXXXXX ID。

And publish the app.
But how can see the stats ? I never entered my UA-xxxxxxx id.

有关的浏览量和事件跟踪它在这里:

For the Pageviews and Events tracking it's here :

tracker.start("UA-YOUR-ACCOUNT-HERE", this);

但作为thew自述说:(注意:不要启动GoogleAnalyticsTracker在你的应用程序的onCreate() 如果使用转诊追踪)方法。

But as thew readme says : (NOTE: do not start the GoogleAnalyticsTracker in your Application onCreate() method if using referral tracking).

但随着引荐我在哪里把我的ID?
什么是链接在谷歌Analytics控制台看?

But with referer where do I put my id ?
And what is the url to watch in the google analytics console ?

THX

推荐答案

这是行不通的。您在清单中声明的​​接收器在分析库中定义,但所有这些接收器是充塞事件(如引荐信息)到项目的数据目录内的google_analytics.db SQLite数据库。

This won't work. The receiver you declared in your manifest is defined in Analytics library, however all this receiver does is stuffs the event (e.g. the referrer info) into an google_analytics.db sqlite database inside your project's data dir.

您拨打tracker.start()与相应的ID只之后,跟踪器开始的,后来当你做这样的事情tracker.trackPageView上(/主)的引荐信息将被传递到谷歌Analytics(分析)服务器。 ..当然在这种情况下,URL是'/主

Only after you call tracker.start() with the appropriate ID, the tracker is started, and later on when you do something like tracker.trackPageView("/main") the referrer info is passed on into Google Analytics servers... And of course the URL in this case is '/main'.

的引用并不在它自己的意义,只在网页浏览的情况下。

The "referrer" does not make sense on it's own, only in the context of the pageview.

这篇关于谷歌Analytics(分析),安装跟踪机器人的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆