Skip to content
pubscout

firebase_analytics_web

0.6.4+16, released 5 days ago by firebase.google.com

Web implementation of Firebase Analytics for Flutter apps.

WASM-ready
$ flutter pub add firebase_analytics_web
Source repository

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.

Works with

Packages commonly used together with firebase_analytics_web: ones it builds on, ones built on it, and its own family.