On this page

Flutter SDK

Add the dependency, call start() once, and the signals below arrive on their own. There is no event taxonomy to design first and no tracking plan to keep up to date.

Published on pub.dev · drengr_flutter_sdk.

Before you start

Requirements for the Flutter SDK
RuntimeFlutter 3.16.0 or newer, Dart SDK 3.0.0 up to but not including 4.0.0.
PermissionsNothing beyond what your app already needs to make network calls.
Publishable keyConsole, under Settings. It is a publishable key, safe to ship in client code: it can only append events.

Install

bash
flutter pub add drengr_flutter_sdk

Start it

In lib/main.dart. Your publishable key is safe to ship in client code: it can only write.

lib/main.dartdart
import 'package:drengr_flutter_sdk/drengr_flutter_sdk.dart';void main() {  final sink = IngestSink(    url: 'https://ziryfxrwrvnunwjupgfg.supabase.co/functions/v1/ingest',    publishableKey: 'drengr_pk_YOUR_KEY',    context: {'app_package': 'com.example.myapp'},  );  Drengr.start(onEvent: sink.addNetwork);  runApp(const MyApp());}// screen_view needs this observer — without it you get taps and network only.// MaterialApp(navigatorObservers: [Drengr.navigatorObserver])

Add the navigator observer, or you get no screens

dart
MaterialApp(navigatorObservers: [Drengr.navigatorObserver])

What arrives on its own

You do not instrument these. They are captured from the moment start() runs. The third column names the Flutter API behind each one, so you can check the claim against your own app.

Signals the Flutter SDK captures automatically, and the platform hook behind each
SignalWhat it recordsWhere it comes from
screen_viewEvery screen or route the user lands onDrengrNavigatorObserver, a RouteObserver on didPush and didPop
tapTaps, with the element's own label when it has oneGestureBinding.instance.pointerRouter.addGlobalRoute
net / net_failOutgoing requests: host, path, status, duration, sizeDrengrHttpOverrides, an HttpOverrides subclass that chains your existing one
crashUncaught exceptions with their stackFlutterError.onError plus PlatformDispatcher.instance.onError
rage_tap / dead_tapRepeated taps that did nothing — the friction signalThe same global pointer route as tap
rage_scroll / dead_scrollScroll thrash and scrolls that moved nothingThe same global pointer route as tap
app_foreground / app_backgroundLifecycle, which is what sessions are built fromWidgetsBindingObserver.didChangeAppLifecycleState
identifyYour own user id, when you choose to send oneYour own call to Drengr.identify()

IngestSink batches in memory and flushes on background, so a dropped connection costs nothing.

app_package is the identity the console groups by. Use your real bundle id, not a display name.

Labels are redacted and capped on device before they leave the app.

What never leaves the device

Emails, phone numbers, card numbers and government ids are detected and sealed on the device before the first byte is sent. Our servers hold ciphertext they cannot open. Labels and URLs are redacted and length-capped on the device too.

And what is never collected in the first place:

What the Drengr SDKs do not collect, and why that is structural
Not collectedHow you can tell
Screen recordings, screenshots or DOM snapshotsThere is no column for pixels or markup on the events table, and no SDK reads the framebuffer.
KeystrokesTap capture records that a tap happened and the element's own accessibility label. No SDK attaches a key or text listener.
Raw request and response bodiesWhat is stored is a safe dotted-path projection, redacted and capped at 64 KiB on the device before anything is sent.
Authorization headers, cookies and API keysMasked by name before capture, along with password, pin, cvv, ssn, otp and iban field names.
An IP address on the eventThe events table has no ip or geo column, so no stored event carries one.
Advertising or cross-app identifiersIdentity is a random install_id the SDK generates. No IDFA, no GAID, and no device fingerprint is used for identity.

Most autocapture tools promise not to look. This is built so we cannot. Full design in Security and Privacy.

Start paused behind a consent gate with Drengr.start(enabled: false), then resume once the user agrees. A persisted opt-out always wins over that argument, so an opted-out install stays paused across restarts.

Consent controls on the Flutter SDK
Start pausedDrengr.start(enabled: false)
Opt outDrengr.optOut()
Opt back inDrengr.optIn()
Where the choice is storedSharedPreferences (drengr.opt_out), mirrored to a temp marker for the synchronous check at start

Retention, deletion and what a GDPR or CCPA request maps to are on Privacy controls.

Check it worked

Run the app and use it for a few seconds, then open the console. Overview checks for your first event every 15 seconds on its own, so you do not need to keep reloading.

Nothing showing up

Common reasons no events appear, and how to tell
What you seeMost likely cause
Console stays on “Get your first events in”The key belongs to a different organisation, so the events landed in someone else’s tenant.
Events arrive, but the app you picked looks emptyThe app_package you passed to start() is not the one you are scoped to in the console. Switch the scope, or match the value.
Nothing until you close the appThe first batch flushes on background. Send the app to the background once, or wait for the flush interval.
Taps and network arrive, screens do notThe navigator observer is not attached — see the step above.
Nothing at all, everstart() is not reached, or it runs after the events you expected. Put it as early as you can and check for a thrown error before it.

Where to go next

Once events are arriving, these are the things worth doing in order.

  • Set up consent and opt-out before you ship to real users.
  • Name your events. Drengr proposes names from the traffic itself; you accept or reject them in the console's review queue.
  • Bring your history across from whatever you use today, so the numbers do not start at zero.

Not ready to install anything?

Drop a .har of traffic you already have and see the business events your current analytics is missing. It runs in your browser; nothing is uploaded.

Scan for blind spots →