You installed the TikTok Pixel and Pixel Helper shows a green check. Then Ads Manager reports fewer purchases for the week than your store recorded, and you are making budget calls on numbers that do not match.
Pasting the code is the easy part. Whether the numbers hold up depends on event setup, matching, deduplication and the privacy rules about what you may send.
The steps below follow TikTok’s current help pages, from creating the pixel in Events Manager to checking it and putting the data to work.
Get Up to $6000 Free TikTok Ad Credit
Table of Contents
Quick Answer
TikTok Pixel is a piece of code you place on your website so it can share events such as page views, add-to-carts and purchases with TikTok. You manage it in Events Manager, which you open from Tools > Events in TikTok Ads Manager. To use the Pixel:
- Create a web data connection in Events Manager and name your pixel.
- Install the base code through a partner integration (Shopify, Google Tag Manager and others) or by hand in your site’s head section.
- Set up standard events for the actions you care about, such as ViewContent, AddToCart and Purchase.
- Verify it with Pixel Helper, Test Events and the Diagnostics tab.
- Use the events to optimize campaigns, build website audiences and seed lookalikes.
Key Takeaways
- TikTok Pixel is browser-side code that shares website events with TikTok based on the events you configure, and TikTok recommends setting up events that cover the full customer journey from product view to purchase.
- You do not strictly need the Pixel to run website conversion campaigns. TikTok lists Pixel or Events API setup as the prerequisite, so either connection satisfies it, now under the Sales objective with a website destination.
- Getting through the learning phase depends on campaign results and time, not on how long your Pixel has been installed.
- TikTok lists Pixel and Events API together as its recommended setup, not as a sequence you graduate into at some spend level.
- If you send the same event through both connections, you must share a matching Event ID or TikTok will count that conversion twice.
- You are responsible for what you send. TikTok warns that URLs, UTM parameters, event names, product IDs, and custom audience names can all carry prohibited data.
What TikTok Pixel Actually Does, and What It Does Not
TikTok Pixel is a piece of JavaScript you place on your website. According to TikTok’s About TikTok Pixel documentation, it shares website events with TikTok and can be used to measure site traffic, measure ad campaign performance, and optimize campaigns to find new customers.
Most guides blur five separate jobs into one word: tracking. Keeping them apart makes every later problem easier to diagnose.
| Function | The question it answers | What breaks it |
|---|---|---|
| Measurement | Did the visitor do the thing? | Missing code, wrong trigger, consent block |
| Matching | Can TikTok tie that action to a TikTok user? | Weak identifiers, no Advanced Matching |
| Attribution | Can that action be credited to an ad? | Lost click ID, cross-device journeys |
| Optimization | Can delivery use it as a signal? | Too little event volume |
| Audience building | Can it feed a retargeting list? | Small audiences, expired lookback windows |
A Pixel event can fire perfectly and still go unattributed. That is normal, not a bug. Knowing which of the five stages failed is the difference between a five-minute fix and a week of blaming your creative.
One correction worth making early. The Pixel does not train TikTok’s algorithm on its own. It transmits event signals, and TikTok’s delivery system uses those signals. That distinction matters the moment you start troubleshooting weak performance.
What You Need Before You Install Anything
Before you install anything, check your platform, existing pixels and tags, consent setup and test plan. Most duplicate event problems come from skipping this step.
- Platform. Shopify, WooCommerce, WordPress, Webflow, or custom code. This decides your install method.
- Existing connections. Check Events Manager for a pixel someone already created.
- Existing tags. Look inside Google Tag Manager before you add a TikTok tag there.
- Consent tool. If you serve visitors in the EU, the UK, or a US state with a privacy law, your consent banner needs to control when the Pixel fires.
- Pixel only, or Pixel plus Events API. Decide now. Deduplication needs planning, not retrofitting.
- A test environment. Fire a test purchase somewhere that will not pollute live reporting.
If you want a starting draft, the TikTok Pixel setup helper turns your platform choice into a base code snippet, install steps and suggested events. Always copy the real base code and Pixel ID from Events Manager before you go live.
How to Create Your Web Data Connection
To create a TikTok Pixel, you set up a web data connection in Events Manager, which sits under Tools > Events in TikTok Ads Manager. TikTok has renamed and moved parts of this flow, so older screenshots elsewhere may not match. Per TikTok’s web data connection setup guide, the current path is:
1. Log in to TikTok Ads Manager and go to Tools.
2. Click Events to open Events Manager.

3. Click Connect Data Source.
4. Select Web.

5. Input your URL.

6. Select Partner Integration or Manual Setup as your connection method.

Two details from that same guide that people miss. Name your pixel so it matches your website or domain name, with a maximum of 128 characters including spaces. And if you choose Partner Setup, TikTok sends you to a page of supported partners, which includes Shopify and Google Tag Manager.
Use one primary browser-side pixel per website. Two browser implementations firing the same event is the most common cause of inflated conversion counts.
That said, having more than one data source is not automatically wrong. A store with a separate subdomain or a deliberate partner integration may have a good reason for it. What you must avoid is two implementations sending the same event with no deduplication, not the existence of a second asset.
How to Install TikTok Pixel on Your Website
You can install TikTok Pixel four ways: by hand, through a Shopify integration, through Google Tag Manager, or through another partner integration. Partner integrations get their own line here because they also make Events API easier.
Manual Installation
Copy the base code from Events Manager and paste it into the <head> section of the pages you want to measure. Most site builders and WordPress themes have a global header field for this.

Install the Pixel on the pages where you need measurement, which is not always every page. TikTok’s guidance on potentially prohibited data sharing tells advertisers to review each place they installed pixel code, and says not to use the Pixel on web pages where personal health or financial information may be shared. A patient portal or a loan application page is exactly where blanket install-everywhere advice gets you in trouble.
Two edge cases the base install does not handle by itself:
- Single page applications. React, Vue, and similar frameworks change the URL without a full page load, so page view events need to fire on route changes.
- Content Security Policy. If your site runs a strict CSP, you need to allow TikTok’s script and endpoints or the Pixel fails silently.
Shopify Integration
Install the official TikTok app from the Shopify App Store, connect your Ads Manager account, then pick a data sharing level. That last choice changes what you send and what you must disclose, so it deserves more than one line.
TikTok’s Shopify data sharing documentation defines the three levels:
| Level | What TikTok says it uses | Trade-off |
|---|---|---|
| Standard | TikTok Pixel only. Browser-based ad blockers can prevent it from collecting data | Simplest, least complete |
| Enhanced | TikTok Pixel, Events API, and Advanced Matching | Better coverage, more customer data shared |
| Maximum | Pixel, Events API, Advanced Matching, Shopify APIs, and In-App Shopify Checkout, which is in beta | Most complete, widest data sharing |
Maximum gives the strongest signal. It is not automatically the right choice. In the same document, TikTok tells merchants to make sure customers understand how their information is collected and to ensure their privacy policy reflects their use of customer data. Pick the level you can actually disclose and defend.
You may see this event called Complete Payment in older guides, partner platforms, or your own historical setup. That is not a current alternative name. TikTok renamed CompletePayment to Purchase for web, offline, and CRM channels. Existing CompletePayment events keep working and auto-convert in reporting, but any new setup should use Purchase. Once the connection is live, a guide to TikTok ads for Shopify covers the campaign side.
Google Tag Manager
GTM suits sites that already manage several tags centrally. Create a Custom HTML tag, paste the base code, set the trigger to All Pages, then use Preview mode before you publish.

GTM is an option, not a best practice. If TikTok is your only tracking tag, manual installation is simpler and has fewer failure points. Choose based on how many tags you manage, not on which method sounds more advanced.
Partner Integrations
Partner integrations change the cost of server-side tracking. TikTok’s data connection setup methods documentation says an Events API setup through a commerce or data partner can take less than an hour, while a direct API build needs in-house developers or others with technical skills.
So the idea that Events API always needs a developer is only true for direct builds. On a supported commerce platform you may be an hour away from server-side events with no engineering ticket at all.
Which TikTok Pixel Events Should You Track?
The base code collects some information on its own, including timestamps, IP address, and user agent, but it does not define your business’s conversion actions. The Pixel shares that information based on the events you have set up, so configuring optimization-relevant events is where meaningful measurement actually begins.

Here are the events most advertisers use, taken from TikTok’s Standard Events and Parameters documentation and its May 2025 naming update.
| Event | Event code | What it measures | Typical goal |
|---|---|---|---|
| View Content | ViewContent | A visitor views a specific page | Sales, Lead |
| Add to Cart | AddToCart | A visitor adds an item to the cart | Sales |
| Initiate Checkout | InitiateCheckout | A visitor proceeds to checkout | Sales |
| Add Payment Info | AddPaymentInfo | A visitor adds payment info at checkout | Sales |
| Purchase | Purchase | A visitor makes a purchase | Sales |
| Lead (formerly Submit Form) | Lead | A visitor submits a form | Lead |
| Complete Registration | CompleteRegistration | A visitor signs up or registers an account | Lead |
| Start Trial | StartTrial | A customer begins a free trial | Lead |
| Search | Search | A visitor searches | Sales, Lead |
TikTok’s full list is longer. It also includes Add to Wishlist, Subscribe, Contact, Schedule, Download, Find Location, Submit Application, Application Approval, and Customize Product. Check the current list before you build anything unusual.
Watch for old names if you inherited a setup. Since May 1, 2025, TikTok’s update to standard events renamed SubmitForm to Lead and CompletePayment to Purchase, and soft-deprecated PlaceAnOrder and ClickButton, recommending Purchase, Lead, or ViewContent instead for new setups.
Old SubmitForm and CompletePayment code keeps working, and TikTok says it will support those names indefinitely while showing them as Lead and Purchase in reporting. ClickButton and PlaceAnOrder are different: they keep running until they retire in 2027, and historical data does not transfer if you switch, so move them once rather than renaming repeatedly. New pixels should use Lead and Purchase.
Send Parameters, Not Just Event Names
A Purchase event with no value attached still counts as a conversion, and TikTok can still optimize toward it and build audiences from it. What you lose is the revenue figure itself.
TikTok’s recommended parameters for Add to Cart, Purchase, and View Content are content_type, quantity, description, content_ids, currency, and value. Search takes search_string. Start Trial takes content_ids, currency, and value.
Pass value and currency on every commerce event. Without them, TikTok has no transmitted revenue figure to use for value-based optimization or accurate ROAS reporting inside Ads Manager, even though the conversion itself is still counted.
Custom Events Are Not the Same as Automatic Signals
Older guides list scroll depth and button clicks as custom events. That is wrong, and it matters if you go looking for them in the wrong place.
TikTok collects some of that on its own. Its Pixel overview says the code also shares page metadata, structured microdata, page performance data and button clicks, which TikTok plans to use for setup recommendations and ad delivery.
Custom events are different. They are events you define yourself, for funnel steps that no standard event covers.
One limit matters here. TikTok’s documentation on data connections for website optimization states that custom events are available for reporting and audience creation but are not currently supported for optimization. If you want to optimize a campaign toward an event, it has to be a standard event.
Which Event Should You Optimize Toward?
Optimize toward the event that reflects your business goal and has enough volume to be learnable. If Purchase volume is too thin, testing a higher-volume event such as Add to Cart is a reasonable strategy while you build data.
Be clear that this is a practitioner strategy, not a TikTok rule. TikTok does not require you to collect a set number of Add to Cart events before you may optimize for Purchase. The relevant published number belongs to campaign delivery, not to the Pixel itself.
TikTok’s Learning Phase page says volatility typically starts to decline after about 25 campaign results or 7 days. It is a guide, not a hard gate, and it has nothing to do with how long your Pixel has existed or how much history it has collected. Getting there faster is a budget, offer, and creative problem as much as a tracking one.
Advanced Matching and Cookies
Advanced Matching and cookies decide how many of your website events TikTok can tie back to people on TikTok, so they shape match rates more than the install method does.
TikTok’s Advanced Matching for Web documentation explains that Advanced Matching links customer information such as email and phone number with actions people take on your website, across Pixel, Events API, or partner platforms. It comes in two forms.
Automatic Advanced Matching identifies form fields on pages where the Pixel is installed and hashes what visitors enter there. Manual Advanced Matching gives you explicit control over which fields you pass.
TikTok recommends using both together, with one important exception. For regulated or sensitive industries such as financial services or healthcare, TikTok suggests using Manual Advanced Matching instead of automatic, so you control exactly what leaves your site.
Availability of these controls can vary by implementation method, so check the settings a given partner integration actually exposes before assuming both options are on the table.
Skip advice that tells you to hash everything with SHA-256 yourself. For Automatic Advanced Matching, TikTok hashes qualifying information in the browser using SHA-256 before it reaches TikTok servers.
What you control is format. Email should be lowercase and trimmed of whitespace. Phone numbers should use E164 format. Bad formatting is one of the most common Pixel Helper errors.
Cookies are the other half of matching. The Pixel documentation says performance improves when first- and third-party cookies are paired with Advanced Matching.
TikTok’s cookie documentation says both first- and third-party cookies are on by default with the Pixel, though you can switch first-party cookies off, and breaks the specifics down by cookie:
| Cookie | Domain | Type |
|---|---|---|
_ttp | Your website domain | First-party |
_ttp | .tiktok.com | Third-party |
ttcsid | Your website domain | First-party |
ttclid | Your website domain | First-party |
_pangle | analytics.pangle-ads.com | Third-party |
Every cookie in that table expires 13 months from being set or last used.
Check your first-party cookie setting. TikTok’s Diagnostics flags this directly and offers an action button to enable it when it is off.
TikTok Pixel vs Events API: Do You Need Both?
The Pixel fires from the visitor’s browser. According to TikTok’s Events API documentation, the Events API is a server-to-server connection that shares actions across web, app, and offline channels, with control over what data you share.
| Factor | TikTok Pixel | Events API |
|---|---|---|
| Where it runs | Visitor’s browser | Your server |
| Setup time | Pixel partner: often less than a few minutes. Manual: someone with technical skills | Commerce or data partner: can be under an hour. Direct API: in-house developers |
| Ad blockers | Can be blocked | Not directly dependent on browser ad blockers, though other data-loss causes still apply |
| Data control | Fixed by what fires in the browser | Granular control over what you share |
| Typical fit | Simple browser-side implementation | Recovering missed conversions, sharing data across web, app, and offline channels |
Note what that same Events API page says: Pixel or Events API setup is a prerequisite for the Web Conversions objective, which TikTok’s Sales objective page says has merged with Product Sales into a single Sales objective in a phased rollout. So the common claim that you cannot run conversion campaigns without the Pixel is too absolute. You need a web data connection. The Pixel is one way to have one.
TikTok also does not tell you to start with the Pixel and add Events API later. It lists Pixel and Events API together as recommended, because the two are designed to be compatible and using both creates a more reliable connection for measurement, delivery, and audience creation.
Events API has no spend threshold. If you are on a supported platform, adding it is a short job. If you need a direct build, weigh that against how much your budget decisions depend on accurate conversion counts. For implementation, see how the TikTok Events API works.
Deduplication: The Rule That Protects Your Numbers
Send the same event through both connections without deduplication and you will count conversions twice.
TikTok’s event deduplication documentation sets out the mechanics:
- Share Event ID as a parameter through both Pixel and Events API. TikTok keeps the first event it receives.
- Deduplication is not required if you send different events through each connection with no overlap. Sending Add to Cart through the Pixel and Purchase through Events API is fine.
- For overlap between Pixel and Events API, TikTok merges or deduplicates events with identical event and
event_idparameters arriving after 5 minutes and within a 48-hour window from the first event.
Note what this means for troubleshooting. A missing event_id does not stop an event from recording. It stops duplicates from being merged. Those are different failures with different fixes.
What You Must Not Send to TikTok
TikTok’s prohibited data notice says advertisers may not share information about children, health or financial information, or other prohibited categories, and that checking what your Pixel sends is your job.
TikTok tells advertisers to review their Pixel or Events API integration to confirm they are not sharing prohibited data from anywhere on their site. That review covers URLs from pages where the Pixel is installed, UTM parameters, and the names you chose for custom audiences and custom events.
Its guidance also names forms, event names, product names, product IDs, custom properties, and content names as places prohibited data hides, and recommends working with your legal team on the review.
Practical rules that follow:
- Do not put personal information in event names or custom audience names.
- Audit your UTM parameters. A UTM string can carry information from previously viewed pages. If you build links by hand, a guide to TikTok UTM tracking shows a naming convention that keeps this clean.
- Keep the Pixel off pages that handle health or financial information.
- Never pass government ID numbers or financial account numbers in any parameter.

On consent, TikTok is direct. Its cookie configuration guidance states that advertisers are required to provide notices and obtain consent as applicable laws require, and to keep their website and privacy practices compliant.
Where you lack developer resources, TikTok suggests using a third-party consent management platform. A tool like Clym can help implement the banner and regional consent logic, but you are still responsible for configuring it correctly and for meeting whatever laws apply to your visitors. No CMP makes a Pixel compliant on its own.
Be wary of the claim that TikTok stores no raw personal data. That is a statement about TikTok’s internal processing, and no marketing guide is in a position to make it. Read the TikTok Business Products (Data) Terms if you need certainty on that point.
How to Verify Your TikTok Pixel Is Working
You verify a TikTok Pixel with three tools: Pixel Helper, Test Events and the Diagnostics tab. Use all three, because each catches a different class of problem.
TikTok Pixel Helper
TikTok Pixel Helper is a Chrome extension that checks any page for TikTok pixels and shows which events fire. TikTok’s Pixel Helper documentation lists the errors it surfaces, including first-party cookies not found, empty or invalid event names, invalid email format, and phone numbers that do not match E164 format.
A green check means detected. It does not mean correct. It cannot tell you whether the value is right, whether the event fires on the correct trigger, or whether deduplication works.
Test Events
Test Events in Events Manager confirms individual events fire with the right parameters in real time. Run a real journey: product page, add to cart, checkout, purchase.
Diagnostics Tab
Diagnostics catches the slow problems. TikTok’s Web Diagnostics documentation explains that the tab identifies issues such as missing parameter data or content ID, and that each card shows the issue, its severity, the affected dataset, and impacted ads, with an action item to resolve it.

Troubleshooting: Find the Symptom First
When a TikTok Pixel seems broken, the cause is usually one of six separate failures. Match the symptom to the check.

No pixel detected on the page. Confirm the code sits in the <head>. Check that your GTM container is published and the trigger is live. Check whether your consent banner is blocking the script. Check your CSP.
Pixel detected, but one event never fires. The base code is fine and the event configuration is not. Check the trigger conditions and your Event Builder setup. On a single page application, check whether route changes fire the event at all.
The same event fires twice from one action. Look for a second browser-side implementation first, usually a manual pixel left in the theme alongside a partner app or a GTM tag. If you run Pixel and Events API together, check whether both send that event with a matching event_id.
Events fire but nothing is attributed to your ads. This is a matching and attribution problem, not an install problem. Check Advanced Matching, first-party cookies, whether ttclid survives your checkout redirects, and your attribution window.
Low match rates. Add Advanced Matching and fix parameter formatting. Lowercase emails, E164 phone numbers.
Events look fine but delivery is poor. Stop looking at the Pixel. Check event volume against what TikTok’s Learning Phase documentation says, about 25 results or 7 days, then look at your optimization event, budget, audience, and creative.
How to Use Pixel Data to Improve Your Campaigns
You use Pixel data to improve campaigns in three ways: website audiences for retargeting, lookalike audiences built from them, and optimization toward the events you track.
Build Website Audiences
In Ads Manager, go to Audiences, create a Custom Audience, and select Website Traffic. Build segments from the events you configured: product page viewers, cart abandoners, past purchasers.
Watch the targeting threshold here, since it is separate from the lookalike threshold below. TikTok’s Website Traffic audience guide states that you need a minimum audience size of 1,000 to target Custom Audiences in an ad group. If a segment sits below that, widen the lookback window or combine event types rather than launching a campaign that cannot deliver.
TikTok’s Website Traffic overview adds that you can hold up to 400 custom audiences in an account at one time, built from both attributed and non-attributed events.
Create Lookalike Audiences
TikTok’s About lookalike audiences page sets the minimum source audience size for lookalike creation at 1000, the same number you need to target a Custom Audience in an ad group.
The page sets out three size options. Narrow finds users with the highest similarity to your source but produces a smaller audience, Broad increases reach with moderate similarity, and Balanced sits between them.
Narrow is not automatically better. It trades reach for similarity, which can starve a campaign of volume. Test the size setting the way you test creative, and check your seed size with the lookalike audience builder before you commit budget.
Run Retargeting Campaigns
Warm audiences already know your product, so your creative can answer objections instead of introducing the brand. Retargeting can produce stronger conversion efficiency because the audience has already shown intent, but it can also carry higher CPMs and higher frequency, because the pool is small. Both outcomes are normal. Judge it on cost per conversion, not on CPM alone.
Lookback windows are a test variable, not a setting with one correct answer. Match them to your sales cycle: shorter for impulse products, longer for considered purchases. If you are deciding where to spend first, compare custom and lookalike audiences.
If you are still planning your first campaign budget, TikTok and its partners periodically run ad credit promotions. Eligibility, amounts, and regions change often, so read the current terms before you build a plan around one. You can check what is live on the TikTok ad credit offer page.
Frequently Asked Questions
How do I find my TikTok Pixel ID?
Log in to TikTok Ads Manager, go to Tools, then Events, to open Events Manager. Click your pixel in the datasets list to see its ID beside the name. The same ID also sits inside the base code as the pixel code value. Keep it handy, since partner integrations and Events API setups both ask for it.
Is TikTok Pixel free to use?
Yes. Creating and installing a TikTok Pixel costs nothing, and you do not need an active ad budget to generate one. You need a TikTok Ads Manager account, which is also free to open. You may still spend time or money on developer work, a tag manager setup or a consent management platform, plus whatever you spend on ads.
Can I run conversion campaigns without a Pixel?
You need a web data connection, but not specifically the Pixel. TikTok states that Pixel or Events API setup is a prerequisite for website conversion campaigns, now run under the Sales objective with a website destination, so either one satisfies the requirement. The Pixel is often the simpler start, but an Events API build or a partner integration works on its own too.
How far back can website audiences look?
TikTok offers several lookback windows inside the audience builder rather than publishing one fixed maximum in its Website Traffic help article, which says only that various lookback windows are provided. Choose based on your sales cycle and check the current options in Ads Manager. A very long window dilutes a warm audience with people who no longer remember you.
Does installing the Pixel early shorten the learning phase?
Installing early lets you collect event history and fill audiences before your first campaign runs, which is worth doing. It does not guarantee a shorter learning phase. TikTok’s Learning Phase documentation says volatility typically starts to decline after about 25 campaign results or 7 days, which depends on your budget, offer and delivery, not on how long your Pixel has existed.
What is the difference between the Pixel and Pixel Helper?
The Pixel is the tracking code on your website. Pixel Helper is a Chrome extension that inspects any page and reports which pixels and events it detects, along with specific errors. One collects data, the other checks that your collection is set up correctly. Pixel Helper cannot validate whether your business logic or conversion values are right.
Wrapping Up
If you do one thing after reading this, check what you already have. Open Pixel Helper on your own checkout, then open the Diagnostics tab. Duplicate installs, missing value or currency parameters and a first-party cookie switched off are common problems worth ruling out first.
Fix what Diagnostics shows before you add Events API, since a broken browser setup carries its errors into the server connection. Then let the data build up for a while and review it monthly instead of rebuilding the setup every couple of weeks.
