A webhook on Order updated
A webhook on the Order updated topic also covers new orders. Orders with the status Processing or Completed count; other statuses are acknowledged and skipped.
WooCommerce has webhooks built in. With them your store sends every paid order to CookieROAS, without an extra plugin. That lets you compare your orders with the purchases your measurement code has seen.
A webhook on the Order updated topic also covers new orders. Orders with the status Processing or Completed count; other statuses are acknowledged and skipped.
WooCommerce signs every message with the webhook secret. You use your order token as the secret, so CookieROAS can check that the message comes from your store.
The order number in the webhook must match the transaction_id that your thank-you page passes to the measurement code. Only then can CookieROAS link the order to the measured purchase.
In CookieROAS, create a new order token under Tracking › Setup. You see the token and the webhook URLs once; keep them like a password.
Go to WooCommerce › Settings › Advanced › Webhooks. Choose status Active, topic Order updated, paste the delivery URL, enter the token as the secret and choose API version WP REST API Integration v3.
After saving, WooCommerce sends a test message. Then look at a paid order in the order view and compare the amount.
Not for the order connection: the webhook is part of WooCommerce. You do place the measurement code for browser measurement in your theme or through your tag manager.
Only paid orders, recognised by the status Processing or Completed. An order paid later counts as soon as the webhook reports the new status.
Yes, if the required consent and matching data are available. They come from the measurement code or an additional connection; the webhook itself only supplies the order.
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.
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 CheckCreate a free account, then follow the guided setup. See which steps are needed for your store and advertising channels.
Create your free accountA question first? Discuss my setup