这是我的XML配置文件。
<?xml version="1.0" encoding="utf-8"?>
<resources xmlns:tools="http://schemas.android.com/tools" tools:ignore="TypographyDashes">
<string name="ga_trackingId">UA-XXXXXXXX-YY</string>
<bool name="ga_autoActivityTracking">true</bool>
<bool name="ga_reportUncaughtExceptions">true</bool>
<screenName name="com.gui.Activity1">Activity1</screenName>
<screenName name="com.gui.Activity2">Activity2</screenName>
<screenName name="com.gui.Activity3">Activity3</screenName>
</resources>
这是辅助类中GoogleAnalytics
实例的初始化。
private GoogleAnalyticsHelper() {
mGoogleAnalytics = GoogleAnalytics.getInstance(KMSApplication.sAppContext);
mTracker = mGoogleAnalytics.newTracker(R.xml.tracker_global_config);
}
The documentation says默认发货期为30分钟;但是,我可以在几分钟内在“实时概述”页面和“事件概述”页面中查看GA控制台中的报告。为什么呢?
我担心频繁发货可能导致电池耗尽。