LemonSqueezy

Integration

Track LemonSqueezy Revenue by Traffic Source

Selling through LemonSqueezy but have no idea which marketing channel drives your sales? Connect DataSaaS and see revenue attributed to every traffic source in minutes.

Start free trial

How to set up

  1. 1

    Open Revenue Settings

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

  2. 2

    Enter your LemonSqueezy API key

    Generate an API key in your LemonSqueezy dashboard under Settings → API. Paste it into DataSaaS. The key is encrypted at rest and used only for fetching order data.

  3. 3

    Pass visitor ID in checkout

    Include the DataSaaS visitor ID as custom data when creating a LemonSqueezy checkout. This links each order to the visitor who made the purchase.

    LemonSqueezy.Setup({ eventHandler: (event) => {
      if (event.event === 'Checkout.Success') {
        // Visitor ID is already passed via checkout custom data
      }
    }});
    
    // When creating checkout URL, append:
    // ?checkout[custom][datasaas_visitor_id]=VISITOR_ID
  4. 4

    Verify the connection

    Complete a test purchase on your LemonSqueezy store. The transaction should appear in your DataSaaS revenue dashboard within seconds, attributed to your current traffic source.

What you get

  • Revenue Per Visitor (RPV) for every traffic source, referrer, and campaign
  • Automatic order matching via custom checkout data — no manual CSV imports
  • Support for one-time products, subscriptions, and pay-what-you-want pricing
  • Revenue breakdowns by country, landing page, UTM parameters, and referrer
  • Track which Product Hunt launches, blog posts, or tweets drive actual sales
  • Works alongside Stripe if you use multiple payment providers

Frequently asked questions

Why use DataSaaS when LemonSqueezy has its own analytics?

LemonSqueezy's built-in analytics show total sales and basic geographic data, but they cannot tell you which traffic source or marketing channel drove each sale. DataSaaS connects the dots between your traffic and your revenue.

Does this work with LemonSqueezy subscriptions?

Yes. DataSaaS tracks both one-time purchases and recurring subscriptions from LemonSqueezy. Subscription renewals are attributed to the original traffic source, giving you true customer lifetime value by channel.

Can I use both LemonSqueezy and Stripe with DataSaaS?

Yes. You can connect multiple payment providers simultaneously. Revenue from each provider is tracked separately and combined in your total revenue views, giving you a complete picture across all sales channels.

Connect LemonSqueezy in minutes

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

Start free trial