TrackedScreen

data class TrackedScreen(val name: String, val className: String? = null)(source)

A screen as analytics names it.

name becomes the GA4 screen_name and the screen of its screen_state events, and className the screen_class. Both are identifiers dashboards group by, so they never change once shipped, and they are written as literals: R8 renames classes, so a name read from a class is unreadable in release reports. Declare each app's screens once, in one place, as the sample's AppScreenTracking does.

Constructors

Link copied to clipboard
constructor(name: String, className: String? = null)

Properties

Link copied to clipboard
Link copied to clipboard