uptimemesh_flutter_web

Flutter Web monitoring SDK for UptimeMesh — session tracking, error monitoring, page view analytics, and custom events.

Note: This package is for Flutter Web only. For iOS/Android, use uptimemesh_flutter.

Features

  • Automatic session tracking (browser, OS, device, language, timezone, UTM)
  • Flutter error hooks (FlutterError.onError + PlatformDispatcher.onError)
  • Page view tracking via popstate / hashchange events
  • User identification
  • Custom event and click tracking
  • Manual error capture with stack traces
  • Ad-blocker detection
  • Batched ingest with configurable flush interval

Installation

dependencies:
  uptimemesh_flutter_web: ^1.0.0

Usage

import 'package:uptimemesh_flutter_web/uptimemesh_flutter_web.dart';

void main() async {
  WidgetsFlutterBinding.ensureInitialized();

  await UptimeMeshWeb.init('YOUR_API_KEY');

  runApp(const MyApp());
}

Get your API key from the Web Applications → App Detail → Integration tab in your UptimeMesh dashboard.

Identify users

UptimeMeshWeb.instance.identify(user.uid);

Track events

UptimeMeshWeb.instance.trackEvent('purchase_completed', {
  'amount': 49.99,
  'currency': 'TRY',
});

Capture errors manually

try {
  await doSomething();
} catch (e, st) {
  UptimeMeshWeb.instance.captureError(e, st);
}

License

MIT