โ† All posts
RELEASE September 29, 2026 ยท 4 min read

Every install is someone, even before they sign in

SR
Sentrinel Team
Product & engineering

The Consumers page answers one question: which of my users is this happening to? For most apps a large share of the people using them have not signed in โ€” a fan browsing scores, a shopper filling a basket, a visitor reading the pricing page. Until now, Sentrinel did not know how to tell those people apart.

The SDKs filed every signed-out request, error and log line under whatever the app had passed at startup. An app that set a platform there โ€” consumerIdentifier: 'mobile_android', a reasonable reading, since nothing said otherwise โ€” got a Consumers page with one enormous user called mobile_android. One app worked around it by generating its own guest_<something> ids and threading them through every call. That is the kind of workaround that means the SDK should have done it.

Now it does.

A stable id per install, used from the first launch

Every install already had a stable anonymous id โ€” minted once, written to disk, used by product analytics to recognise a returning user across launches. It is exposed as deviceId now, and it is what signed-out traffic belongs to:

until someone signs in, everything from an install is filed under guest:<deviceId>.

Each install is its own consumer. A guest who hit an error before signing up is one person you can follow across sessions, not a slice of anonymous traffic. You do not generate the id, store it, or pass it around; it is there from the first request.

It is the same in every client SDK: the browser (where the id lives in local storage), Flutter and plain Dart, Swift and Kotlin. On Flutter web there is no filesystem, so the id lasts one page load โ€” use the browser SDK for web analytics that matter.

identify is the only call you make

// After sign-in, at launch when a saved session is restored,
// and after the profile changes.
Sentrinel.identify(user.id, properties: {'plan': user.plan});

// On sign-out โ€” back to guest:<deviceId>.
Sentrinel.identify(null);

The browser SDK is the same shape: sentrinel.identify('user_123'), and sentrinel.identify(null) or sentrinel.reset() on sign-out.

From that moment, requests, errors, logs and events are filed under the user. In Flutter and the browser, which record product events, identify also sends an identify event linking the install to the person, so what they did as a guest โ€” the screens before the paywall, the step of the signup funnel they abandoned last week โ€” joins their history rather than staying with a guest id nobody will look at again.

Sign-out goes back to the install's guest id, not to a shared label. The next person to use that phone is a new guest, not a continuation of the last user.

The backend hears about it too

A phone's own records know who is using it. The server work those taps cause did not: your API saw an unauthenticated request and filed its errors under nobody. So the SDKs' HTTP clients now send two headers with each call โ€” x-sentrinel-consumer (the user id, or guest:<deviceId>) and x-sentrinel-device (the install id) โ€” and the backend SDKs for Node, Django and FastAPI use them.

Two rules keep that safe:

The headers only go to your own backends. On Flutter you list them โ€” tracePropagationTargets: ['api.example.com'] โ€” and nothing else receives them, or traceparent. The browser sends them same-origin by default. A third-party API never learns your users' ids, and a call to another origin never picks up a surprise CORS preflight.

A header is a claim, not a fact. Anyone can send any header. So a backend uses it only as a last resort โ€” when its own resolver, the signed-in user, found nobody โ€” and by default only accepts values that start with guest:. Letting a request file itself under an arbitrary user id would let a caller pin its errors on someone else. If your backend wants to trust more, it says so explicitly (consumerHeaderPattern in Node, TRUST_CLIENT_CONSUMER in Django and FastAPI).

The Flutter and browser clients add the headers themselves. Swift and Kotlin expose them as Sentrinel.identityHeaders, to add to the requests your own networking code makes to your own API. The device id lands on every server-side row as device.id, so "this error, on which install?" has an answer on both ends of the call.

What to change in your app

If you set consumerIdentifier at startup to a platform or a build name, remove it and call identify instead. A value set at startup still works โ€” it pins the consumer, for the cases where that is what you want: a kiosk, a tenant, an API client โ€” but it is no longer the default path, and it was the reason so many Consumers pages listed platforms instead of people.

If you built your own guest ids, you can delete them. The SDK's are the same idea, already persisted โ€” and on Flutter and the web, already linked to the person when they sign in.

The details, per SDK, are in the mobile and web references.