Old pixels and duplicates.
On each ad platform, only one source sends the data: Optimads. If other code sends the same sales to the same pixel, Meta and TikTok count them twice, and your ads learn from inflated numbers.
In short
Why duplicates happen
The Optimads code in the browser and our server send the same sale with the same code, so it is counted once. A plugin, an app or old code, however, sends the same sale with a different code. The two sources don't know about each other, and to Meta they are two different sales.
The signs
What to turn off, by platform
fbq(. You can recognize it by the line “OPTIMADS PIXEL — PLEASE DO NOT DELETE OR MOVE”. Leave that one in place.Sales channels: only the data sharing
Facebook & Instagram: in the app settings, under Data sharing, turn off data sharing. The catalog and the Facebook shop stay on.
TikTok: same thing, turn off Data sharing on the pixel. The catalog stays.
Other pixels in Customer events
Settings → Customer events: turn off the Meta or TikTok pixels added by other apps or by hand. The Optimads pixel stays.
The code in the theme
Online Store → Themes → Edit code, in
theme.liquid: search forfbq(andttq., plus the pixel IDs. Delete those pieces.Tracking-only apps
Uninstall the apps that only add a pixel for Meta or TikTok. If an app also does something else you use, keep it and turn off only the pixel in its settings.
Pixel plugins
Deactivate the plugins that add the Meta or TikTok pixel, for example PixelYourSite or TikTok for WooCommerce. The Optimads plugin replaces them.
The Facebook for WooCommerce plugin
If you use it for the catalog, keep it and turn off only the pixel and Conversions API in its settings. If not, deactivate it.
Code pasted by hand
Check plugins like “Insert Headers and Footers” or WPCode, and the theme's
header.phpfile. Remove the pieces withfbq(andttq..Google Tag Manager
If you have a GTM container on the site, pause the Meta and TikTok pixel tags in it.
Meta Pixel in Gomag Apps
Gomag Apps → Meta Pixel: deactivate it and remove the Conversions API token.
TikTok
If the TikTok app's “Cod Pixel” field holds the TikTok pixel, not the Optimads script, remove it.
Code added to the theme
If you also pasted pixels in the theme or in other apps, remove them from there too.
Pixel apps
Aplicații → Facebook Pixel and TikTok Pixel: deactivate them.
Custom scripts
Website → Scripturi custom: remove the scripts with Meta or TikTok pixels. The Optimads Tracking script stays.
Pixel modules
Deactivate the Meta pixel module (for example PrestaShop Social with Facebook) and the TikTok pixel in any other module. If the Meta module also handles the catalog, turn off only the pixel and Conversions API.
The code in the theme
In
head.tplor in a custom code module: remove the pieces withfbq(andttq..
Pixel extensions
Deactivate the Meta extension (Meta Business Extension or Facebook Business Extension) and the TikTok pixel in other extensions. If the Meta extension also handles the catalog, turn off only the pixel and Conversions API.
HTML Head and Google Tag Manager
In Content → Design → Configuration → HTML Head: remove the pieces with
fbq(andttq.. The Optimads script stays. If you have a GTM container, pause the Meta and TikTok pixel tags in it.
The code in your pages
Search your site templates for
fbq(,ttq.and the pixel IDs. Remove them. The Optimads code stays the only one.Google Tag Manager
Pause the Meta and TikTok pixel tags in your container.
In Meta and TikTok
Meta: turn off “Tracking without code”
Events Manager → Data sources → your pixel → Settings → Tracking without code: switch it off. Otherwise Meta adds its own events from clicks on the site, on top of the ones we send.
TikTok: empty Event Builder
Events Manager → your pixel → Manage → Event Builder: if there are events created there, delete them.
How to find what's left
Install the Meta Pixel Helper or TikTok Pixel Helper extension in Chrome and open your site. If you see more than one pixel or the same event twice, there is still a source to turn off.
Check afterward
After a few days, look at Health and Activity. If the number of sales Meta receives is about what you have in your store, the duplicates are gone.