I have an Android app and I am using Google Tag Manager to create the tags.
I have a specif screen that should reset the session everytime the user opens it, but I don't know how to do it.
Can anybody help me?
Thanks in advance
You can use the Session Control parameter. Or you could use the Manual Session Control :
// Get tracker.
Tracker t = ((AnalyticsSampleApp) getActivity().getApplication()).getTracker(
TrackerName.APP_TRACKER);
// Set screen name.
t.setScreenName(screenName);
// Start a new session with the hit.
t.send(new HitBuilders.ScreenViewBuilder()
.setNewSession()
.build());
Good luck
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.