Documentation Index
Fetch the complete documentation index at: https://revlytics.co/docs/llms.txt
Use this file to discover all available pages before exploring further.
Connect Stripe
Create a restricted API key
Go to Stripe Dashboard → API Keys and create a new restricted key with read-only access to:
- Checkout Sessions
- Payment Intents
- Customers (optional, for enrichment)
Paste the key in Revlytics
Go to Settings → Revenue Tracking in your Revlytics dashboard. Select Stripe from the provider dropdown and paste the restricted key.
Automatic checkout detection
The Revlytics tracking script automatically detects Stripe Checkout completions. When a customer completes a purchase and is redirected back to your site with asession_id parameter starting with cs_, a payment event is fired.
Stripe Checkout setup
Make sure your Checkout success URL includes the session ID:{CHECKOUT_SESSION_ID} template variable is automatically replaced by Stripe with the actual session ID.
What’s tracked
| Data | Source |
|---|---|
| Payment amount | Stripe API |
| Currency | Stripe API |
| Customer email | Stripe API (if connected) |
| Checkout session ID | URL parameter |
| Traffic source | Revlytics session data |
| Landing page | Revlytics session data |
| UTM parameters | Revlytics session data |
Payment Links
If you use Stripe Payment Links, add theclient_reference_id parameter to include your site’s visitor ID for attribution:
Subscriptions
Recurring subscription payments are tracked automatically when using Stripe Billing. Each renewal that triggers a checkout event is captured as a separatepayment event.