简体   繁体   中英

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

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());

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM