What a license call already tells you
Every launch of a paid app asks the license server one question: is this key still good? Each of those calls comes from a device, at a time, from a place. Add the version of your app and the operating system, and you can answer the questions that matter once the app is out:
- How many people use it, today and this month?
- Did the last update reach them, or are most still on the old version?
- Is Windows worth the effort, and which countries buy?
- Are the free trials turning into sales, and who is leaving?
You do not need a separate analytics product for that, and you do not need to follow anyone around the app.
What to measure
- Active devices. Count devices that called in, once per day, not requests. A device that checks its license on every launch is still one device. Today, the last 7 days and the last 30 days are enough for most apps.
- Version share. Of the devices active in the range you are looking at, how many are on each version, and how the share moved while a release rolled out. This is the number behind “can I drop support for 1.x?” and “did anyone take the update?”. Sort versions as numbers: 1.10.0 is newer than 1.9.0.
- Operating systems and countries. The same share, by system and by country.
- Revenue by currency. Sales, paid renewals and refunds, kept per currency. Adding dollars and euros together gives a number that is true in neither.
- Who left. Subscriptions that ended, refunds, licenses that ran out, and how many trials ended without a purchase.
What to send
Three optional fields on the calls you already make:
{
"license_key": "…",
"product_id": 75,
"instance_id": "47596ad9-a811-4ebf-ac8a-03fc7b6d2a17",
"app_version": "2.1.0",
"os": "macos",
"os_version": "15.1"
}
Send the instance_id that activation gave you with every validate. A validate without it checks the license, but it cannot be tied to a device, so it is not counted as an install. The fields themselves are forgiving: a missing or invalid value is ignored, and an old version of your app that sends none of them keeps working. The country is not sent by the app at all; Clavem reads it from the request.
Snippets for Swift, Electron and Tauri are in the analytics docs.
What to leave out
The point of reading license calls is that they carry nothing personal. Keep it that way:
- No email, name or account in the fields.
- No stable user id, and no timeline of what a person did in the app.
- No raw hardware id. If you send a fingerprint for the device limit, send a hash.
If you also want to know which features people use, that is a different job with different rules. Privacy-friendly analytics for paid apps covers it.
Reading the numbers
A few things to keep in mind before you act on a chart:
- Days are UTC. A late-evening launch in California lands on the next day.
- The share is by device. A laptop that is closed for the whole range is not in it.
- Exact devices need recent days. Clavem remembers which device called in on which day for 35 days, so unique devices are exact for ranges that start within them. For an older range you get the average devices per day and the busiest day instead.
- The country is where the request came from. A VPN shows the VPN’s country.
- Net revenue can be negative. Refunds count on the day they happen, so a quiet week with refunds of older sales shows less than zero.
- A subscription counts once. Later payments of a subscription do not reach Clavem as orders.
Where to see it in Clavem
The dashboard has an Analytics page, per product or for all of them, over 7, 30 or 90 days or any range of days you pick on a calendar. The same numbers are available to your own backend at GET /v1/admin/analytics (days, or from and to), and to Claude or Cursor through the get_analytics tool, so you can ask which versions were active last week. Read-only API keys may read them. The analytics docs list what each number means.
Questions
Do I need to add a tracking library to my app?
No. The data comes from the activate and validate calls the app already makes. You add up to three optional fields to them (app_version, os, os_version). Clavem adds the country of the request.
Does Clavem track people?
No. A device is a seat on a license, not a person. Clavem keeps the version, system and country of each device, one record per device and day for 35 days, and then only daily counts with no device in them.
Why is my device count lower than my license checks?
The page counts devices, not requests, and only calls that name their device (validate with instance_id, or activate). An app that validates ten times a day is one device that day.
Can I see data from before I added the fields?
No. Charts start on the day your apps first send instance_id. Nothing is filled in for earlier days.
Are test purchases counted?
No. Test-mode licenses and sales from a Stripe test account are left out of every number.