analyticsprobe

command
v1.3.0-rc.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 21, 2026 License: BSD-3-Clause Imports: 10 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Command analyticsprobe live-verifies the analytics battery model (pre-rebrand tracker #699, follow-up to pre-rebrand tracker #526/#527) on a real device. Instead of a real backend + mitmproxy, it wires a custom Sink that logs every batch to logcat with its size and timestamp — so the batch CADENCE (batched, not per-event) is visible directly:

adb logcat | grep analyticsprobe

Checks, all observable in the log:

  • Consent gate: fire events BEFORE "Enable consent" → NO batch is sent.
  • Batching by size: WithBatchSize(30); "Fire 25" twice → one batch, not 50.
  • Explicit Flush.
  • Background-edge flush: press Home → Attach's SetOnExitedForeground fires a batch (session_end included) — the workhorse on mobile.
  • Auto-capture (pre-rebrand tracker #527): taps become "ui.activate" and coalesce into batches.
  • Spool drain: events fired before consent are spooled; relaunch + enable drains them oldest-first.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL