Skip to content
FLOWPILOTS

GUIDE

Why your TikTok pixel is not firing

- updated - Brad Raimer, founder

What the TikTok pixel sends, the three ways TikTok gives you to verify it, and two page-level causes that stop it before it loads.

Built on the platforms' own documentation, plus MDN for browser behavior and Shopify for store behavior, checked against each page in the works cited on the date shown there. Anything not tied to a cited platform page, including every step that opens with "Our check" or "Our reading", is FlowPilots' suggestion, not the platform's.

A TikTok pixel that stops shows in Events Manager as events that no longer arrive. This guide covers what the pixel sends, how TikTok expects you to verify it, and two things on the page that can stop it. It covers the checks TikTok's own pages describe, plus browser and reporting checks of ours. It does not cover setting up the Events API itself, or what each Pixel Helper message means.

Know what the pixel sends

According to TikTok's overview of the pixel, it collects what a standard browser makes available: which ad was clicked or which event happened, a timestamp, the IP address (for location), the user agent (for the device and browser), cookies, and page metadata and button clicks. The same page says the metadata and button-click information can also be used to personalize ad campaigns on TikTok and improve its ad delivery, and recommends Pixel Helper to check that the data sent fits TikTok's data-sharing policies and includes nothing sensitive. A site that asks before tracking should name that collection of page metadata and button clicks in its privacy notice. Third-party cookies are on by default; first-party cookies are optional. MDN's page on third-party cookies says Safari's tracking prevention protects against them by default, so our check: on a site with many Safari visitors, see whether the pixel's first-party cookies are on. On a site that asks before tracking, a first-party ad cookie waits for Allow like any other. TikTok also recommends events across the whole customer journey, from viewing a product to adding it to a cart to buying, rather than the purchase alone.

Verify it three ways

TikTok's setup guide gives three checks. The TikTok Pixel Helper extension for Chrome reads the page and reports errors. The Test Events feature in Events Manager lets you test pixel events. The Diagnostics tab in Events Manager lists the issues it finds so you can resolve them.

Before those, our browser checks tell you whether the pixel loaded at all. In order:

  1. Open the developer tools, go to the Network tab, filter for tiktok and reload. TikTok's current help does not name the request host, so confirm what you see against Test Events. No request to a TikTok address means the pixel never ran there, and the Pixel Helper will find nothing either.
  2. In the console, ttq should be an object; if it is undefined, the base code never ran on that page. A pixel added through a sandbox is the exception: Shopify's web pixels page says custom pixels run in a sandboxed frame that cannot reach the top page and app pixels run in web workers, so there the page console never shows ttq; rely on the Network check and Test Events instead.
  3. Two page-view requests for one load carrying the same pixel ID mean the base code is installed twice, for example by a partner integration and by hand; keep one. A second, different pixel ID is a second pixel, often a client's beside an agency's, so confirm who owns it before removing anything.
  4. Repeat the Network check with your ad blocker off, so your own blocker is not mistaken for a broken pixel.
  5. If requests appear but Test Events shows nothing, compare the pixel ID a request carries with the ID in Events Manager: a mismatch sends real events to a pixel you are not reading. A match means the pixel is right, so check the event call itself and the event name it sends.

The same guide recommends setting up the pixel and the Events API together. Running both means each event arrives twice, and TikTok's deduplication rules decide whether it counts once. When the pixel ID, the event name and the event_id all match, the page says TikTok will "keep the first one and discard any later ones received within 48 hours of the first event", so the pixel and the server have to send the same ID. On the pixel, the ID goes in the event_id field of the third argument to ttq.track. On the pixel's detail page, the Browser, Server and Server and Browser figures show the split; TikTok says a low Server and Browser count means the IDs are not matching.

Without an event_id, the same page describes a fallback on the pixel's first-party _ttp cookie, with first-party cookies turned on in the pixel settings and the cookie's value sent with the server event. It is narrower: it drops only a server copy that arrives within five minutes of the browser copy, and never drops a browser event.

The click travels separately. An ad click adds ttclid to the landing address, and TikTok's click ID guide says the pixel reads it from that address and stores it in a cookie. TikTok adds it to the landing page only, so a redirect that drops it, or a server event sent without it, leaves the event with no click to credit; the guide suggests keeping it for the whole visit.

Safari limits how long that cookie lasts: a ttclid the pixel stores can be gone within a day to a week, and the audit guide's Safari note lists the limits; a Safari conversion a week after the click can reach TikTok with no click ID.

Before you blame the pixel, check the page

Consent is the first. The pixel sets cookies, as TikTok's overview says, so a site that asks before tracking keeps it from loading until the visitor allows it. The Network check above shows the difference: from a browser that declined or never answered, no TikTok request means the banner held it back, not a fault.

A Content Security Policy is the second. A policy decides which scripts a page may load, and the browser blocks one from a source the policy does not allow, as MDN's guide to CSP explains, directive by directive: script-src for the script, and img-src or connect-src for the requests it sends. A blocked load shows in the browser console as a Content Security Policy error naming the address and the directive.

When events arrive and conversions look low

If Test Events shows the pixel firing and the ad reports still look thin, the fault is past the page. Our check, in order. Start in Events Manager: read the pixel's status and when it last received each event, and confirm it is the pixel the ad account you are reading uses. Then confirm the event the ad group optimizes for is the one the site sends, by name. Confirm a purchase carries a value and a currency, since without them a purchase can be counted but shows nothing of what it was worth. Compare the attribution window and the report's date range with the week before the drop. And open the setup of any event built without code in Events Manager: if it was defined by a button's text or a page address, compare that rule with the live page, since a redesign can leave it matching nothing while the pixel still fires.

Works cited

All posts