WooCommerce.
A read-only WooCommerce key brings in the real orders, and the Optimads plugin for WordPress adds the code to every page and reports each order right away.
- Admin access to WordPress, with WooCommerce installed.
- The Meta pixel selected in Optimads, under Connections. TikTok is optional.
1. Connect your store
Create a new key
In WordPress: WooCommerce → Settings → Advanced → REST API, then Add key.
Fill it in
Description: Optimads. Permissions: Read. Press Generate API key.
Copy the keys
Consumer Key (starts with
ck_) and Consumer Secret (starts withcs_). WooCommerce shows them only once.Connect in Optimads
In Tracking → Setup → Store installation, WordPress / WooCommerce tab, press “Connect WooCommerce”. Fill in your store address and the two keys, then press “Connect the store”.
The key is read-only: we don’t change anything in your store.
If you don’t install the Optimads plugin, choose Permissions: Read/Write: that way your store also sends us cancellations. With Read and no plugin, only orders come through. Even with Read/Write, we don’t change any orders or products in your store.
2. Install the plugin
Download the plugin
On the same tab, press “Download plugin”. You get a zip file prepared for your account.
Upload it to WordPress
Plugins → Add New → Upload Plugin, choose the file, then Install Now and Activate.
Done
You see the status in WordPress under Settings → Optimads, and the events in Optimads, under Tracking → Activity.
What the plugin does
3. Turn off the old setup
Deactivate the plugins that add the Meta or TikTok pixel (for example PixelYourSite). If you use Facebook for WooCommerce for your catalog, turn off only its pixel and Conversions API. In Meta Events Manager, turn off Tracking without code. Details: Old pixels and duplicates.
Without the plugin
You can add the code by hand: on the same tab, open “Manual install, without the plugin (code in <head>)”, press “Copy code (head)” and paste it before </head>, for example with the WPCode plugin. It catches ViewContent, AddToCart and InitiateCheckout, and orders come from your connected store. The ad click is no longer saved on the order, which is why we recommend the plugin.
Common problems
“The store rejected the keys”
Check that you copied both keys in full and that the permission is Read. If it still doesn’t work, create a new key.
“Can’t access the store”
Check the address (with https://). Then, in WordPress, under Settings → Permalinks, choose any option except Plain. A security plugin (for example Wordfence) can also block the /wp-json/ address.
The plugin says it isn’t configured
You downloaded it before connecting your store. Connect the store, download the plugin again and upload it over the old one.