Optimads/Info
Enter the app

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.

≈ 6 min Updated Oct. 15, 2026
Do this before you start your campaigns on the new tracking. Duplicates usually show up after a few weeks, in Ads Manager, and they are hard to untangle. The cleanup takes a few minutes.

In short

1
Old code in the theme or on the siteThe Meta or TikTok pixel pasted by hand, the tags in Google Tag Manager.
Remove
2
Pixel-only plugins and appsThe ones that only do tracking for Meta or TikTok.
Deactivate
3
Apps that also do something elseCatalog, feed, Facebook shop: they stay, you only turn off the data sharing.
Data only
4
No-code events in Meta and TikTok“Tracking without code” in Meta, “Event Builder” in TikTok.
Turn off

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

“Counts twice”In the onboarding check: the pixel sees more sales than you have in your store.
“The site has 2 Meta pixels: events may be doubled.”More than one pixel code runs on the site.
“Warning: this Pixel is already receiving events…”Shows up in Tracking after installation, when the pixel was already getting data from somewhere else.

What to turn off, by platform

Don't delete the Optimads code. Our code also loads the Meta pixel, so it contains fbq(. You can recognize it by the line “OPTIMADS PIXEL — PLEASE DO NOT DELETE OR MOVE”. Leave that one in place.
  1. 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.

  2. 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.

  3. The code in the theme

    Online Store → Themes → Edit code, in theme.liquid: search for fbq( and ttq., plus the pixel IDs. Delete those pieces.

  4. 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.

  1. Pixel plugins

    Deactivate the plugins that add the Meta or TikTok pixel, for example PixelYourSite or TikTok for WooCommerce. The Optimads plugin replaces them.

  2. 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.

  3. Code pasted by hand

    Check plugins like “Insert Headers and Footers” or WPCode, and the theme's header.php file. Remove the pieces with fbq( and ttq..

  4. Google Tag Manager

    If you have a GTM container on the site, pause the Meta and TikTok pixel tags in it.

  1. Meta Pixel in Gomag Apps

    Gomag Apps → Meta Pixel: deactivate it and remove the Conversions API token.

  2. TikTok

    If the TikTok app's “Cod Pixel” field holds the TikTok pixel, not the Optimads script, remove it.

  3. Code added to the theme

    If you also pasted pixels in the theme or in other apps, remove them from there too.

  1. Pixel apps

    Aplicații → Facebook Pixel and TikTok Pixel: deactivate them.

  2. Custom scripts

    Website → Scripturi custom: remove the scripts with Meta or TikTok pixels. The Optimads Tracking script stays.

  1. 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.

  2. The code in the theme

    In head.tpl or in a custom code module: remove the pieces with fbq( and ttq..

  1. 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.

  2. HTML Head and Google Tag Manager

    In Content → Design → Configuration → HTML Head: remove the pieces with fbq( and ttq.. The Optimads script stays. If you have a GTM container, pause the Meta and TikTok pixel tags in it.

  1. 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.

  2. Google Tag Manager

    Pause the Meta and TikTok pixel tags in your container.

In Meta and TikTok

  1. 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.

  2. TikTok: empty Event Builder

    Events Manager → your pixel → Manage → Event Builder: if there are events created there, delete them.

What you DON'T turn off. Catalogs, feeds and the Facebook shop stay on. Leave Google and email (Klaviyo, for example) alone: this guide is only for Meta and TikTok.

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.

Stuck?Send us your website address and the step you're on. We'll help you.
contact@optimads.ai