Connecting Magento 2
Install the CookieROAS module for Magento 2 and Adobe Commerce, and send every paid order to CookieROAS.
The CookieROAS module for Magento 2 sends every paid order straight to CookieROAS and puts the tracking code on your store. There is no other service in between.
The Adobe Commerce Marketplace listing is being prepared. The steps below describe how to install and configure the module once it is available through the Marketplace.

What you need
- Magento 2 or Adobe Commerce, with command line access
- Admin access to your store, and for the installation sometimes access to the server
- A CookieROAS account with your store as a site
Steps
Create a connection key
In the dashboard, open Tracking › Setup › Order source, choose Magento 2 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.

Install the module
Once the module is available through the Marketplace, use your Marketplace access keys to install it with Composer. Run these commands:
composer require cookieroas/module-connect
bin/magento module:enable CookieRoas_Connect
bin/magento setup:upgrade
bin/magento cache:flushFill in the settings
Open Stores › Configuration › Sales › CookieROAS and fill in:
| Field | What to enter |
|---|---|
| CookieROAS address | https://cookieroas.eu. Only change this if you host CookieROAS yourself. |
| Order token | The key from step 1 (cro_live_…). |
| Measuring code | The tracking code from Snippet & consent, or empty if your theme already loads it. |

Per store view, if needed
Do you have several store views, each with its own site in CookieROAS? Then fill in the settings per store view.
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 module also puts the tracking code on every page. For that, fill in the tracking code field with the code from Tracking › Setup › Snippet & consent. Leave it empty if your theme or tag manager already loads the tracking code, or it will be there twice. The module sends every paid order once, with the order number, the order time in UTC, the total in the order's currency and a SHA-256 hash of the email address, never the email address itself. If sending fails, the module retries for three days. If an order is later (partly) refunded or cancelled, the module sends it again with the new total, so CookieROAS corrects the conversion.
What the module doesn't do (yet)
Some third-party checkouts place orders in a different way. Those orders do arrive, but without click ids. Check with a test order that this works for your payment methods.
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
Connecting orders
Which order connection fits your store, and what each one needs.
Connecting advertising channels
Next step: send the purchases to Google Ads, Meta and your other channels.
Placing the tracking code
How to put the CookieROAS snippet in your store's head, with your cookie banner, your CSP and the purchase on the thank-you page.