GuidesTikTok, Reddit, Microsoft

How to set up the TikTok Pixel

The TikTok Pixel is a snippet of code that reports what people do on your site after a TikTok ad. Create it in Events Manager, install it on every page, add standard events for the actions that matter, test with the pixel helper, and pair it with the Events API for server-side data.

Updated November 16, 20266 steps5 min read

Check my tracking →

$1 today. Cancel anytime before day 7.

TikTok Pixel setup
  1. 1Open Events ManagerIn TikTok Ads Manager, find Events and create a web event source.
  2. 2Create the pixelName it and choose the setup method for your site.
  3. 3Install the codeAdd it to every page, or use your store or tag manager integration.
  4. 4Set the eventsTrack standard events such as ViewContent, AddToCart and Purchase.
  5. 5Test itUse the testing tool and the pixel helper to confirm each event.
  6. 6Add the Events APISend server events with a shared event ID.
On this page
  1. What the pixel does and where to find it
  2. Create the pixel
  3. Install it on every page
  4. Choose the events that matter
  5. Test the events
  6. Pair it with the Events API
  7. Questions

What the pixel does and where to find it

The TikTok Pixel records visits and actions on your site and sends them to TikTok. That lets you see conversions, optimize delivery toward people likely to convert, and build retargeting audiences from visitors.

You create and manage it in TikTok Ads Manager, in the Events area. When people ask where to find the pixel or the pixel ID, that is the place: open your pixel and the ID is shown with its setup details.

Treat the pixel as part of the ad, not an extra. A TikTok campaign without it can still deliver views and clicks, but it cannot learn who converts, and you cannot tell a good video from one that only entertains.

Create the pixel

In Events Manager, add a web event source and choose to create a pixel. Name it after the site, since a business with several stores needs to tell them apart. You will be asked how to install it: a store integration, a partner platform, or manual code.

If you use Shopify or a similar store platform, the integration is the simplest route. You connect the account, choose the pixel, and the platform sends events for you. Check which events it sends afterward, because defaults vary.

If you place the code yourself, you choose between a standard mode that tracks common events automatically and a developer mode where you write each event call. Standard is fine for most small accounts.

Keep one pixel per site and name it clearly. If an agency or a freelancer helps, add them as a partner with access to the pixel rather than sharing a password, so you can remove access later.

Is your tracking counting every conversion?

Runs tracking health checks on your pixels and tags. Sends a weekly performance review.

Install it on every page

The base code goes in the head of each page. In Google Tag Manager, create a custom HTML tag that fires on all pages. See Google Tag Manager basics for the container steps.

Respect consent. The pixel uses cookies and device identifiers, so load it after the visitor agrees where your region requires it. Your consent tool should classify it as an advertising tag.

Avoid installing the pixel twice. A store plugin plus a manual snippet means duplicate events, and the numbers will look better than they are. Check the pixel helper for double fires after you finish.

If your site is a single-page app, check that page changes fire events. Some frameworks load the code once, and a visit to a product page that never reloads will go unrecorded unless you trigger it.

Choose the events that matter

TikTok has standard events for common actions, such as viewing content, adding to cart, starting checkout, completing payment, submitting a form and registering. Use them rather than custom names, since standard events are understood by reporting and optimization.

Pick the event that matches your goal. A store optimizes toward purchases once it has enough of them, and moves back to add-to-cart if volume is too low. A lead business optimizes toward form submits. Send value and currency with purchases so the revenue figures work.

Start with the events that map to revenue. Many accounts track a dozen events and then optimize toward the easiest one, usually a page view. Pick the one that pays you and keep the others for diagnosis.

Test the events

Use the testing tool in Events Manager and TikTok’s pixel helper browser extension to confirm each event arrives with the right data. Walk through your own funnel on a phone and a desktop, and check that each step fires once.

If events do not appear, look for a consent tool blocking scripts, the base code missing from some pages, or the wrong pixel selected in a campaign. Compare with Reddit Pixel, which shares the same logic.

Run the same test after every site release. Tracking breaks quietly when a theme changes or a checkout is rebuilt, and the first sign is a sudden drop in reported conversions that looks like an ad problem.

Pair it with the Events API

The Events API sends conversions from your server. TikTok’s current guidance is to use the pixel and the API together, because the pixel handles browser events and the API recovers ones that browsers block. Send a shared event ID with both so TikTok can remove duplicates. The idea is explained on server-side tracking and Meta Conversions API.

The part you can hand off: Sprites reads your TikTok Ads account, and can run tracking health checks on a schedule, with changes proposed as approval cards you edit and approve. For setup of the channel itself, see how to advertise on TikTok.

Match your own order or lead records against TikTok’s reported conversions once a month. A gap of a few percent is normal, and a gap of half means something is broken or counted twice.

Questions

Where do I find the TikTok Pixel?

In TikTok Ads Manager, open Events and select your web event source. The pixel and its ID are listed there with install options.

What is a pixel ID?

A unique code that identifies your pixel. It tells TikTok which account the events from your site belong to.

Should I use the pixel or the Events API?

Both, when you can. The pixel tracks browser events and the API sends events from your server, which recovers conversions that browsers block.

Why did my TikTok Pixel stop firing?

Common causes are a site release that removed the code, a consent tool, or a plugin conflict. Test with the pixel helper and the testing tool.

Keep going

Have Sprites check your tracking

  • Runs tracking health checks on your pixels and tags
  • Reads GA4, Search Console and every connected ad account
  • Sends a weekly performance review