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

Sentry Android Navigation 3: Screen Tracking Setup

Sentry Java 8.60.0 adds Navigation 3 support. Learn what screen tracking to set up so Compose navigation data stays accurate.

· 3 min read

Sentry Java 8.60.0, released on 7 October, added support for Android Navigation 3 through a new sentry-android-navigation3 library. It uses SentryNavEffect to record navigation transactions, breadcrumbs and screen names. The same release also reports cellular network generation, such as 4g or 5g, in device.connection_effective_type.

Why it matters: Navigation 3 changes how Compose apps manage their back stack. If your screen tracking was built around the older navigation library, moving to the new one can silently break screen names, funnels and performance traces. You would see “unknown” screens, missing steps and slow-screen reports pointing nowhere.

Data Points to Track

  • Screen name (screen_name) on every screen view, checked against your list of real destinations
  • Navigation source (nav_library: navigation2 or navigation3) so old and new builds can be compared
  • Time to screen (screen_load_ms) from navigation start to first draw
  • Back stack depth (back_stack_size) at each screen view
  • Navigation transitions (from_screen, to_screen) to rebuild user paths
  • Network generation (effective_connection_type) alongside screen load time
  • Unmatched screens: a count of views with no name or a generic fallback

Setup Steps

  1. Audit current tracking. List the screen names your analytics and Sentry currently report for each release.
  2. Add the Navigation 3 integration from sentry-android-navigation3 and register SentryNavEffect where your navigation display is built.
  3. Set a naming rule. Use stable, human-readable screen names, not class names or route strings with IDs in them.
  4. Mirror the screen event into your product analytics with the same screen_name and nav_library properties.
  5. Release to a small group first and compare screen counts per session against the previous version.
  6. Add network generation to screen load events so slow screens can be split by 3g, 4g and 5g.
  7. Alert on unmatched screens when they exceed 1% of screen views.

Actionable Insights

After rollout, compare screens per session between Navigation 2 and Navigation 3 builds. A sudden drop usually means screens are not being recorded, not that users are leaving. A rise can mean duplicate events from recomposition.

Check your funnels. If a step shows zero entries on the new build, the route name probably changed. Fix the mapping before you draw conclusions about conversion.

Use the network split to read load times fairly. A screen that takes three seconds on 4g and under a second on 5g is not a slow screen, it is a slow network. That tells you to optimise payload size or caching rather than rewrite layout code.

Finally, keep the unmatched-screen count on a dashboard. It is a cheap early warning for any future navigation or SDK change.

One more point: agree on an owner. Screen names feed product analytics, performance monitoring and support tooling, so a rename made by one team can break reports owned by another. A short shared list of approved screen names, reviewed with each release, keeps everyone reading the same data and makes migrations like this one routine rather than risky.