FunnelsManager

FunnelsManager is a Dart package designed to help developers track user journeys through funnels. It provides a structured way to log events and measure the duration of user interactions within an application.

Features

  • Define and manage funnels to track user journeys.
  • Log events within a funnel.
  • Measure and report the duration of user interactions.
  • Integrates with Analytix for event logging.

Getting started

To start using the FunnelsManager package, add it to your pubspec.yaml:

dependencies:
  funnels_manager: ^1.0.0

Then, run flutter pub get to install the package.

Usage

Here is a simple example of how to use the FunnelsManager package:

import 'package:funnels_manager/funnels_manager.dart';
import 'analytix_funnel.dart';
import 'funnels.dart';

void main() {
    Funnel funnel = AnalytixFunnel(Funnels.funnel_1, shouldCountTime: true);
    
    funnel.start();
    
    funnel.track("Event 1");
    funnel.track("Event 2");
    funnel.track("Event 3");
    
    Future.delayed(Duration(seconds: 2), () {
        funnel.finish();
    });
}

In this example, we create a funnel using the AnalytixFunnel class and start tracking events. We then track three events and finish the funnel after two seconds.

More

For help getting started with Flutter development, view the online documentation.

For instructions integrating Flutter modules to your existing applications, see the add-to-app documentation.

Libraries

abstract/funnel
funnels_manager
Support for doing something awesome.