How do I reset a session with Google Analytics for iPhone?

I use Google Analytics in an iPad application that runs in a kiosk, I need to manually reset the Google Analytics session at certain points in the application, does anyone know how to do this?

The source code for the analytics on iOS does not seem to be available, and the cookies used by the web version of Google Analytics do not appear in the general cookie storage in the iOS application, so it would be easy to do this on the Internet simply by deleting the appropriate cookies on iOS doesn't seem possible, since these cookies are not visible, is there any way around this?

+3
source share
1 answer

Did you try to just stop and start the tracker?

From the title:

// Start the tracker by specifying a Google Analytics account ID and a
// dispatch period (in seconds) to dispatch events to the server
// (or -1 to dispatch manually). An optional delegate may be
// supplied.
- (void)startTrackerWithAccountID:(NSString *)accountID
                   dispatchPeriod:(NSInteger)dispatchPeriod
                         delegate:(id<GANTrackerDelegate>)delegate;

// Stop the tracker.
- (void)stopTracker;
0
source

All Articles