2

Google アナリティクスを使用して Android アプリケーションを追跡しています。私のanalytics.xmlファイルは以下に貼り付けられます:

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

Google アナリティクス ダッシュボードでは、タイトル「TV ガイド」の下にスクリーン ビューが表示されるはずですが、代わりに「philips.myremote.epg.EPGViewforPhone」が表示されます。

4

1 に答える 1

1

Google アナリティクスは、正規のクラス名を使用して、リソースからアクティビティ名を取得します。

アクティビティの正規名をログに書き込みます。

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

この名前をリソースでキーとして使用します。

于 2013-06-17T10:31:38.537 に答える