Stripe

Integration

Connect Stripe Revenue to Your Traffic Sources

Stop guessing which marketing channels drive paying customers. Connect Stripe to DataSaaS in five minutes and see real revenue next to every traffic source, landing page, and campaign.

Start free trial

How to set up

  1. 1

    Open Revenue Settings

    Navigate to Dashboard → Settings → Revenue and select Stripe as your payment provider.

  2. 2

    Enter your Stripe API key

    Paste your Stripe Secret Key (starts with sk_live_ or sk_test_). DataSaaS uses this to fetch transactions and match them to visitors. Your key is encrypted at rest and never exposed in the browser.

  3. 3

    Pass visitor ID in checkout

    Add one line to your Stripe Checkout Session creation to pass the DataSaaS visitor ID. This links every payment to the visitor who made it.

    const session = await stripe.checkout.sessions.create({
      client_reference_id: visitorId, // datasaas_visitor_id cookie
      line_items: [{ price: 'price_xxx', quantity: 1 }],
      mode: 'payment',
      success_url: 'https://yourdomain.com/success',
      cancel_url: 'https://yourdomain.com/cancel',
    });
  4. 4

    Verify the connection

    Make a test purchase using Stripe test mode. Within seconds, the transaction should appear in your DataSaaS revenue dashboard attributed to your traffic source.

What you get

  • Revenue Per Visitor (RPV) calculated for every traffic source, page, and campaign
  • Automatic transaction matching via client_reference_id — no manual tagging
  • MRR tracking for subscriptions with new, expansion, and churned revenue segments
  • Revenue breakdowns by country, referrer, UTM campaign, and landing page
  • Supports both one-time payments and recurring subscriptions
  • Works with Stripe Checkout, Payment Links, and custom integrations

Frequently asked questions

Does DataSaaS store my Stripe API key securely?

Yes. Your Stripe Secret Key is encrypted at rest using AES-256 and is only used server-side to fetch transaction data. It is never exposed to the browser or included in any client-side code.

What if I use Stripe Payment Links instead of Checkout?

DataSaaS can match transactions from Payment Links by correlating the customer email with visitor data. For the most accurate attribution, Checkout Sessions with client_reference_id are recommended.

Will connecting Stripe slow down my checkout or affect my customers?

No. DataSaaS reads transaction data from Stripe after the payment is complete. It does not intercept, modify, or delay the checkout flow in any way. Your customers will not notice any difference.

Connect Stripe in minutes

Start your 14-day free trial. No credit card required.

Start free trial