RoverPlatform / rover-campaigns-android

Apache License 2.0
1 stars 0 forks source link

Feature - Screen Auto Tracking #82

Closed samwoodall closed 4 years ago

samwoodall commented 4 years ago

Description

Adds the ability to auto track activities by adding meta data to entries in the manifest

Set in CoreAssembler block to enable auto tracking:

CoreAssembler(
                accountToken = getString(R.string.rover_api_token),
                analyticsActivityAutoTracking = true
            )

Add into activity block to exclude activity from auto tracking:

<meta-data android:name="rvAutoTrackingExcludeActivity" android:value="true" />

Set the name to be used for a particular activity (the activity label is used if not set):

<meta-data android:name="rvAutoTrackingLabel" android:value="Main Screen" />

Marker interface to exclude from auto tracking

RoverAutoTrackingExcluded

closes #78

orospakr commented 4 years ago

actually @samwoodall should we consider naming TrackableContentScreen to RoverTrackableContentScreen?