MerchantPro.
You create an API user in MerchantPro and give it to us. We add the tracking script to your store, and we read the real orders through the API.
- Admin access to MerchantPro.
- The Meta pixel selected in Optimads, under Connections. TikTok is optional.
1. The API user
Add an API user
In MerchantPro: Settings → API and webhooks, under API users, press Add API user. Name: Optimads.
Give it permissions
Area Permission Why Orders Read only We read the real orders. Website Read and write We add the tracking script ourselves. Catalog Read only Optional: product costs in your profit. Everything else stays without access.
Copy the keys
API User and API Secret.
Connect in Optimads
In Tracking → Setup → Store installation, MerchantPro tab, fill in your store address, the API User and the API Secret.
Store address = the domain your customers see, not the address of the admin panel.
2. The script in your store
We add it automatically, named Optimads Tracking, in Website → Custom scripts. You don’t have to do anything.
Optimads says it isn’t allowed to add the script
On the API user, set Website to “Read and write” and save. Then press “Add automatically” in Optimads.
I want to add it by hand
Copy the code from the MerchantPro tab. In MerchantPro: Website → Custom scripts → Add script, choose “Inline javascript/HTML snippet”, Location: Header, Site pages: All.
3. Orders right away (optional)
Without this step, orders still come in, within a few minutes. With webhooks, they arrive immediately.
Open Webhooks
Settings → API and webhooks → Webhooks → Add webhook.
One per event
Add one webhook for each of these:
order.created,order.payment_completed,order.shipping_cancelled. Copy the address from the MerchantPro tab in Optimads (it’s personal, for your store).
4. Turn off the MerchantPro pixels
Apps → Facebook Pixel and TikTok Pixel: deactivate them. 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.