Anonymous Simple Stats

Privacy-friendly screen analytics for Android and iOS apps.

A tiny library that tells you which screens of your app are seen, how long sessions last and where users go next. Without ever knowing who they are: no device ID, no personal data, no SDK dependencies.

The dashboard you get

Screenshots of the real dashboard, with a demo app and generated views. The dashboard itself is in French for now.

Overview: page views, sessions, pages per session, average duration and bounce rate over a month, with daily activity compared to the previous period.
Views, sessions, average session length and bounce rate, by day, week, month or year, compared to the previous period.
Views per screen as a pie chart.
Most viewed screens, as a table or a pie chart, exportable to CSV.
Flows: the most frequent screen sequences, with session counts and average time before moving on.
User flows: where users come from and where they go next.

What the library does

  • Counts views of each screen you declare, one logScreen call per screen.
  • The dashboard shows views, sessions, pages per session, average length and bounce rate.
  • Views are sent in batches in the background, and kept on the device while offline.
  • Android: Kotlin stdlib only, one permission (INTERNET), Android 4.1+ (minSdk 16), optional Jetpack Compose module.
  • iOS: a dependency-free Swift package, iOS 15+, with its privacy manifest.

Anonymous, for real

  • No device, advertising or user ID. No cookies, no fingerprinting.
  • A session is a random ID drawn at each app launch, never stored: two launches can't be linked.
  • IP addresses are never stored; they are only used in memory to limit abuse.
  • Timestamps are "milliseconds since the view", so the device clock is never sent.

Nothing collected can identify a person or follow them from one launch to the next.

Compared to Firebase Analytics and classic mobile analytics

Anonymous Simple StatsClassic analytics SDK
Device or advertising IDNeverOften
Tracking across launchesImpossibleYes
Dependencies added to your appNoneAn SDK and its dependencies
Source codeOpen (MIT), self-hostableUsually closed
What you measureScreens, sessions, flowsMuch more, with much more data

Integrate it in four steps

  1. Create your app in the dashboard and add one page per screen to track, by hand or from a CSV. Each gets its own UUID.
  2. Add the dependency.
    // Android: settings.gradle
    repositories { maven { url 'https://jitpack.io' } }
    // app/build.gradle (or assCompose for Jetpack Compose)
    implementation 'com.github.ClewigFr.AssAndroid:assLib:0.6.1'
    
    // iOS: Xcode › File › Add Package Dependencies…
    https://github.com/ClewigFr/AssIOS
  3. Initialise it once.
    class MyApplication : Application() {
        override fun onCreate() {
            super.onCreate()
            AnonymousSimpleStatsManager.getInstance(this, AssConfig(
                endpoint = "https://ass-api.clewig.fr",
                appId = "<application UUID>"
            ))
        }
    }
  4. Count each screen.
    // Android
    AnonymousSimpleStatsManager.getInstance(this, config).logScreen("<page UUID>")
    
    // SwiftUI
    CartContent().trackScreen(stats, "<page UUID>")

    Views show up in the dashboard a few seconds after they're sent.

Many screens? AI_INTEGRATION.md lets an AI assistant list your app's screens and add every call from the dashboard's CSV export.

FAQ

What exactly is sent?

For each view: the page ID, a session ID drawn at random when the app starts, and the time elapsed since the view. Nothing else: no device model, no language, no location, no IP address stored.

Do I need a consent banner?

Nothing collected identifies a person or follows them from one launch to the next, which is what consent rules are about. Check with your own counsel for your case; we don't give legal advice.

Is it a Firebase Analytics alternative?

For screen analytics, yes: screen views, sessions, session length, bounce rate and flows, without Google Play services, a device ID or any dependency. It does not do custom events, per-user funnels or retention cohorts.

Can I self-host it?

Yes: the libraries, the API (Ktor and PostgreSQL) and the dashboard are open source under the MIT licence, with Docker images. See GitHub.

What if the device is offline?

Views are kept on the device (up to 1000 views and 7 days) and sent later in batches.

Ready to know which screens matter?

A free account, an app, a few lines of code: your first views arrive within a minute.