leancode_analytics_firebase

leancode_analytics_firebase

Firebase Analytics implementation for LeanCode analytics. Uses leancode_analytics_base package for core abstractions.

Features

  • Firebase Analytics integration
  • Automatic screen view tracking via NavigatorObserver
  • Support for custom analytics events

Usage

import 'package:leancode_analytics_firebase/leancode_analytics_firebase.dart';

// initialize Firebase with reexported Firebase class from firebase_core
await Firebase.initializeApp(options: firebaseOptions);

// create instance of FirebaseLeanAnalytics
final analytics = FirebaseLeanAnalytics();

// Register custom events
analytics.register(TapAnalyticsEvent(key: 'button', label: 'Submit'));

// Add observers to your MaterialApp or router
MaterialApp(
  navigatorObservers: analytics.navigatorObservers,
  // ...
);

🛠️ Maintained by LeanCode

LeanCode Logo

This package is built with 💙 by LeanCode. We are top-tier experts focused on Flutter Enterprise solutions.

Why LeanCode?

  • Creators of Patrol – the next-gen testing framework for Flutter.

  • Production-Ready – We use this package in apps with millions of users.

  • Full-Cycle Product Development – We take your product from scratch to long-term maintenance.


Need help with your Flutter project?

👉 Hire our team   •   Check our other packages