安卓:谷歌Analytics(分析)的可用性在谷歌播放服务? [英] Android: Google Analytics availability in Google Play Services?
问题描述
谷歌Analytics(分析)已宣布成为推出谷歌游戏服务4.3的一部分,但它尚未包含在谷歌播放服务的软件包列表:
Google Analytics has been announced to become part of the rolling out Google Play Services 4.3, however it is not yet included in the Google Play Services packages list:
<一个href="http://developer.android.com/reference/gms-packages.html">http://developer.android.com/reference/gms-packages.html
当其变为可用,并且将其安全使用直线距离,或将是更好等待一段时间,以确保每一个用户谷歌播放服务4.3已经安装?任何想法
Any idea when it will become available, and will it be safe to be used straight away, or will it be better to wait for some time to make sure every user has Google Play Services 4.3 already installed?
推荐答案
我注意到一些其他方面的差异。
I've noticed some other differences.
跟踪
要获得一个新的跟踪
,使用 newTracker()
办法(同时接受一个字符串
值和 INT
值[XML的配置]):
To get a new Tracker
, use the newTracker()
method (accepts both a String
value and an int
value [for XML configuration]):
googleTracker = gaInstance.getTracker(GA_KEY); // OLD
googleTracker = gaInstance.newTracker(GA_KEY); // NEW
EasyTracker
EasyTracker现在已经消失了,所以我们必须使用 GoogleAnalytics.getInstance(本).reportActivityStart(本)
的报道的 Paito 的。
EasyTracker has now disappeared, so we will have to use GoogleAnalytics.getInstance(this).reportActivityStart(this)
as reported by Paito.
塞特斯
在 googleTracker.set()
方法不再可用。它已被替换为更专门的方法,例如:
The googleTracker.set()
method is no longer available. It has been replaced with more specialised methods, for example:
googleTracker.set(Fields.SCREEN_NAME, null); // OLD
googleTracker.setScreenName(null); // NEW
事件创建
在 googleTracker.send()
方法,还出现了一些变化。
The googleTracker.send()
method has also seen some changes.
googleTracker.send(MapBuilder
.createEvent(category, action, label, value)
.build()); // OLD
googleTracker.send(new HitBuilders.EventBuilder()
.setCategory(category)
.setAction(action)
.setLabel(label)
.setValue(value)
.build()); // NEW
AppView
现在变成
googleTracker.send(MapBuilder.createAppView().build()); // OLD
googleTracker.send(new HitBuilders.AppViewBuilder().build()); // NEW
AppViewBuilder
AppViewBuilder
到现在已经pcated德$ P $,由新 ScreenViewBuilder
类取代。 (感谢海防的小费!的)
AppViewBuilder
has now been deprecated, replaced by the new ScreenViewBuilder
class. (thanks Hai Phong for the tip!)
对于那些谁正在运行到(或已另案处理)在的Dalvik的64K方法限制,现在有3K方法,你就可以在你的应用程序,以摆脱,感谢这个集成。
For those who are running into (or have already dealt with) the Dalvik's 64K methods limit, there are now 3K methods that you will be able to get rid of in your application, thanks to this integration.
这篇关于安卓:谷歌Analytics(分析)的可用性在谷歌播放服务?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!