View Tracking

To track views automatically add an instance of MBAutomationNavigatorObserver to the navigatorObservers of your app, like this:
Widget build(BuildContext context) {
return MaterialApp(
navigatorObservers: [MBAutomationNavigatorObserver()],
home: ...,
The navigator observer will send the name of the PageRoute ( tto MBurger whenever a new route is pushed or popped.
If you don't wnat to use the navigator observer you can use this function, to track a view manually.
As the events, views are saved in a local database and sent to the server every 10 seconds and you can change the frequency setting the eventsTimerTime property.
Last modified 2yr ago