Skip to main content

Compliance and privacy

The SDK is a no-op without consent. NoChurn.init({ consent: false }) registers no listeners, collects nothing, and sends nothing. This is not a feature flag — it is the default behaviour of the library, and it is what makes the SDK usable under GDPR and LGPD without extra work on your side.

// Does nothing at all. No listeners, no events, no network.
NoChurn.init({ apiKey: 'ck_...', consent: false });

You are responsible for collecting the consent and for wiring the consent flag to it. If your app already has a consent banner, pass its result straight through.

What we store​

DataWhereWhy
Event type, timestamp, propertiesPostgres (Neon)The raw signal the scoring rules read
User id (the one you pass or the SDK generates)PostgresTo group a user's events and compute their score
Email (only if you pass one to identify())PostgresTo address a recovery email, if you configure one
The domain the events came fromPostgresTo enforce your API key's domain allowlist
Churn score, tier, and which signals firedPostgresWhat the dashboard shows
Your integration credentials (e.g. a Resend API key)Postgres, encryptedTo send the recovery emails on your behalf

We do not store keystrokes, form field values, or the content of pages. The SDK captures clicks, scrolls, form submissions (not their contents), route changes, time spent on billing pages, and JavaScript error messages. Everything else is what you send through track().

Where the data lives​

DatabaseNeon Postgres (AWS us-east-2), serverless, with TLS
ComputeCloudflare Workers, running at the edge
Encryption in transitTLS 1.2+ everywhere
Encryption at restProvider-managed, plus AES-256-GCM on your integration credentials
BackupsManaged by Neon, encrypted

Your integration credentials (a Resend API key, an SMTP password) are encrypted with AES-256-GCM before they are written to the database, using a key derived from the tenant's master key. They are decrypted in memory only when a message is about to be sent. They are never returned by the API — not even to an admin.

Data deletion​

The right to erasure is a first-class endpoint, not an email request.

await tracker.deleteAllData();

That call erases every event queued locally in the browser and requests the backend deletion. The backend deletes:

  • The user's row
  • Every event the user emitted
  • The user's score

The deletion is scoped to your tenant. A user id is only unique within a tenant, so a delete from your tenant can never touch another customer's data — including a customer whose user id happens to be identical to yours.

note

Deletion happens on request. There is no automatic retention window yet: events stay in the database until they are deleted or your tenant is deleted. If your privacy policy promises automatic expiry (for example "data is deleted after 30 days"), that promise is not met by the backend today.

Data isolation​

Every request is authenticated with your API key, and every query is scoped to the tenant that key belongs to. A user id, a score, and an email are all tenant-scoped: two customers may legitimately use the same user id, and neither can read or delete the other's data.

On top of that, your API key carries a domain allowlist. Events are only accepted from a hostname on that list, which stops a leaked key from being used to inject events into your tenant from an attacker's site.

Your responsibilities​

  • Collect the consent lawfully and keep proof of it.
  • Do not send personal data through track() unless you have a lawful basis for it — the properties you attach are stored as-is.
  • Use the API key only in your own frontend. It is a public key: anyone can read it from the browser. The domain allowlist and the tenant scoping are what protect you.
  • Delete data when your users ask, and keep your privacy policy in sync with what the SDK actually collects.

Security reporting​

Found a vulnerability? Report it privately to [email protected]. We will not disclose a report publicly until a fix is deployed.