-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[firebase_analytics]: Crashlytics doesn't track screen view breadcrumbs #12760
Comments
Hello @TatsuUkraine, Thank you for reporting this issue. Can you please try and see if the following code would work? await FirebaseAnalytics.instance.logEvent(
name: 'screen_view',
parameters: {
'firebase_screen': screenName,
'firebase_screen_class': screenClass,
},
); |
@TarekkMA it seems it's not, I'm getting following message on Android |
I guess |
maybe, but it's quite confusing, since GA4 says it's for |
still trying to test it on iOS to understand if it's Android only |
ok, so it seems the issue is with Downgrading it to 4.3.x seems fixes GA reports as well as breadcrumbs in Crashlytics P.S still trying to confirm that breadcrumbs working on iOS though |
so on iOS this code send screen view events, but doesn't record screen name await FirebaseAnalytics.instance.logEvent(
name: 'screen_view',
parameters: {
'firebase_screen': screenName,
'firebase_screen_class': screenClass,
},
); but |
Thank you for the update |
Hey @TatsuUkraine. We need more information to resolve this issue but there hasn't been an update in 7 weekdays. I'm marking the issue as stale and if there are no new updates in the next 7 days I will close it automatically. If you have more information that will help us get to the bottom of this, just add a comment! |
Is there an existing issue for this?
Which plugins are affected?
Analytics, Crashlytics
Which platforms are affected?
Android, iOS (not sure about iOS since some reports containing breadcrumbs)
Description
It seems
logScreenView
method doesn't track navigation changes. In the crashlytics reports breadcrumbs tab is emptyReproducing the issue
Firebase Core version
2.29.0
Flutter Version
3.19.6
Relevant Log Output
No response
Flutter dependencies
Expand
Flutter dependencies
snippetReplace this line with the contents of your `flutter pub deps -- --style=compact`.
Additional context and comments
It seems Dart plugin uses following code to log screen views
Where _SCREEN_CLASS is
screen_class
and _SCREEN_NAME isscreen_name
While according to the documentation it should be
Firebase doc - https://firebase.google.com/docs/analytics/screenviews?authuser=0&hl=en#manually_track_screens
GA4 doc - https://support.google.com/analytics/answer/9234069#screen_view
Which kind of strange, since native SDK docs say that the current code in
logScreenView
is accurate 🤔The text was updated successfully, but these errors were encountered: