WebmasterID logoWebmasterID
Event tracking

screen_class vs screen_name

In GA4 app analytics, a screen_view event carries two related parameters: screen_class and screen_name. screen_class is automatically derived from the UI component class (like the Activity or ViewController name), while screen_name is a label you set to describe the screen meaningfully. Knowing the difference keeps app screen reporting readable instead of full of code-level class names.

Verified against primary sources

What this means

screen_view is the app event marking that a screen was shown. Its screen_class parameter is set automatically by the SDK from the class of the current UI component — the Android Activity or iOS ViewController name. Its screen_name parameter is one you provide to give the screen a human-meaningful label. Both ride on the screen_view event and appear in app engagement reports.

Why set screen_name

If you never set screen_name, reports identify screens by their class names, which are developer-facing and often unhelpful for analysis (multiple distinct screens may even share a class). Setting a clear screen_name — 'Checkout', 'Product detail' — makes engagement and funnel reports readable for everyone. screen_class remains as a technical fallback and disambiguator. Keep the name a description of the screen, never anything that identifies the user on it.

How it appears in analytics and logs

Screen reports full of class names (ViewController, MainActivity) mean screen_name was not set, so reporting falls back to the auto-derived screen_class.

Diagnostic use case

Make app screen reports readable by setting a clear screen_name, while understanding screen_class is auto-derived from the UI component class.

What WebmasterID can help detect

WebmasterID is web-first where the analogue is the page path/title; the same principle holds — a readable, non-identifying screen or page label.

Common mistakes

Privacy and accuracy notes

Both parameters describe a screen, not a person. Keep screen_name a generic screen label; never encode user or account data into it. This is educational, not legal advice.

Related pages

Sources and verification notes

Last reviewed 2026-06-24. Facts are checked against primary/official sources where available; uncertain specifics are marked “Data not yet verified” rather than guessed.