我正在尝试在我的 Phonegap Android 应用程序中使用 Google Analytics
我按照这个仓库中的说明进行操作
https://github.com/DoersGuild/Cordova-Android-Analytics https://github.com/DoersGuild/Cordova-Android-Analytics
一切正常并返回成功消息,但不幸的是我等了 24 小时,Google Analytics 帐户中的报告没有更新
这是文件analytics.xml:
<?xml version="1.0" encoding="utf-8"?>
<!-- Replace placeholder ID with your tracking ID -->
<string name="ga_trackingId">UA-XXXXXXXX-X</string>
<!-- Disable Activity tracking, not used in Cordova which only has one activity -->
<bool name="ga_autoActivityTracking">false</bool>
<!-- Enable automatic exception tracking -->
<bool name="ga_reportUncaughtExceptions">true</bool>
<!-- Anonymize tracking -->
<bool name="ga_anonymizeIp">true</bool>
<!-- Enable debugging -->
<bool name="ga_debug">true</bool>
</resources>
我写了我的帐户轨道 ID,而不是 UA-XXXXXXXX-X 轨道 ID
我的问题是我应该将其与破折号一起保留,还是应该将破折号编码为 UA–XXXXXXXX–X
Thanks
Per the 谷歌分析概述 https://developers.google.com/analytics/devguides/collection/android/v2#analytics-xml:
重要的:不要在 ga_trackingId 字符串中对破折号进行编码。这样做会阻止您在报告中看到任何数据。
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)