activity_flow 0.0.3
activity_flow: ^0.0.3 copied to clipboard
VTEX Activity Flow Flutter SDK
VTEX Activity Flow Mobile RUM for Flutter apps focused in Android and iOS.
Features #
This plugin coupled to an app, aims to:
- Track user navigation between app pages and send events.
Usage #
Import the package inside the main.dart file:
import 'package:activity_flow/activity_flow.dart';
Create an instance of the Page View observer class, by setting the account name:
void main() {
runApp(
...
final afObserver = PageViewObserver(accountName: 'Account 1');
...
)
}
Automatically tracks your route navigation using the previous AF observer instance created:
MaterialApp(
// Add the routeObserver to the navigatorObservers list.
navigatorObservers: [ afObserver ],
routes: {
... //define your named routes
},
);