How it works without Apex
Install the Apex snippet or SDK, call identify() on sign-up with userId, email, and a nested account object (account.id plus optional name, domain, plan, seat_count, and groups[] with parent_id for sub-accounts), fire at least one product custom event so active users separate from page views, and connect Stripe webhooks. Apex lights up Activation funnels, contact retention, Stripe charge-powered NRR, and account LTV.
How Apex does it for you
Apex matches Stripe invoice.paid and subscription cancellations by externalIds.stripe_customer_id (when previously matched, then email fallback) idempotently, groups teammates under account.id, links sub-accounts via groups[] with parent_id (parent LTV stays its own counters), and computes contact and Stripe charge-based NRR cohorts.
How to set this up in 5 steps
Call identify() with a nested account object on sign-up and login
Pass userId, email, and an account object containing at least account.id (plus optional name, domain, plan, or seat_count), and use groups[] with parent_id for workspaces, teams, or sub-accounts. Apex creates the Account automatically and links teammates under it.
Send at least one real product custom event
Automatic page_view events intentionally do not mark a user Active in the Activation funnel. Fire a real custom event (such as project_created or report_exported) when someone actually uses your product.
Connect Stripe webhooks (live or sk_test_ test mode)
Connect Stripe in Integrations so invoice.paid promotes contacts to customer and adds paid dollars to conversionValue, while customer.subscription.deleted marks churn cleanly.
Understand how Stripe matches contacts and parent accounts
Apex matches Stripe webhooks by externalIds.stripe_customer_id if previously matched, then falls back to email (saving the Stripe customer ID for faster future lookups). Revenue lands on the billed account; a parent account's LTV is its own counters, not the sum of its children.
Read Activation, Cohort Retention, NRR, and Account LTV together
Inspect the Sign-ups -> Active -> Activated funnel, switch between contact-based and revenue-based retention (NRR), and drill into any company under Accounts to see member roster and rolled-up LTV.
How the Activation funnel works
Most analytics dashboards make sign-ups look healthier than they are by counting anyone who loaded /dashboard once as an active user. Apex separates passive visits from real product usage across three strict stages:
- Sign-ups: Every contact with a
createdAttimestamp fromidentify(). - Active: Only contacts who fired at least one custom event (or have
activatedAtset). Automaticpage_viewevents intentionally do not count. - Activated: Contacts whose
lifecycleStagereachesactivated,customer, orexpandedvia your product milestone or Stripe payment.

Contact retention vs NRR
Once Stripe webhooks are connected, Apex renders two side-by-side retention lenses over monthly signup cohorts:
- Contact-based retention: Share of signed-up users still active (
lifecycleStagenotchurnedordormant) across M0, M1, M2, and beyond. - Revenue-based retention (NRR):
(initial MRR + expansion - contraction - churned) / initial MRR, powered entirely by Stripe charge data.
Keep in mind that these MRR and NRR figures are built for growth and retention decisions rather than investor-grade GAAP accounting.

Account rollups & Stripe matching
Pass a nested account object inside a verified identify() call on sign-up and login with at least account.id (plus optional name, domain, plan, or seat_count), and use groups[] with parent_id for workspaces, teams, or sub-accounts. Apex creates the Account record automatically, rolls member revenue into that billed account's LTV (note: a parent account's LTV is its own counters, not the sum of its child groups), and matches Stripe webhooks by externalIds.stripe_customer_id if previously matched, then falls back to email (storing the Stripe customer ID on the first match). Stripe sk_test_ test keys are supported so you can verify everything end to end before switching to production.
What this costs on Apex
Live Apex pricing · Pay-as-you-go
Estimated Apex cost for B2B SaaS app tracking 30,000 monthly product events and Stripe billing webhooks
$0 / month
Covered by monthly free allowances.
| Apex meter / schedule | Scenario volume | Free allowance / basis | Rate | Apex cost |
|---|---|---|---|---|
Events identify() calls and custom product activation events (30,000 monthly web events) | 30,000 / mo | 1M / month | $5 per 100K events | $0 |
Account LTV rollups, Activation funnels, cohort retention, and Stripe billing sync are included with zero seat fees. History: 13 months no card, 3 years with card, 7 years once you've paid an invoice. Live pricing.
Third-party and campaign costs (not paid to Apex)
| Expense | Typical range | Notes |
|---|---|---|
| Stripe Billing webhook sync | $0/mo | Real-time invoice.paid and subscription cancellation sync included |
