2012-11-08 131 views
2

我使用谷歌Analytics(分析)来跟踪我的Android应用程序。 我analytics.xml文件粘贴如下:谷歌分析-Android问题

<!-- Replace placeholder ID with your tracking ID --> 
<string name="ga_trackingId">UA-36116792-1</string> 

<!-- Enable Activity tracking --> 
<bool name="ga_autoActivityTracking">true</bool> 

<!-- Enable automatic exception tracking --> 
<bool name="ga_reportUncaughtExceptions">true</bool> 

<string name="ga_appName">MyRemoteApp</string> 
<string name="ga_appVersion">V3</string> 

<bool name="ga_anonymizeIp">true</bool> 
<bool name="ga_debug">true</bool> 


<string name="philips.myremote.epg.EPGViewforPhone">TV Guide</string> 

我期待在谷歌分析仪表盘页面浏览次数应在标题为“电视指南”是可见的,但我得到“ philips.myremote.epg.EPGViewforPhone” instead.How我能解决这个问题,或者什么是错在我的代码?

+1

我得到了同样的问题。你已经找到了解决方案吗? – justicepenny

+0

No..not但:(:( – Nargis

回答

1

谷歌Analytics使用规范类别的名称来从资源的活动名称。

写日志的活动规范名称:

Log.i("TAG", getClass().getCanonicalName()); 

和国土资源使用这个名称作为关键字。

+0

我得不到你,我怎么能在我的analytics.xml使用此发送正确的数据 – Nargis

+0

在你活动的onCreate键入Log.i(“TAG”,的getClass()。另一方面,getCanonicalName ());请参阅LogCat。在analytics.xml中使用打印的字符串 – Nik