Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能告诉我 EasyTracker.getInstance(getApplicationContext()).activityStart(this); 需要写在每个活动的 onStart() 方法上。我正在使用谷歌分析 v3 SDK。
通过在您的 values/"analytics".xml 中设置此行来启用自动活动跟踪
<!-- Enable Activity tracking --> <bool name="ga_autoActivityTracking">true</bool>
并在每个活动中将其添加到您的 onStop
EasyTracker.getInstance().activityStop(this);