track().screens
The track().screens() method automatically records screen views on your mobile app. It automatically uses the activity stack as the path and the activity name as the title.
Syntax
TrackHelper.track()
.screens(getApplication())
.with(tracker)TrackHelper.track()
.screens(getApplication())
.with(getTracker());Examples
To automatically record screen views:
val tracker: Tracker = (application as PiwikApplication).tracker
TrackHelper.track()
.screens(getApplication())
.with(tracker)Tracker tracker = ((PiwikApplication) getApplication()).getTracker();
TrackHelper.track()
.screens(getApplication())
.with(tracker);Related methods
Updated 3 days ago