Skip to content
Menu
Skip to Content
CookieROAS

Connecting OpenCart

Install the CookieROAS module for OpenCart 3.0 or 4 and send every paid order to CookieROAS.

The CookieROAS module for OpenCart sends every paid order straight to CookieROAS and puts the tracking code on your store. There is no other service in between.

You get the CookieROAS module from the OpenCart Extension Store. There is one package for OpenCart 3.0 and one for OpenCart 4.

Order source, with the tiles of the shop systems

What you need

  • OpenCart 3.0.2 or later 3.0, or OpenCart 4.0.2 or later (4.1 included)
  • Admin access to your store
  • A CookieROAS account with your store as a site

Steps

Create a connection key

In the dashboard, open Tracking › Setup › Order source, choose OpenCart 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

Upload and install the module

Open Extensions › Installer and upload the package for your OpenCart version. On OpenCart 4 the file must be called cookieroas.ocmod.zip; after the upload, click the green install button next to CookieROAS.

Then open Extensions › Extensions, choose the type Modules, install CookieROAS and click Edit.

Fill in the settings

FieldWhat to enter
StatusOn.
CookieROAS addresshttps://cookieroas.eu. Only change this if you host CookieROAS yourself.
Order tokenThe key from step 1 (cro_live_…).
Measuring codeThe tracking code from Snippet & consent, or empty if your theme already loads it.
Paid order statusesThe statuses that mean paid in your store. By default Processing, Shipped and Complete.
Cancelled or refunded statusesBy default Canceled, Refunded, Reversed, Chargeback and Voided.

The module settings, with address and key

Place a test order

Check out one order in your store and give it a paid status, for example Complete under Sales › Orders. 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

The module also puts the tracking code on every page and reports the purchase on the success page with the OpenCart order id. Leave the tracking code field empty if your theme or tag manager already loads the tracking code, or it will be there twice. The module keeps the ad click ids of the landing page (gclid, fbclid, msclkid and others) with the order, and whether the customer is new or returning. It sends every paid order with the order id, 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 tries again with the next paid order, for three days. A sent order that gets a cancelled or refunded status is sent again worth 0, so CookieROAS corrects the conversion.

What the module doesn't do (yet)

OpenCart keeps no partial refunds in the order total, so the module doesn't see them. An order paid at a status you didn't tick is not sent.

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