encode the dash or not

半腔热情 提交于 2019-12-11 03:13:44

问题


I am trying to use Google Analytics in my Phonegap Android APP

I followed the instructions in this repo

https://github.com/DoersGuild/Cordova-Android-Analytics

every thing is ok and success message is returned, but unfortunately I waited 24 hours and no updates in reporting in Google Analytics account

Here it is the file analytics.xml file:

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

instead the UA-XXXXXXXX-X track id, I wrote my account track id

My question is should I keep it with dash, or I should to encode the dash to be UA–XXXXXXXX–X

Thanks


回答1:


Per the Google Analytics Overview:

Important: Do not encode dashes in the ga_trackingId string. Doing so will prevent you from seeing any data in your reports.



来源:https://stackoverflow.com/questions/15345307/encode-the-dash-or-not

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!