简体   繁体   中英

How to use EasyTracker with application which is having multiple Activities?

Can anybody tell me EasyTracker.getInstance(getApplicationContext()).activityStart(this); need to write on every Activities onStart() method. I am using Google analytic v3 SDK.

Enable auto activity tracking by setting this line in your values/"analytics".xml

<!-- Enable Activity tracking -->
<bool name="ga_autoActivityTracking">true</bool>

and in every activity add this to your onStop

EasyTracker.getInstance().activityStop(this);

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM