Creating a TikTok pixel takes about 10 minutes inside TikTok Ads Manager and involves generating a small piece of tracking code, installing it on your website, and defining the actions you want to track. The pixel is what connects your ad campaigns to real visitor behavior on your site, so TikTok can report which ads drive purchases, signups, or other conversions and optimize delivery toward people most likely to take those actions.
Generate Your Pixel in Ads Manager
Log in to TikTok Ads Manager and click “Tools” in the top menu, then select “Events.” Under the Web Events section, click “Manage,” then choose “Set Up Web Events.” You’ll be prompted to create a new pixel. Give it a descriptive name (like your store or site name) and select “TikTok Pixel” as the connection method.
At this point, TikTok will ask you to choose an installation method. You have two main options: install the pixel code manually by pasting it into your site’s HTML, or use a partner integration if your site runs on a supported platform. Either way, once the pixel is created, you’ll see a unique Pixel ID displayed near the top of the pixel’s detail page. You’ll need this ID for installation.
Choose an Installation Method
Your choice depends on the platform your website runs on and how comfortable you are editing code.
- Partner integration: If your site is built on Shopify, WooCommerce, BigCommerce, or another major e-commerce platform, TikTok offers direct integrations that handle installation for you. You typically just enter your Pixel ID in the platform’s settings panel or install a TikTok app from the platform’s marketplace. This is the fastest route and requires no coding.
- Google Tag Manager: If you already use Google Tag Manager to manage tracking scripts, you can add the TikTok pixel as a new tag. Create a custom HTML tag, paste the pixel base code, and set it to fire on all pages. Event-specific tags can then be configured with triggers that match the actions you want to track.
- Manual code installation: Copy the base pixel code from Ads Manager and paste it into the
<head>section of every page on your site. If you use a CMS like WordPress without a dedicated TikTok plugin, you can add the code through a header script plugin or directly in your theme’s header template.
For most e-commerce stores, the partner integration is the simplest path. Manual installation gives you more control but requires you to place event-specific code snippets on the right pages yourself.
Set Up Events to Track Conversions
The base pixel code tracks page views automatically, but you need to define additional events if you want TikTok to know when someone adds an item to their cart, starts checkout, completes a purchase, or submits a form. TikTok supports standard events like ViewContent, AddToCart, InitiateCheckout, CompletePayment, and SubmitForm, among others.
You can set these up in two ways. The Event Builder tool inside Ads Manager lets you define events without writing code. You specify a URL or button click that represents the action, and TikTok generates the tracking automatically. This works well when the pages you want to track live on your own domain. However, it can fail if your conversion page (like an order confirmation) redirects to a different domain or a third-party URL that doesn’t match your site’s root address.
If the Event Builder doesn’t cover your situation, manual event setup is the alternative. TikTok provides a JavaScript snippet for each event type. You copy the snippet and paste it into the page where the action happens, placing it after the base pixel code. For a purchase confirmation page, for example, you’d add the CompletePayment event code and include parameters like the order value and currency so TikTok can calculate return on ad spend.
Enable Advanced Matching
By default, TikTok matches website visitors to TikTok users using their IP address and browser user agent. Advanced Matching improves this by also sending hashed (encrypted) customer data, specifically the visitor’s email address or phone number, when they’re logged into an account on your site. This data is encrypted before it leaves your site, so TikTok cannot identify customers who aren’t already TikTok users.
To turn it on, go to your pixel settings inside Ads Manager and enable the Advanced Matching toggle. If you’re using a partner integration or plugin, you’ll also need to activate it within that tool’s configuration panel. Email-based matching tends to be more reliable than phone number matching, since email addresses are more consistently collected at checkout. Advanced Matching typically increases the number of conversions TikTok can attribute to your ads, which in turn gives the algorithm better data to optimize your campaigns.
Verify Your Pixel Is Working
After installation, go back to the Events section in Ads Manager and check the status next to your pixel name. TikTok will show whether it’s receiving data. It can take up to 20 minutes for the first signals to appear.
For faster debugging, install the TikTok Pixel Helper browser extension (available for Chrome). Visit your website with the extension active, and it will show you in real time which pixel events are firing on each page, along with any errors. Common issues include the base code being placed outside the <head> tags, event snippets loading on the wrong pages, or duplicate pixel fires from having both a manual installation and a partner integration running at the same time.
Once the pixel status shows “Active” and your key events are registering correctly, you can start building ad campaigns that optimize for those events. The pixel needs some initial data to work with, so give it a few days of traffic before expecting TikTok’s optimization to fully calibrate.

