Android google analytics integration error -
When I'm trying to get a tracker in my activity, then this error shows that this method is " Gettype () "has not been defined Analytical v4
// Get Tracker Tracker T = (get the AnalyticsSampleApp) getActivity (). GetApplication ()) .gettracker (TrackerName.APP_TRACKER); If you have not already done so, create a class MyApplication is your app, And make sure you add it to your manifest below (property which is Android: name here, I have removed other XML properties for clarity)
Then, in your MyApplication class, create a method getTracker according to the Google Analytics v4 document
then,
Use = (MyApplication) getApplication ()) .gettracker (TrackerName.APP_TRACKER);
Comments
Post a Comment