Product Benefits Pricing Guides Docs About Contact us Try it out
Engagement

Firebase Agent Skills Screen View Tracking

Firebase agent skills screen view tracking: audit AI-generated screen_view events in SwiftUI and Compose apps so your funnels stay accurate.

· 3 min read

Screen views are the backbone of most funnels. They are also easy to get wrong. If a screen is missed or logged twice, every drop-off figure built on it is off, and nobody notices until a product decision goes the wrong way.

In November 2026, Google released agent skills for Google Analytics for Firebase. They let AI coding agents such as Claude Code, Codex and Cursor set up the SDK and add screen view logging to iOS and Android apps. They matter most for declarative UI such as SwiftUI and Jetpack Compose, where the SDK’s automatic screen logging does not always fit. Reports differ on the exact announcement date, and Google says more tasks are coming, so check the current release notes.

Why This Matters

An agent can add tracking to dozens of screens in minutes. That speed is useful, but it also spreads mistakes quickly. A wrong screen name, a missing call on one navigation path, or a duplicate with automatic logging will all show up in your reports as real behaviour. You need a way to check the output, not just trust it.

Data Points to Track

Use the screen_view event, and check these properties as part of a tracking audit:

  • screen_name: a readable, consistent name for each screen
  • screen_class: the view or composable class behind it
  • firebase_previous_screen: the screen the user came from
  • logged_by: automatic, manual or agent-generated (your own audit label)
  • screen_view_count_per_session: how often each screen appears
  • duplicate_screen_view_rate: share of views logged twice within a second
  • screens_without_events: screens in the app that never log a view
  • app_version: the release that introduced the change
  • platform: iOS or Android

Setup Steps

  1. List every screen in your app, or export the route list from your navigation code.
  2. Ask your agent to instrument screen views, and review its changes like any other pull request.
  3. Decide whether to keep or disable automatic screen logging, so each screen is logged once.
  4. Use the manual screen_view event with screen_name and screen_class. The older setCurrentScreen and setScreenName calls are deprecated.
  5. Agree a naming convention, such as lowercase with underscores, and write it down.
  6. Test in DebugView and compare the events against your screen list.
  7. Release to a small group first, then compare counts with the previous version.

Actionable Insights

Coverage. If screens_without_events is not empty, those screens are invisible. Add them before building funnels that include them.

Duplicates. A high duplicate_screen_view_rate usually means automatic and manual logging are both running. Turn one off.

Naming drift. Two names for one screen split its data. Merge them in reporting and fix the code.

Version comparison. If views per session jump after a release, check the instrumentation before celebrating. The change may be logging, not behaviour.

Path sense-check. Use firebase_previous_screen to confirm the paths match the real navigation. Impossible paths point to a bug.