Hi dan in flutter firebase analytics I was trying the log the screen view calling the logScreenView method in inistate. When I try to push the screen in it is called and able to get in debug view but when I pop the screen in it will not get called and not able to log the screen name how to solve this
Hi dan in flutter firebase analytics I was trying the log the screen view calling the logScreenView method in inistate. When I try to push the screen in it is called and able to get in debug view but when I pop the screen in it will not get called and not able to log the screen name how to solve this
Hi Karam,
You should not be calling logScreen in the init function, you should use a navigator observer to automatically log all your screen views.
Firebase Analytics package has one that you can use in your code.
You can also write your own one if you need to pass data in a specific way.
Thank you I will try the above solution please suggest me some resources where I can go through analytics deeply.
Here's an article I wrote on it a few years back that covers everything: https://www.filledstacks.com/post/firebase-analytics-and-metrics-in-flutter/