Attribute revenue with Paddle Overlay Checkout
Pass the Datasense session through Paddle.js when opening the overlay or inline checkout.
Make sure you've connected your Paddle account first.
With Paddle's overlay or inline checkout, pass the visit as customData when you open it:
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, Datasense 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.