Skip to content
Menu
Skip to Content
CookieROAS

Connecting WooCommerce

Connect WooCommerce with the CookieROAS plugin or with a webhook without a plugin.

There are two ways. The plugin does more; the webhook needs no installation.

Order source, with the tiles of the shop systems

What you need

  • WooCommerce 8.5 or newer and WordPress 6.5 or newer (for the plugin)
  • Admin access to WordPress

The plugin creates the webhook for you, puts the tracking code on your store and keeps the landing page's ad click ids with the order. It also passes on whether the customer is new or returning.

You install the CookieROAS plugin from the WordPress plugin directory.

Create a connection key

In the dashboard, open Tracking › Setup › Order source, choose WooCommerce and click Create key.

You see the full key (cro_live_…) only once. Copy what you need right away. If you lose it, create a new key; an existing key keeps working.

The Key created notice after Create key

Install the plugin

In WordPress, go to Plugins › Add New, search for CookieROAS, click Install Now and then Activate.

Fill in the settings

Open WooCommerce › CookieROAS and fill in:

FieldWhat to enter
CookieROAS addresshttps://cookieroas.eu. Only change this if you host CookieROAS yourself.
Order tokenThe key from step 1 (cro_live_…). This is the Secret that Order source shows.
Measuring codeThe tracking code from Snippet & consent, or empty if your theme or tag manager already loads it.

Place a test order

Check out one order in your store. The Place a test order step on the Order source page turns green once the order is in; the page checks every 15 seconds.

The Place a test order step at Received

With a valid key, the plugin creates one WooCommerce webhook. The settings page shows that webhook's status and the number of failed deliveries in a row. Note: WooCommerce disables a webhook after 5 failed deliveries.

Way 2: a webhook without a plugin

Create a connection key

In the dashboard, open Tracking › Setup › Order source, choose WooCommerce and click Create key.

You see the full key (cro_live_…) only once. Copy what you need right away. If you lose it, create a new key; an existing key keeps working.

Add the webhook in WooCommerce

Open WooCommerce › Settings › Advanced › Webhooks › Add webhook and fill in:

FieldWhat to enter
StatusActive
TopicOrder updated (this also covers new orders)
Delivery URLThe Order source address
SecretThe key from Order source
API versionWP REST API Integration v3

The webhook details for WooCommerce, to copy

Place a test order

Check out one order in your store. The Place a test order step on the Order source page turns green once the order is in; the page checks every 15 seconds.

Only paid orders count (Processing or Completed). The order number is the order's identity. It must equal the transaction_id of the purchase on your thank-you page, so CookieROAS links the order to the purchase in the browser. An order that arrives twice counts once.

Check that it works

  • The Place a test order step on Order source says Received.
  • In Getting started, the Orders from the shop step is green, with the time of the last order.
  • The amount and currency of the test order match your store.

If it doesn't work

Read more