I am attempting to publish events via FlutterAnalytics but I am experiencing very sporadic behaviour.
firebase_core
and firebase_analytics
packagesflutter create
project for testinggoogle-services.json
to android/app
and android/app/debug
folderfirebaseAnalytics.logEvent(name: 'testevent');
in onPressed
where counter is incrementedExpect to see 100 events in Firebase Analytics but I see none.
screen_view
etc.They say events don't show up instantly, wait up to 24h, okay:
I then proceeded to create several other test firebase projects, with varying degrees of events showing up:
Is anybody getting better mileage out of Firebase Analytics ? It cannot be a misconfiguration on my part on a vanilla project as then no events would show up, not this sporadic behaviour across all the projects.
since you are seeing varying levels of events logged, we need to determine if each of the event is sent to the server for processing. this can be checked by enabling the verbose mode.
adb shell setprop log.tag.FA VERBOSE
adb shell setprop log.tag.FA-SVC VERBOSE
adb logcat -v time -s FA FA-SVC
This will help you to verify if the event is logged or not immediately instead of waiting for 24-48 hours for the UI to show that.
If the events are not logged in the verbose mode, then you might want to rephrase your code to send 100 sequential events, if that is required. Another thought is like lots of same events from same user, are so quick and so they are packaged together for processing resulting in various count. ALways do verbose mode to ensure your events are created and sent as you wanted to analyze further.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With