Skip to content
FunnelGuard

Fix guide by FunnelsGuard

TikTok event fires twice: how to find and fix duplicates

TRK-204Medium impactDetectedBy FunnelGuardPublished Updated
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.

How one purchase becomes two
  1. Visitor buysOne real order
  2. Theme pixel firesCompletePayment sent
  3. GTM tag firesCompletePayment sent again
  4. 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.

Reported vs real conversionsExample numbers
Reported vs real conversions (example)Real orders: 50 conversions; TikTok reported: 100 conversions0387750100Real ordersTikTok reportedconversions

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

Check for duplicate TikTok events
  1. Open the TikTok Pixel Helper

    Install the TikTok Pixel Helper browser extension, then load your thank-you or order confirmation page.

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

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

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

  5. Search the page source

    View source and search for ttq.load and 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.

Remove the duplicate by platform
  1. 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.

  2. Remove manual code

    Search theme.liquid for ttq.load and delete pasted TikTok code if the app already handles it.

  3. Remove the overlap

    If Google Tag Manager also sends TikTok events, keep only one of the two.

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.

Browser event with an event_id for deduplicationjavascript
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

Confirmation checks
  • Pixel Helper shows each event once per action
  • Page source contains ttq.load with 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

Prevention habits
  • 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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.