I am trying to implement 
this: 
https://developers.google.com/analytics/devguides/collection/android/v4/campaigns#google-play-campaigns

but getTracker() does not exist when I do this, 

Tracker t = 
AndroidNativeUtil.getActivity().getApplication().getTracker(TrackerName.APP_TRACKER);

How do I get around that ? Im thinking maybe all the google tracking stuff 
has updated on their end, but maybe not yours? 

It looks like some time ago I managed to get a tracker using this: 

GoogleAnalytics analytics = 
GoogleAnalytics.getInstance(AndroidNativeUtil.getActivity());
        analytics.getLogger().setLogLevel(Logger.LogLevel.VERBOSE);
        analytics.setLocalDispatchPeriod(1800);

        _("//// Start analytics for "+Prefs.GOOGLE_ANALYTICS_AGENT_ANDROID);
        Tracker t  = 
analytics.newTracker(Prefs.GOOGLE_ANALYTICS_AGENT_ANDROID);

I wonder if this is still safe to use?

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
Visit this group at https://groups.google.com/group/codenameone-discussions.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/5bfd0073-1a94-4721-b3bd-667b1238ff1c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to