Skip to content
Menu
StripeOrder sourceAvailable

Paid Stripe orders as a source
for your measurement.

Does your store or custom checkout take payment with Stripe? Then a Stripe webhook can send every successful payment to CookieROAS. That lets you compare paid orders with the purchases your measurement code has seen, even without a store platform.

What the Stripe connection does.

Checkout Sessions or PaymentIntents

With Stripe Checkout, checkout.session.completed with status paid and checkout.session.async_payment_succeeded count. With your own payment form, payment_intent.succeeded counts.

The right order number

CookieROAS picks the order ID in this order: metadata.order_id, client_reference_id, metadata.order_number or Stripe’s own ID. Put your order number in metadata.order_id and pass the same value as transaction_id.

Amount in the paid currency

The amount is the paid total in the payment’s currency, straight from Stripe. Other events are acknowledged and skipped.

How to set up the Stripe webhook.

  1. Create an order token

    Create an order token in CookieROAS under Tracking › Setup. The Stripe webhook URL comes with it.

  2. Add the endpoint in Stripe

    In the Stripe dashboard, go to Developers › Webhooks and add an endpoint with the webhook URL. Choose the Checkout events or only payment_intent.succeeded, not both.

  3. Check a payment

    Make a payment and check that the order appears in the order view with the right order number and amount.

Good to know about Stripe.

  • Choose Checkout events or PaymentIntent events. With both, the same payment arrives twice.
  • The webhook only sends the order: order number, time, amount and currency. Click IDs, consent and customer data for advertising channels come from the measurement code or have to be supplied separately.
  • A payment is not always an order. If you also use Stripe for subscriptions or invoices, discuss which payments should count.

Questions about this connection.

Which Stripe webhook events do I need?

With Stripe Checkout: checkout.session.completed and checkout.session.async_payment_succeeded. Without Checkout: only payment_intent.succeeded.

Does this work next to a store connection?

Choose one source for your orders. If you already use a WooCommerce or Shopify connection, a Stripe webhook adds the same orders again.

Is my Stripe secret used?

No. The webhook URL contains your order token; treat that URL as a password. CookieROAS needs no Stripe API key.

Have it set up for you, or start yourself.

With the Real ROAS Check we set everything up, and after 30 days you know where your money leaks away. Rather do it yourself? Start free with every advertising channel.

We set it up

The 30-day Real ROAS Check: setup, your costs configured and a report with a call. €199 one-off, money back if we find nothing.

Start the Real ROAS Check

Set it up yourself

Create a free account, then follow the guided setup. See which steps are needed for your store and advertising channels.

Create your free account

A question first? Discuss my setup