Skip to main content

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.

Overview

Revlytics auto-detects payment completions by looking for checkout parameters in the URL when a user returns to your site after a payment.

Supported providers

ProviderDetectionURL Parameter
StripeCheckout Session IDsession_id=cs_*
LemonSqueezyOrder IDorder_id=*
PolarCheckout IDcheckout_id=*

How it works

  1. A user completes a purchase on Stripe/LemonSqueezy/Polar
  2. They’re redirected back to your site with a checkout parameter in the URL
  3. Revlytics detects the parameter and fires a payment event
  4. The event is deduplicated per session using sessionStorage — so refreshing the success page doesn’t double-count

Example

If a user returns to https://example.com/success?session_id=cs_live_abc123, Revlytics fires:
{
  "type": "payment",
  "provider": "stripe",
  "stripe_session_id": "cs_live_abc123"
}

No configuration needed

Payment detection is fully automatic. Just make sure your checkout success URL is on the same domain where the Revlytics script is installed.
Combine with User Identification to attribute revenue to specific users and traffic sources.