Stripe payments, matched to the ad.
Connect Stripe once and see which campaigns bring payments, renewals and refunds, with nothing to build in Stripe.
What moves, and which way.
Into DATALYR
Payments
Checkout, invoices and PaymentIntents, at their gross amount.
Into DATALYR
Subscriptions
Created, updated and cancelled, with MRR where Stripe's pricing allows it.
Into DATALYR
Refunds and disputes
Taken off net revenue for the campaign that made the sale.
From DATALYR
Conversions to your ads
Payments sent to Meta, Google, TikTok, LinkedIn and X with the ad click.
Connected in three short steps.
- 01
Connect Stripe
Open Sources, select connect on Stripe and finish Stripe's sign-in.
- 02
Carry the visitor
Checkout and Payment Links work on their own. Payments you create carry one field.
- 03
Check one payment
Make one real payment and find it in Events, matched to its visit.
What you see once it's live.
Revenue by ad
Each payment credited to its channel, campaign and ad.
Renewals credited
Later invoices stay with the ad that won the customer.
Net revenue
Refunds and lost disputes come off, won disputes go back.
For your developers, in detail.
Pass the visitor when your server creates the Stripe object. Checkout reads client_reference_id; PaymentIntents and Subscriptions read metadata.visitor_id.
Stripe in the docsFor your developer: a Checkout Session on your server
TypeScript
const datalyrStripe = datalyr.getStripeMetadata()
// { client_reference_id: 'anon_…', metadata: { visitor_id: 'anon_…' } }
const session = await stripe.checkout.sessions.create({
...datalyrStripe,
mode: 'subscription',
line_items: [{ price: 'price_123', quantity: 1 }],
success_url: 'https://example.com/success',
cancel_url: 'https://example.com/pricing',
})Questions, answered.
Contact usNo. DATALYR owns the webhook and its signing secret, so you create nothing in Stripe.
No. A Checkout Session that opens a subscription carries no value and its invoice carries the amount, so each payment counts once. A renewal adds revenue to the original ad, never a new customer.
Connect your test-mode Stripe account separately. The main connection only records live payments.
The ones your conversion rules pick, such as first payments. A refund is never sent as a purchase.
