Firebase Analytics — Events & Custom Parameters Not Showing in Release Build (Flutter) #18167
Replies: 2 comments
-
|
facing same issue in my case as well, can anyone please help ? |
Beta Was this translation helpful? Give feedback.
-
|
Three things usually trigger this pattern (works in debug, silently drops in release): 1. Custom parameters vs custom events — different rules
2. ProGuard / R8 stripping the measurement classesWith Add to 3. Analytics collection disabled flag or consent modeUnder GDPR / consent mode, if analytics consent isn't granted, the SDK silently discards events in release builds. Debug mode bypasses the consent check, which is why you see them in DebugView but nowhere else. Explicitly enable from Flutter: await FirebaseAnalytics.instance.setAnalyticsCollectionEnabled(true);And check <meta-data
android:name="firebase_analytics_collection_enabled"
android:value="false" />Direct answers to your questions
Yes. Events auto-register. Parameters do not.
Events: up to 24–48 h. Past that, the issue is parameter registration (not a delay). Parameters: never appear without registration.
Yes, if the keep rules don't cover the measurement service worker specifically. The event enters the queue but the dispatcher gets stripped. The rules above are the minimum safe set. Debug order: first check whether release actually dispatches events via |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Firebase Analytics events and custom parameters work correctly in debug mode (visible in DebugView in real time) but do not appear in the Firebase Analytics dashboard when using a release build.
What Works
What Does Not Work
Questions
Already Checked / Ruled Out
Beta Was this translation helpful? Give feedback.
All reactions