TikTok pixel setup: how to create, install and test that events fire
TikTok pixel setup step by step: create it in Events Manager, install with code, Google Tag Manager or a partner integration, test in Pixel Helper and Test Events, pick events, avoid mistakes.
The TikTok pixel is code on your site that tells TikTok what a visitor did after clicking an ad: opened the page, submitted a form, registered, paid. Without it, TikTok can’t see conversions, can’t optimize the campaign for results and shows only clicks in reports. Below is a TikTok pixel setup guide, step by step: create the pixel in Events Manager, install it on a site or landing page, test that events fire, and choose which events to send. Every fact about TikTok comes from its official help center, linked in the text.
What the TikTok pixel is#
According to TikTok’s help center, the pixel is a piece of code you place on your website to share website events with TikTok. It has two parts:
- Base code — loads on every page and sends a page view.
- Event code — reports specific actions: a form submission, a registration, a purchase. TikTok warns that event code doesn’t work without the base code.
The pixel runs in the visitor’s browser. So anything that happens outside your page — a Telegram subscription, a deposit on the affiliate network’s site — the pixel won’t see. That’s what the server-side Events API is for, covered below.
How to create a TikTok pixel in Ads Manager#
The order from the “Set up and Verify Pixel” article:
- Open TikTok Ads Manager → Tools → Events Manager.
- Click Connect data source and choose Web.
- Enter your website URL.
- Choose how to connect: through a partner platform (for example, Shopify or Google Tag Manager) or manually.
- For manual setup, name the pixel — up to 128 characters; your domain is a handy name — and get the base code.
TikTok renames menu items from time to time, so check against your account. The new pixel has an ID: you’ll need it in Google Tag Manager, in your tracker and in the Events API.
How to install the TikTok pixel on your site#
Manually, with code#
Copy the base code and paste it into the <head> of every page — TikTok advises placing it as early as possible in the header. Events are added in one of two ways:
- Event Builder — no code: in Events Manager you point at the click or page that means the event.
- Custom Code — the event is called in the page code, for example when a form is submitted.
With Google Tag Manager#
TikTok describes two methods:
- From Events Manager (the one TikTok recommends): you pick Google Tag Manager as the partner, sign in to Google, choose the container and workspace — the TikTok tags, triggers and variables are created for you, and you publish the container.
- Manually in GTM: you add the TikTok Pixel template from the Template Gallery or paste the base code into a Custom HTML tag with the All Pages trigger, then set up events as separate tags.
With a partner integration#
If your site runs on a store platform or site builder, check the partner list in Events Manager — Shopify, for example: the pixel is connected through the platform’s integration rather than by pasting code. Each platform supports its own set of events — WooCommerce’s, for example, is broader than some others.
How to test that the TikTok pixel fires#
TikTok lists three tools: the Pixel Helper extension, Test Events and the Diagnostics tab. Pixel Helper has its own section below.
Test Events#
In the pixel’s Test Events tab, enter the page URL and TikTok shows a QR code. Scan it in the TikTok app and walk through the visitor’s path on your phone: events show up in Events Manager in real time. You can also open the page in a regular browser without the QR code. The same tab gives you the Test Event Code, which also tests server-side Events API events.
Pixel status: when is it “active”#
There’s no separate step to “activate” a pixel: the status changes on its own when events arrive. According to the diagnostics help article, Active means an event arrived in the last 7 days, and after 7 days without events the status switches to No recent activity. Data is processed with a delay, so a new pixel may not show its status right away.
TikTok Pixel Helper: how to check your pixel#
TikTok Pixel Helper is TikTok’s official free extension for the Chrome browser. According to TikTok’s help center, it checks how the pixel is installed, finds errors and suggests how to fix them. The extension looks at the page open in desktop Chrome, so also check the visitor’s path on a phone in Test Events.
How to install and use it#
- Install TikTok Pixel Helper from the Chrome Web Store — TikTok’s help center points there too. Use the latest version.
- Open the page that gets the traffic: a landing page or a site.
- Click the extension icon in the Chrome toolbar. It shows the pixel it found, the events the page sent and the parameters of each event.
- Walk through the visitor’s path — submit the form, click the main button — and check that the right event appeared with the right parameters.
Errors TikTok Pixel Helper finds#
The extension groups errors into three levels — pixel, event, parameters — and gives a recommendation for each. The most common ones, per TikTok’s help center:
- The pixel code isn’t in the header. Place the base code as early as possible in
<head>. - The pixel ID isn’t found. Check the ID against Events Manager — the code is often copied from another account or an old pixel.
- First-party cookies are off. Turn them on in the pixel’s cookie settings in Events Manager.
- An empty or unsupported event name. Fix the name in the page code; the list of names is in Standard Events and Parameters.
- Wrong email or phone format. Phone numbers must be in E.164 format, for example
+15551234567. valueisn’t a number. The amount goes without a currency symbol or commas:12.5, not"$12,50". The currency code must be a supported one, andcontent_typemust beproductorproduct_group.
A limitation: according to TikTok’s pixel FAQ, Pixel Helper can’t see a button click that immediately leads to another page — in TikTok’s example, the Shopify checkout button. Check such events in Test Events.
Which events to send#
The full list is in Standard Events and Parameters. For affiliate traffic the most common ones are:
| What happened | TikTok event |
|---|---|
| A key page view, a click on the main button | ViewContent |
| A form submission | Lead |
| A registration | CompleteRegistration |
| A subscription | Subscribe |
| The person contacted you | Contact |
| A purchase or deposit with an amount | Purchase |
TikTok has updated its standard events: SubmitForm is now Lead, and CompletePayment is now Purchase. Old names are converted automatically, so you don’t have to change your code. According to the same article, ClickButton and PlaceAnOrder keep working until they are retired in 2027 — for new setups TikTok recommends Lead, Purchase or ViewContent.
With Purchase, send value — the amount as a number — and currency — the currency code, such as USD. Without the amount, reports won’t show conversion value.
Events API: why use it alongside the pixel#
The pixel loses events to ad blockers and browser restrictions, and it can’t see what happens outside your page. The Events API sends events to the same pixel from a server. TikTok recommends using both to cover more events.
If the same event was sent from the browser and from the server, it has to be deduplicated. TikTok matches them by pixel ID, event name and event_id: a duplicate that arrives within 48 hours of the first one is discarded. So the browser and server events must share both the name and the event_id.
The Events API needs an access token: the pixel’s Settings tab → Generate Access Token. Only an Admin or Operator of the ad account can generate it. More on server-side events in the TikTok Events API guide.
Common mistakes#
- The code is on the wrong page. The pixel is on the home page, but traffic goes to a separate landing page. Or the code sits inside an iframe — TikTok lists this among the common reasons a pixel gets no data.
- Event code without base code. Events are called but never sent.
- Someone else’s pixel ID. The code was copied from another account or an old pixel — Pixel Helper will show that the ID isn’t found.
- Amount as a string.
value: "$12,50"instead ofvalue: 12.5— TikTok won’t accept the parameter. - Double counting. The pixel and the Events API send the same event with different
event_ids, and the report shows twice as many conversions. - A lost
ttclid. TikTok adds the click IDttclidto the ad link. If a redirect or a link shortener strips parameters, the server event will be matched to the click less accurately.
How the TikTok pixel is set up in lidvanto#
lidvanto is a traffic control center for teams and solo affiliates; in its tracker the TikTok pixel is connected without editing the landing page code. Everything below follows the help article Meta and TikTok pixels.
- Pixel. Tracker → Pixels → TikTok pixel: Pixel Code, Access token and, for testing, Test Event Code.
- Campaigns. In the Campaigns block, tick the pixel’s campaigns. Each has two independent switches: Browser and API.
- Browser. The tracker inserts the TikTok base code into the landing pages it shows itself: the code sends the page view and button clicks and gives the tracker the
_ttpcookie. On a site the tracker doesn’t show itself, you install the code the usual way — manually or through GTM. - API. The tracker sends leads, subscriptions, dialogs, registrations and deposits to the Events API, including those that arrive by postback from the affiliate network, with
ttclid, IP, browser and_ttp. The tracker savesttclidfrom the ad link without any setup. - Event rules. The Pixels section of the campaign page: tracker event → TikTok event name. Four events have fixed names: subscription is
Subscribe, dialog isContact, registration isCompleteRegistration, deposit isPurchase. For a button, choose the Landing page and click Find buttons on landing page, or enter a CSS selector. - Testing. Check pixels with a test event on the campaign tab, or the Send test event icon in the pixel row — the event appears in the Test Events tab.
With both Browser and API on, a form submission on the landing page goes both ways with the same event ID, and TikTok counts it once.
Limitations: lidvanto is a cloud service, not a script on your server; it inserts pixel code only into the landing pages it shows itself.
Frequently asked questions#
How do I create a TikTok pixel?
In TikTok Ads Manager: Tools → Events Manager → Connect data source → Web. Enter your website URL, choose a partner platform or manual setup, name the pixel and get the base code.
How do I set up the TikTok pixel with Google Tag Manager?
The easiest way is from Events Manager: pick Google Tag Manager as the partner, sign in to Google, choose the container, and the tags are created for you. Manually — the TikTok Pixel template from the Template Gallery, or the base code in a Custom HTML tag with the All Pages trigger.
How do I check my pixel with TikTok Pixel Helper?
Install the official TikTok Pixel Helper extension for Chrome, open the page that gets the traffic and click the extension icon. It shows the pixel, events and parameters, and lists errors with a suggested fix. Check the phone path in the Test Events tab.
Why is my TikTok pixel showing No recent activity?
No events have arrived from it in the last 7 days. Check that the code is on the page that gets the traffic, not inside an iframe, and that the base code loads.
Do I need the Events API if the pixel is already installed?
TikTok recommends both: the Events API delivers events the pixel loses to ad blockers and conversions that happen outside your page. To avoid duplicates, send the same event name and event_id.
Which TikTok event should I use for a form submission?Lead. It used to be called SubmitForm — TikTok converts the old name to the new one automatically.