SaaS Tracker Docs

Customer organizations

Customer organizations are the B2B tenants you serve – the companies that use your product. In SaaS Tracker they are identified consistently across:

This page explains how these pieces fit together.

Event-side identifier: customer_org_id

Every event sent to the Ingest API must include customer_org_id:

Example (from the event schema):

{
  "event": "page_view",
  "user_hash": "…",
  "customer_org_id": "org_456",
  "path": "/dashboard"
}

Organizations first appear in analytics when events arrive with a given customer_org_id. They show up in Analytics → Organizations and receive health scores if your plan includes them.

Imported organizations: external_org_id

For revenue analytics and more reliable naming, you can import a master list of customer organizations.

Example row:

external_org_id,display_name
org-456,Acme Corporation

When an imported organization’s external_org_id matches event customer_org_id:

Revenue subscriptions and organizations

Subscriptions are imported via the Revenue subscriptions CSV. Each row links revenue back to the organization using external_org_id:

Example:

external_org_id,product_code,mrr,currency,start_at
org-456,pro,99.00,EUR,2024-01-15

This allows SaaS Tracker to compute:

Imported organizations vs active organizations

There are two useful views of organizations:

Key points:

Best practices

To keep your data consistent:

  1. Use one canonical ID per organization.
    • In events: customer_org_id
    • In organization import: external_org_id
    • In subscriptions import: external_org_id
  2. Normalize IDs. Use a stable, URL-safe identifier (e.g. acme_corp) rather than display names.
  3. Import organizations before subscriptions. This ensures that subscription imports can resolve each external_org_id to a known customer organization.
  4. Avoid special cases per environment. Prefer a single ID per real-world organization; if you need separate sandboxes, use the environment field in events instead of encoding environment into the org ID.