i changed tracker easytracker v4 googleanalytics without xml configuration change, result got huge increase in session count when pushed new release store resulted in drastic decline in other average reports. clue?
without analytic report, how can know when new session started?
i not using application class initialize tracker object, have made tracker singleton object, initialized when null, otherwise not. each time going trak event/action, call initializetracker(ctx) , track view or action.
public static void initializetracker(context context) { if (tracker == null) { analytics = googleanalytics.getinstance(context); analytics.getlogger().setloglevel(logger.loglevel.error); tracker = analytics.newtracker("xx-xxxxxx-xx"); tracker.setanonymizeip(true); tracker.enableautoactivitytracking(false); // tracking manually tracker.enableexceptionreporting(true); } }
and
public static void trackview(context context, string viewname) { initializetracker(context); tracker.setscreenname(viewname); tracker.send(new hitbuilders.screenviewbuilder().build()); }
do see problem in implimentation?
Comments
Post a Comment