跟踪应用版本的谷歌Analytics(分析) [英] Track App Version in Google Analytics
问题描述
我使用谷歌分析模块( https://marketplace.appcelerator.com/apps/5081 ?2014113336 )在我的应用程序钛
I am using Google Analytics module( https://marketplace.appcelerator.com/apps/5081?2014113336 ) in my Titanium App.
1)。有什么办法来跟踪我的应用程序版本谷歌分析。在该模块的文件没有信息关于这个。
1). Is there any way to track my app version to Google Analytics. In that module documentation no information regarding this.
2)。如何测试谷歌分析我的应用程序?整合后GA,我没有看到我的GA帐户的任何数据。 (即使是实时数据也是空的 https://www.google.com/analytics/web/#realtime )
2). How can I test Google Analytics in my app? After integrating GA, I didn't see any data on my GA account. (even realtime data also empty https://www.google.com/analytics/web/#realtime )
3)。当谷歌Analytics(分析)创建新的账户,其中一个我应该选择的网站或应用( http://screencast.com/t/ gE0nPfxKsD7 )?(是什么都之间的差值)
3). When creating new Account in Google Analytics, which one should I choose WebSite or App ( http://screencast.com/t/gE0nPfxKsD7 )?(What is the difference between both)
感谢
推荐答案
1)您可以通过跟踪或一个事件一起发送给你的应用程序的版本,例如:
1) You can send your app's version together with the tracking or on an event, for example:
PackageManager manager = this.getPackageManager();
try {
PackageInfo info = manager.getPackageInfo(this.getPackageName(), 0);
trackPage("/SomethingUseful/" + info.versionName);
} catch (NameNotFoundException e) {
// Log.e(TAG, "exception / namenotfound");
}
2)如果您corretly所做的一切,它应该开始几分钟后出现的
2) If you have done everything corretly, it should start appearing after a few minutes
3)应用
这篇关于跟踪应用版本的谷歌Analytics(分析)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!