PrestaShop.
The Optimads module adds the script to every page and reports orders right away. A read-only Webservice key brings in the real orders.
- PrestaShop 1.7, 8 or 9, with admin access.
- The Meta pixel selected in Optimads, under Connections. TikTok is optional.
1. The Optimads module
Download the module
In Tracking → Setup → Store installation, PrestaShop tab, press “Download the module”. It comes preconfigured for your account.
Upload it to PrestaShop
Modules → Module Manager → Upload a module, choose the zip file, then Install.
The module adds the script to every page, sends the exact order value on the thank-you page and reports orders right away.
2. The Webservice key
Turn on the Webservice
Advanced Parameters → Webservice: set “Enable PrestaShop’s webservice” to Yes and save.
Add a new key
Press “Add new webservice key”, then Generate!. Key description: Optimads. Status: Yes.
Tick only “View (GET)”
Only the View (GET) column, for:
orders, order_states, currencies, customers, addresses, countriesFor product costs in your profit, also tick
productsandcombinations. Save.Connect in Optimads
Press “Connect PrestaShop” and fill in your store address and the key. If PrestaShop is in a folder, add the folder too, for example yoursite.com/shop.
Orders come in on their own, within a few minutes. With the key we only read them, we don’t change anything.
3. Turn off the old pixels
Deactivate the Meta pixel module (for example PrestaShop Social with Facebook) and the TikTok pixel from any other module. They send the same sales with different codes, and Meta and TikTok would count them twice.
In Meta Events Manager, also turn off Tracking without code. Details: Old pixels and duplicates.
Without the module
You can add the script by hand, before </head>, on every page: with a custom code module or directly in your theme (head.tpl). You’ll find it on the PrestaShop tab, under “Without the module: the script in <head>”. Without the module, we send the order value from the server, from your store.
Common problems
“The key can’t read…”
Orders go out without the buyer’s email and phone number, so Meta has a harder time recognizing the buyer. On the key, tick the areas named in the message (View / GET) and reconnect.
“PrestaShop hasn’t returned orders”
Check that the Webservice is still on and that the key is active.