Reputation: 6691
I want to send non interaction events so that it not get counted in sessions? In 'Google Analytics for web' there is such option but couldn't find anything similar in Android. Any leads would be helpful. Thanks
Upvotes: 0
Views: 308
Reputation: 6691
Finally got it, no documentation exists though.
Tracker t = mApplication.getTracker(TrackerName.APP_TRACKER);
// Build and send an Event.
t.send(new HitBuilders.EventBuilder().setCategory(category)
.setAction(action).setLabel(label).setNonInteraction(true).build());
Upvotes: 1