Getting Started

Track Revenue

Revlly supports first-party revenue attribution for Stripe, Lemon Squeezy, Polar, Shopify, and manual/API payments. Connect providers from Dashboard -> Profile -> Revenue. All provider credentials are encrypted with INTEGRATIONS_ENCRYPTION_KEY.

Overview

For Lemon Squeezy, Polar, and Shopify, Revlly tries to create the provider webhook automatically when NEXT_PUBLIC_APP_URL is a public HTTPS URL and the provider token has webhook write access. If automatic setup is blocked, the dashboard keeps the import connection active and shows the manual webhook endpoint to add in the provider dashboard.

Supported providers

ProviderImport pathWebhook route
StripeCheckout sessions, charges, PaymentIntent metadata/api/webhooks/stripe
Lemon SqueezyOrders API and signed order webhooks/api/webhooks/lemonsqueezy
PolarOrders API and Standard Webhooks/api/webhooks/polar
ShopifyAdmin Orders API and signed order webhooks/api/webhooks/shopify

Checkout fallback

When a customer returns with ?session_id=cs_..., the browser tracker reports the Stripe Checkout session while preserving the visitor/session attribution.

Lemon Squeezy can use ?order_id=ORDER_ID on the success URL. Polar can use ?checkout_id=CHECKOUT_ID. Shopify revenue is imported through the Admin Orders API and signed order webhooks; add the same attribution fields as cart/order attributes for visitor-level matching.