How it works
- Your app calls Clavem as before. Activate once per device, validate at launch. Nothing new to install, and no tracking script.
- Each call can say a little more. Three optional fields:
app_version,osandos_version. Clavem adds the country of the request. - A device that calls in is counted once a day. The Analytics page counts devices, not requests, per UTC day.
- Sales come from Stripe, Polar, Dodo Payments and Creem. Orders, paid update renewals and refunds are already in Clavem, so revenue needs nothing from your app.
The page is in the dashboard under Analytics. Choose one product or all of them, and the last 7, 30 or 90 days, or any range of days you pick on a calendar. Old apps keep working: an app that sends none of the fields still counts as a device by its calls, and shows up under "Not sent" for the version.
What your app sends
Add the fields to activate and validate. All three are optional, and a bad value (empty, too long, not text) is ignored: a license check is never refused because of them.
| Field | What to send |
|---|---|
app_version | Your app's version, 1 to 32 characters, such as 2.1.0. Versions are sorted as numbers, so 1.10.0 is newer than 1.9.0. |
os | macos, windows, linux, ios or android. Anything else is stored as other. darwin and win32 are read as macos and windows, so Electron can send process.platform as it is. Up to 16 characters. |
os_version | The system's version, 1 to 32 characters, such as 15.1. It is shown on the license's device list; the charts group by os. |
curl https://clavem.io/v1/licenses/validate \
-H "Content-Type: application/json" \
-d '{
"license_key": "YOUR-LICENSE-KEY",
"product_id": 75,
"instance_id": "47596ad9-a811-4ebf-ac8a-03fc7b6d2a17",
"app_version": "2.1.0",
"os": "macos",
"os_version": "15.1"
}'// In the request you already send to /v1/licenses/validate (and /activate).
let v = ProcessInfo.processInfo.operatingSystemVersion
let body: [String: Any] = [
"license_key": licenseKey,
"product_id": 75,
"instance_id": instanceId, // from activate: without it the call is not counted
"app_version": Bundle.main.infoDictionary?["CFBundleShortVersionString"] as? String ?? "",
"os": "macos",
"os_version": "\(v.majorVersion).\(v.minorVersion)",
]// Main process.
const { app } = require('electron');
const body = {
license_key: licenseKey,
product_id: 75,
instance_id: instanceId, // from activate: without it the call is not counted
app_version: app.getVersion(),
os: process.platform, // "darwin", "win32" and "linux" are read as macos, windows and linux
os_version: process.getSystemVersion(),
};
await fetch('https://clavem.io/v1/licenses/validate', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(body),
});import { getVersion } from '@tauri-apps/api/app';
import { platform, version } from '@tauri-apps/plugin-os';
const body = {
license_key: licenseKey,
product_id: 75,
instance_id: instanceId, // from activate: without it the call is not counted
app_version: await getVersion(),
os: platform(), // "macos", "windows", "linux", "ios" or "android"
os_version: version(),
};
await fetch('https://clavem.io/v1/licenses/validate', {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify(body),
});No os? Clavem reads it from the User-Agent of the request when that is clear: Windows NT is Windows, Macintosh or a CFNetwork or Darwin app is macOS, Linux without Android is Linux, Android, and iPhone or iPad. If it is not clear, the OS stays empty. The version is never guessed.
The country is not sent by your app. Cloudflare tells Clavem which country the request came from, and Clavem stores that code with the device. Requests it cannot place (no country, Tor) have none.
Why instance_id matters
A device is the seat that activate returns, named by instance.id. Send that instance_id with every validate. A validate without it checks the license, as before, but cannot be tied to a device, so it is not counted as an install and its version, system and country are not stored.
- A device counts when it activates, or validates with its
instance_id. It is counted at most once per UTC day, however often it validates. - If its version, system or country changes during the day (the app updated), that day shows the latest.
- A device keeps counting while its license is expired or disabled, as long as the app calls in: it is still running your app.
- A removed device is not counted. Activating again makes a new device.
- A device imported from another system counts from the first call your app makes for it, not from the import.
- Devices of test-mode licenses (made by a Stripe test checkout, a Polar sandbox, a Dodo test-mode business or a Creem test store) are never counted.
Choosing the days
The buttons 7 days, 30 days and 90 days count back from today. Custom opens a calendar: pick the first and the last day, or type them as YYYY-MM-DD. The range is in the address of the page (?from=2026-10-01&to=2026-10-31), so you can reload it or share the link with someone on your account.
- Days are UTC days, and both the first and the last day are included.
- The last day can be today, but not a later one. A range is at most 366 days.
- The Admin API and the MCP tool take the same range: either
days(7, 30 or 90), orfromandtotogether. Not both, and not just one offromandto. Neither gives the last 30 days.
Exact devices, or daily averages
Clavem remembers which device called in on which day for 35 days. That is what lets it count a device once, however often it called in. After 35 days only the daily counts per product, version, system and country remain. So the numbers depend on where your range starts:
- The range starts within the last 35 days (7 days, 30 days, and custom ranges that start no more than 35 days ago): devices in the range are unique devices, and the versions, systems and countries count each device once, by what it reported last in the range. The API says
"device_counts": "exact". - The range starts earlier (90 days, and older custom ranges): unique devices cannot be counted any more. The page shows the average devices per day and the busiest day instead, and the versions, systems and countries are shares of each day's devices, added up over the range. The API says
"device_counts": "daily_average",installs.range.devicesisnull, and the numbers inversions,osandcountriesare average devices per day.
Active today and the last 7 and 30 days are always counted back from now, so they are exact whatever range you look at. Sales, refunds, renewals and the losses below are exact for any range.
What each number means
- Active today, last 7 days, last 30 days. Unique devices that called in. Below each is how many of them are on a free trial. For a custom range the strip shows the devices in the range (or the average per day and the busiest day) instead of the 7 and 30 days.
- Active devices per day. Devices that called in that day, over the range, as a line over a hatched area. A second line shows how many of them are on a trial. Hover it, or use the arrow keys, to read one day. History starts on the day your apps first send
instance_id; nothing before it is filled in. - Versions. One line per version, for the most used ones (newest first, each with its own colour) and one for all the others, as devices per day over the range. Beside the chart, the split over the range, newest first. Devices that never sent the field are listed as "Not sent".
- Operating systems. One bar and a list.
- Countries. A globe and the ranked list beside it. Drag the globe to turn it (it also turns slowly by itself until you touch it), use + and − to zoom, and hover or tap a country for its name, devices and share. Click a country in the list and the globe turns to it. The country with the most devices has a marker. The list holds the same numbers as the globe, so everything is readable without it, and the globe does not move at all if your system is set to reduce motion. Very small countries that have no land on the map get a ring at their position.
- Revenue and losses. Four plain numbers each (gross sales, renewals, refunded and net; trial conversion, subscriptions ended, refunded orders and licenses expired), a daily chart of sales and a table per product.
- Days are UTC. Today is the UTC day so far.
The versions, systems and countries cover the range you chose, and each device is counted once, by what it reported on its latest day in the range.
The live globe
When the range you look at includes today, the globe shows what is happening now. It is real activity only: nothing is made up to look busy.
- Right now. How many different devices were seen in the last 5 minutes, next to the globe, with a live dot.
- The live feed. The page asks every 15 seconds, while it is open and visible, for the calls since its last ask. Each new call is a ripple on its country and a line in a short feed that fades out ("Germany · macOS · 2.0.0 · just now"). The feed shows the country, the operating system and the app version, never a name, an email address, a license key or a device name.
- Active today. Countries with devices seen today breathe softly. Numbers on the page count up when they first appear.
- What counts as a call. A device's latest call: activate, validate with its
instance_id, or a trial start. A device that called twice between two asks shows once, at its latest call. A validate withoutinstance_idcannot be tied to a device, so it is not shown. Test-mode licenses, removed devices and imported devices that have not called since the import are left out. - Delay. The newest 3 seconds are held back, so a call that is still being recorded is not lost between two asks. A call shows up on the page within about 20 seconds.
- Hidden and still. With a range that does not include today the live parts are hidden and the page does not ask. If your system is set to reduce motion, nothing ripples or breathes, but the feed still updates.
- The product filter applies. The same data is in the Admin API (
GET /v1/admin/analytics/live) and in the MCP toolget_live_activity, and a read-only key may read it.
Revenue
Revenue is read from your Stripe, Polar, Dodo Payments and Creem sales in Clavem, per currency. Nothing is converted between currencies, so a seller of dollars and euros sees two sets of numbers.
- Gross sales. Orders from your live Stripe accounts, Polar organizations, Dodo Payments businesses and Creem stores in the range. Orders held for an unpaid balance count too: they are sales.
- Renewals. Paid renewals of the update period.
- Refunded. Orders refunded in the range, at their full amount, on the day of the refund even when the sale was earlier. Refunds are full refunds.
- Net. Gross sales plus renewals minus refunded. It can be negative in a range with many refunds of older sales.
- With all products selected, each currency also splits by product. An order belongs to the product of its first license, so an order with two products counts for the first.
- Orders from a Stripe test account, a Polar sandbox, a Dodo test-mode business or a Creem test store, test-mode licenses, imports and licenses you issued by hand are not revenue here.
Payments after the first one of a subscription do not reach Clavem as orders, so a subscription counts once, when it starts.
Cancellations and losses
- Subscriptions ended. Subscription licenses that Stripe, Polar, Dodo Payments or Creem ended in the range, because the subscription was cancelled or went unpaid.
- Refunded orders. How many orders were refunded. Their licenses are switched off.
- Licenses expired. Licenses that ran out on their own date. Trials and subscriptions are counted elsewhere, and a license you disabled is not "expired".
- Trial conversion. Of the trials started in the range, how many bought and how many ended without buying, as on the product's Trials tab.
What is never collected
- No tracking pixel, no script in your app, no website analytics. Only the calls to the License API your app already makes.
- No per-person timeline. A device is a seat on a license, not a person, and nothing records what happens inside your app.
- No new IP storage: the country is worked out when the request arrives, and only the two-letter code is kept. (Activations keep the IP address and browser string from the first activation, as before.)
- Only what your app sends: the version and the system, as text. Treat them as typed by someone else when you show them.
- The record of a device is deleted with its license or account. The per-day device records are deleted after 35 days; the daily counts kept after that have no device or person in them.
Dashboard, API and MCP
| What | Dashboard | Admin API | MCP |
|---|---|---|---|
| All the numbers above | Analytics | GET /v1/admin/analytics?product_id=&days= or ?from=&to= | get_analytics (days, or from and to) |
| What is happening right now | The globe under Analytics | GET /v1/admin/analytics/live | get_live_activity |
| Version, system and country of a device | The license's Devices list | instances in GET /v1/admin/licenses/:id | get_license |
curl "https://clavem.io/v1/admin/analytics?product_id=75&days=30" \
-H "Authorization: Bearer sk_clavem_…"curl "https://clavem.io/v1/admin/analytics?from=2026-10-01&to=2026-10-31" \
-H "Authorization: Bearer sk_clavem_…"Which versions of Inkwell were active in the last 7 days, and how much did I sell in the last 30 days?
How many devices called in per day in October, and what did I sell that month?
Is anyone using Inkwell right now, and from where?Read-only API keys may read analytics. There is nothing to switch on or change: it is on for every account.
Limits
- Charts start on the day your apps first send
instance_id. Nothing is back-filled from before. - Update checks (Sparkle, Tauri, electron-updater) are not counted, only license calls.
- Unique devices are only exact for ranges that start within the last 35 days. Older ranges show daily averages (see Exact devices, or daily averages).
- Versions, systems and countries are by device, so a laptop that is off for the whole range is not in them.
- The country is where the request came from. A VPN shows the VPN's country.
- No currency conversion, no partial refunds, no export of analytics, no alerts or email reports.
Activate and validate · MCP server · Free trials · Analytics for desktop apps