What gets collected
Each time a document is opened or imported, SuperDoc sends a single event containing:| Field | Description | Example |
|---|---|---|
documentId | A hashed document identifier (not the content itself) | a1b2c3d4... |
documentCreatedAt | The document’s original creation timestamp | 2024-01-15T10:30:00Z |
superdocVersion | The version of the SuperDoc library | 1.15.0 |
browserInfo | User agent, hostname, and screen size | { hostname: "app.example.com", ... } |
metadata | Custom key-value pairs you optionally provide | { customerId: "123" } |
- Document content or text
- User identities or personal data
- Keystrokes, edits, or change history
- Cookies or session tokens (
credentials: 'omit')
How it works
- You open or import a document
- SuperDoc generates a document identifier — a hash derived from the file’s metadata (not its content)
- A single
POSTrequest fires to the telemetry endpoint - If the request fails (network error, blocked by firewall), it fails silently
The telemetry request is non-blocking and fire-and-forget. Your editor loads regardless of the outcome.
Configuration
PasslicenseKey and telemetry in your SuperDoc or SuperEditor config:
Options
Your organization’s license key. Links document opens to your account for billing.
Defaults to
community-and-eval-agplv3 if not provided.Enable or disable telemetry. Default:
true.Override the telemetry endpoint. Default:
https://ingest.superdoc.dev/v1/collect. Useful for proxying through your own infrastructure.Custom key-value pairs included with every event. Use this to attach your own identifiers (customer ID, environment, etc.).
Disabling telemetry
Setenabled: false to turn telemetry off entirely:
License key
The license key identifies your organization. It’s sent as anX-License-Key header with every telemetry request.
| License type | Key | How to get it |
|---|---|---|
| Community / evaluation | community-and-eval-agplv3 (default) | No action needed — used automatically |
| Commercial | Your organization key | Email [email protected] |
How document uniqueness works
SuperDoc needs to identify each document uniquely so that opening the same file twice counts as one document, not two. This matters for accurate billing.Identifier strategies
SuperDoc uses two strategies depending on what metadata the file contains: 1. Metadata hash — file already has a GUID and timestamp DOCX files created by Microsoft Word (and other tools) typically contain a unique GUID and a creation timestamp in their internal metadata (docProps/ and word/settings.xml). When both are present, SuperDoc hashes them together:
- For the current open: generates a content hash of the raw file bytes so the same file still produces a consistent identifier
- For future opens: generates the missing GUID and/or timestamp and embeds them into the document’s metadata
Payload example
Here’s what a telemetry request looks like on the wire:Try it: document counting demo
See document uniqueness in action. Upload a DOCX file and watch the counter — then try the steps below.Upload a DOCX file
Click Upload DOCX and pick any
.docx file. The counter goes to 1. SuperDoc reads the file’s internal metadata and generates a document identifier.Edit the document
Make some changes in the editor — add text, delete a paragraph, change formatting. The identifier stays the same because it’s based on metadata, not content.
Export and re-import
Click Export & re-import. SuperDoc exports the document to DOCX and immediately re-imports it. The counter stays at 1 — same metadata, same identifier.
Upload a different file
Upload a second DOCX file. The counter goes to 2. Each file with distinct metadata gets its own identifier.
The event log at the bottom shows exactly what SuperDoc sees: the identifier hash, whether a document is new or recognized, and how many times each has been opened.
FAQ
Does telemetry affect performance?
Does telemetry affect performance?
No. The request is non-blocking and fire-and-forget. Your editor loads and renders regardless of the telemetry outcome.
What happens if telemetry fails?
What happens if telemetry fails?
Nothing. Errors are caught silently. No retries, no queuing, no user-visible errors. Your app continues to work normally.
Can I route telemetry through my own server?
Can I route telemetry through my own server?
Yes. Set
telemetry.endpoint to your proxy URL. The payload format stays the same.Does the same document get counted twice?
Does the same document get counted twice?
Not if it has metadata. SuperDoc hashes the document’s GUID and creation timestamp, so the same file produces the same identifier every time. See How document uniqueness works above.
Do I need a license key for open-source use?
Do I need a license key for open-source use?
No. The community key (
community-and-eval-agplv3) is applied automatically when you don’t provide one.
