firebase_analytics_web
0.6.4+16, released 5 days ago by firebase.google.com
Web implementation of Firebase Analytics for Flutter apps.
What it does
Provides the web platform implementation for the firebase_analytics plugin. It forwards analytics events from Flutter to Google Analytics on the web.
AI-written summary of version 0.6.3+15, based on the package's README and metadata. Report an inaccuracy
Use it when
- You need Google Analytics for Firebase in a Flutter web app
- You already use firebase_core and want analytics support on web
Skip it when
- You target only mobile platforms
- You need a custom analytics solution
Strengths
- Official Firebase support
- Keeps API consistent with firebase_analytics
- Simple to add as a dependency
Weaknesses
- Only works on web platform
- No additional features beyond the core analytics API
Setup
- Kind
- Plugin (native code)
- Effort
- Low
- Code generation
- No
- Direct dependencies
- 4
import 'package:firebase_analytics/firebase_analytics.dart';
import 'package:firebase_analytics_web/firebase_analytics_web.dart';
void main() async {
FirebaseAnalytics analytics = FirebaseAnalytics.instance;
await analytics.logEvent(name: 'test_event');
}Alternatives
Packages that do the same job and could replace firebase_analytics_web.
- flutterfire_cli
CLI to configure Firebase services in Flutter projects
84Compare - clarity_flutter
Flutter SDK for Microsoft Clarity session replay, heatmaps and interaction analytics.
83Compare - amplify_analytics_pinpoint
AWS Pinpoint analytics plugin for Flutter
82Compare - google_cloud_firestore
A Dart client library for Google Cloud Firestore database.
79Compare
Works with
Packages commonly used together with firebase_analytics_web: ones it builds on, ones built on it, and its own family.
- firebase_corefirebase_analytics_web depends on itFlutter plugin that initializes Firebase and allows multiple Firebase app connections.
- firebase_core_webfirebase_analytics_web depends on itWeb implementation of firebase_core for Flutter apps.
- firebase_messagingSame familyFlutter plugin for Firebase Cloud Messaging to deliver messages on Android, iOS, web, and macOS.
- firebase_messaging_webSame familyWeb implementation of Firebase Cloud Messaging for push notifications.
- firebase_crashlyticsSame familyFlutter plugin that sends uncaught errors and crash reports to Firebase Crashlytics.
- firebase_authSame familyFlutter plugin for Firebase Authentication enabling passwords, phone numbers, and identity providers.
- firebase_auth_webSame familyWeb implementation of Firebase Authentication for Flutter
- cloud_firestoreSame familyFlutter plugin for Cloud Firestore noSQL database with live synchronization.