Vipul J
Vipul J

Reputation: 6691

Google Analytics in Android : How send 'non interaction' events?

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

Answers (1)

Vipul J
Vipul J

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

Related Questions