On this page
What this issue is
The TikTok Pixel is a script that sends events such as ViewContent, SubmitForm or CompletePayment to TikTok when a visitor does something on your site. A duplicate means the same event is sent two or more times for one action.
It happens in a few common ways: the base pixel code is installed twice, an event is set up both in code and in a tag manager, a thank-you page reloads and re-fires the tag, or the browser pixel and the Events API (server-side sending) both report the same conversion without a shared event_id.
- Visitor buysOne real order
- Theme pixel firesCompletePayment sent
- GTM tag firesCompletePayment sent again
- TikTok Ads ManagerShows 2 conversions
The same action reaches TikTok through two separate installs.
Why it costs you leads or sales
Duplicate events do not stop a sale, but they make TikTok think your ads work better than they do. Reported cost per result looks lower and conversion counts look higher than your real orders and leads.
Because TikTok optimises delivery using these signals, inflated or noisy data can steer budget to the wrong audiences. It also makes it hard to trust reports, compare channels or judge a campaign.
Example: 50 real orders reported as 100 by TikTok, so cost per result looks half of what it really is.
How to check if your site has it
Open the TikTok Pixel Helper
Install the TikTok Pixel Helper browser extension, then load your thank-you or order confirmation page.
Look for repeated events or pixels
The helper lists each event. The same event name twice, or two pixel instances with the same ID, points to a duplicate.
Check the Network tab
In browser developer tools, open Network and filter for
analytics.tiktok.com. Count the requests for the event after one action.Test with Events in TikTok
In TikTok Events Manager, open your pixel's Test Events tab, run a test action and see whether it appears twice.
Search the page source
View source and search for
ttq.loadand your pixel ID. More than one match means the base code is installed more than once.
How to fix it
The principle is the same everywhere: one source per event. Decide where the pixel lives (theme setting, app, tag manager or custom code), remove the others, then retest.
Check the TikTok sales channel
In Shopify admin, open Apps > TikTok and note which pixel it connects. Also check Settings > Customer events for custom pixels.
Remove manual code
Search theme.liquid for
ttq.loadand delete pasted TikTok code if the app already handles it.Remove the overlap
If Google Tag Manager also sends TikTok events, keep only one of the two.
List active plugins
Check TikTok plugins, WooCommerce integrations and header/footer script plugins for a TikTok pixel.
Check the theme
Look in theme options and header.php for pasted pixel code.
Keep one
Disable the extra plugin or delete the pasted snippet, then clear caching.
Find duplicate tags
In your container, search for TikTok tags. Look for two tags sending the same event or two base-code tags.
Fix the triggers
Make sure the event tag fires once, for example on a single confirmation-page view, not on both All Pages and a custom event.
Use Preview mode
Run Preview and confirm each TikTok tag fires once per action. Then publish.
Check custom code
Open Project settings > Custom code and also page-level settings for TikTok snippets.
Remove the repeat
Keep the base pixel in one place only, and publish.
Load the base code once
Put
ttq.loadin a shared header template, not in individual pages that also include the header.Guard against re-fires
Make sure the conversion event does not run again on reload or on a SPA route change.
If you send the same conversion from both the browser pixel and the Events API, that is allowed, but TikTok needs a matching event_id and event name on both to merge them into one. Generate the ID once and pass it to both.
const eventId = 'order-' + orderId;
ttq.track('CompletePayment', {
value: orderTotal,
currency: 'USD'
}, { event_id: eventId });
// Send the same eventId with the same event name from your server via the Events API.How to confirm it's fixed
- Pixel Helper shows each event once per action
- Page source contains
ttq.loadwith your pixel ID only once - Network tab shows a single request per event
- Test Events in Events Manager shows one event per test
- If using the Events API, browser and server events appear merged, not as two
- After a day, TikTok conversions are close to your real orders or leads
How to prevent it happening again
- Write down where the TikTok pixel is installed and who owns it
- Before adding an app, plugin or GTM tag, check whether the pixel already exists
- Use Preview mode before publishing any tag change
- Always pass the same event_id to browser and server events
- Retest the thank-you page after theme, plugin or app updates
How FunnelGuard handles this
FunnelGuard detects this today. A robot visitor runs your real journey, such as a lead form or checkout, on a schedule and records the tracking hits sent to TikTok. If the same event is sent twice for one run, it is flagged.
A failure is re-checked from a second region before one alert goes out, with a screenshot and a likely cause. Test traffic is marked (utm_source=funnelguard, fg_test=1) so you can tell it apart from real visitors. The Free plan covers 1 site and 2 journeys with daily checks and no card, and paid plans have a 3-day free trial.
Questions people ask
Why is my TikTok pixel firing twice?
Most often the pixel is installed in two places, such as a theme or app plus Google Tag Manager or pasted code. Less often, the confirmation page reloads and re-fires the event. Check the page source for more than one ttq.load and review your tag manager triggers.
How do I check if TikTok events are duplicated?
Use the TikTok Pixel Helper extension on your thank-you page and look for the same event listed twice. You can also filter the Network tab for analytics.tiktok.com, or run a test in Events Manager's Test Events tab.
Does a duplicate TikTok event affect my ad results?
Yes. It inflates conversion counts and makes cost per result look better than it is. Since TikTok uses these signals to optimise delivery, bad data can also lead to poorer targeting.
Is it okay to send TikTok events from both the pixel and the Events API?
Yes, as long as both send the same event name and the same event_id for each action. TikTok uses those to merge them into one. Without a matching event_id you risk counting each conversion twice.
How do I stop the TikTok pixel firing on page reload?
Save a marker, such as the order ID, in localStorage after sending the event and skip sending if it already exists. Also make sure your tag trigger fires on one specific confirmation event rather than every page view.
Can Shopify cause TikTok events to fire twice?
Yes. This happens when the TikTok sales channel app handles the pixel and you also pasted code into theme.liquid or added TikTok tags in Google Tag Manager. Keep only one of them.
Can I remove duplicate events that TikTok already recorded?
No, you generally cannot remove past events. Fix the source so new data is clean, and treat the affected period in your reports with caution.
Related issues
- TRK-201TikTok Pixel missingFix guide
- TRK-202TikTok wrong pixel codeFix guide
- TRK-203TikTok SubmitForm / CompletePayment missing on conversionFix guide
- TRK-206TikTok Events API dedup event_id mismatchFix guide
- TRK-207TikTok value/currency missing on CompletePaymentFix guide
- TRK-205ttclid not stored / _ttp cookie missingFix guide