Source: https://usedataowl.com/docs/paddle-overlay-checkout
Markdown source: https://usedataowl.com/docs/paddle-overlay-checkout.md
Description: Capture accurate traffic source and UTM attribution when opening Paddle.js overlay or inline checkouts on your SaaS pricing page.

# Track Revenue Attribution in Paddle.js Overlay & Inline Checkouts

> Make sure you've [connected your Paddle account](/docs/connect-payment-provider) first.

With Paddle's overlay or inline checkout, pass the visit as `customData` when you open it:

```js title="checkout.js"
Paddle.Checkout.open({
  items: [{ priceId: "pri_01234567890", quantity: 1 }],
  customData: {
    datasense_session_id: window.datasense?.sessionId?.(),
    datasense_visitor_id: window.datasense?.visitorId?.(), // cookie script only
  },
})
```

Once the provider is connected and the metadata is passed, DataOwl attributes revenue to the right channels on its own. **No webhook code needed.**

> After a successful payment, you'll see it on the dashboard with its source, campaign, landing page, country and device.
