Connect Subscription management first — MRR, ARR, churn, and expansion won't appear until it's active. Skip it only if you need invoice and transaction tracking alone.
What you need
How does it work?
Create a connection in ThriveStack, then paste a single prompt into your AI coding assistant. The AI reads your billing codebase, identifies where customers are created, and adds the account identifier needed to connect revenue data with product usage — unlocking MRR, ARR, churn, and expansion analytics.
Choose your billing setup
The steps differ slightly depending on whether you use Stripe, Chargebee, or an in-house billing system.
Step 1: Connect your billing provider to ThriveStack
Open the Revenue setup page and pick a source type:
- Subscription management — Chargebee or Stripe Billing. Required for MRR, ARR, churn & expansion metrics.
- Transactions & invoices — Direct Stripe charges, API-pushed data, or CSV. Add after subscription management, or alone if you only need transaction tracking.
Start with Subscription management — MRR/ARR metrics won't appear until it's connected. Skip it only if you need invoice and transaction tracking alone.Set Up Revenue Connection
Using Chargebee and Stripe? Configure both — Subscription management first, then Transactions & invoices.
Note: Come back once your first connection is active — next step is to instrument your billing code.
Step 2: Copy the Prompt
Copy the prompt below and paste it into your AI coding assistant (Claude, Cursor, Windsurf, Copilot, etc.).
Loading...
Step 3: Paste this prompt in the repo where your billing code lives
Open your AI coding assistant in the repository where your Stripe or Chargebee billing code lives — this is usually a backend service or API server, not the frontend.
- Paste the prompt and run it
- The AI will locate your customer create/update calls and add the
group_idmetadata needed for revenue attribution - It will also generate a one-time script to update existing customers
- Read the output carefully — if there are errors, prompt the AI to fix them
Step 4: Verify
New customers
Run a sign-up flow → open Stripe / Chargebee → confirm the new customer has group_id in metadata and the value matches your product telemetry exactly.
Existing customers
Open the generated update-existing-customers-stripe script → verify the group_id fetch logic is correct → run it on one customer first → then run for all.
Step 5: Confirm data is flowing to ThriveStack
| What to check | Link |
|---|---|
| Check revenue events and data flowing into ThriveStack | Developer Tool → Revenue |
| See connection status and integration issues | Diagnostics Report |
Step 6: Go to Production
To enable Revenue Intelligence for your production environment, create a new connection in ThriveStack with your live Stripe / Chargebee site. The connection set up during this instrumentation points to your test environment and will not capture live revenue data.
Create production connection →
What did you just achieve?
Traditional revenue analytics tools require manual integration, a data warehouse, and a BI layer before you can see a single MRR chart. ThriveStack connects your billing and product data automatically.
| Feature | Traditional Revenue Analytics | ThriveStack Revenue Intelligence |
|---|---|---|
| MRR / ARR tracking | Manual + data warehouse | Automatic |
| Churn & expansion signals | Manual | Automatic |
| Revenue by account | Requires BI tool | Included |
| Revenue + product usage joined | Buy multiple tools | Included |
| Update existing customers | Manual migration | AI-generated update script |
| Full Bow-tie Journey | Buy multiple analytics tools | Included |
- MRR, ARR, churn, expansion, and contraction reports are now available.
- Out-of-box revenue reports are set up. Share them with your Finance, Sales, and RevOps teams.
- Revenue is joined with product usage at the account level — see which features drive retention and expansion in the Full Journey CRM
Note: As a bonus, you'll also receive an email notification summarising all revenue events logged and any issues to fix.