Connect Payment Providers
DataSaaS connects your website traffic to actual revenue. When a visitor arrives on your site and later makes a purchase, DataSaaS attributes that revenue back to the original traffic source.
How revenue attribution works
- The DataSaaS tracking script assigns each visitor a unique
datasaas_visitor_idcookie - When a visitor clicks a checkout link, the script automatically injects this visitor ID into the checkout URL for supported providers (Stripe, LemonSqueezy)
- After purchase, DataSaaS matches the transaction to the visitor
- Revenue appears in your dashboard, attributed to the original source, campaign, and page
Connecting a provider
- Go to Dashboard → Settings → Revenue
- Select your payment provider (Stripe, LemonSqueezy, Polar, or Paddle)
- Enter your API key
- Click Connect
DataSaaS checks the connection immediately. If successful, you'll see a green "Connected" status with the last sync timestamp.
Supported providers
| Provider | Methods | Auto-inject |
|---|---|---|
| Stripe | Checkout API, Payment Links, PaymentIntent | Yes |
| LemonSqueezy | Checkout API, Payment Links | Yes |
| Polar | Checkout API, Checkout Links | Manual |
| Paddle | Checkout API, Overlay Checkout | Manual |
Supported currencies
USD, EUR, GBP, CAD, AUD, JPY, BRL, INR, TND. Select your preferred currency in Settings → Revenue. All revenue data in your dashboard will display in this currency.
Reading the visitor ID
For providers that don't support auto-injection, read the visitor ID from your frontend code:
function getVisitorId() {
const match = document.cookie.match(/datasaas_visitor_id=([^;]+)/)
return match ? match[1] : null
}Manual sync
Click the Sync button in Revenue settings to manually pull the latest transactions from your provider. DataSaaS also syncs automatically on a regular schedule.
See the provider-specific guides for detailed setup instructions: Stripe, LemonSqueezy, Polar, Paddle.