Tracking & attribution

How do I install the TikTok Pixel on my website?

Short answer

Create a Pixel in TikTok Events Manager, then install it in one of three ways: a partner integration if your site runs on a supported platform such as Shopify or WooCommerce, Google Tag Manager, or by pasting the base code into your site's header. Next, set up the events that matter, such as purchase or form submit, test them, and add the Events API for more reliable tracking.

Key takeaways

  • The Pixel lives in TikTok Events Manager; create it there before touching your website.
  • Use a platform integration where one exists; it is faster and usually sends standard events automatically.
  • Only track events that match real business steps, and pass value and currency on purchases.
  • Test with TikTok's test events tool and the Pixel Helper browser extension before spending.
  • Pair the Pixel with the Events API and deduplicate with a shared event ID for stronger data.

What do I need before I install the TikTok Pixel?

You need a TikTok Ads Manager account, ideally inside a TikTok Business Center owned by your business, and admin access to your website or its platform. If a developer or agency manages the site, involve them early so they can add code or approve an integration.

Also decide which actions you want to measure. For an online store in Kuwait that usually means product views, add to cart, checkout started and completed purchase. For a service business it might be a lead form submitted, a WhatsApp click or a booking confirmed. Writing this list first keeps the setup clean.

How do I create the Pixel in TikTok Events Manager?

In Ads Manager, open Tools and choose Events, then the web events section. Create a new web data connection and name it after your site. TikTok will ask how you want to connect: through a partner platform, by installing code manually, or through the Events API. Menu names change from time to time, so follow the current labels in your account.

Once created, the Pixel gets an ID. You will use that ID, or the generated base code, in the next step. If your business runs several websites, create a separate Pixel for each so data does not mix.

Which installation method should I choose?

Pick the simplest method your website supports:

  • Partner integration: if your site is on a platform TikTok integrates with, such as Shopify, WooCommerce, Wix, BigCommerce or others listed in Events Manager, connect through the platform's TikTok app or plugin. This usually installs the Pixel and the standard ecommerce events for you.
  • Google Tag Manager: if your site already uses GTM, add the TikTok Pixel through a tag template and fire events on the right triggers. Good for teams who change tracking often.
  • Manual code: copy the base code from Events Manager and paste it into the head section of every page, just before the closing head tag. Then add event code on the pages or buttons where each action happens. Best for custom-built sites.

How do I set up the events that actually matter?

The base code alone tracks page views. Ads optimise on events, so add the ones that reflect your business. TikTok provides standard events such as ViewContent, AddToCart, InitiateCheckout, AddPaymentInfo, CompletePayment, SubmitForm, Contact and others. Use standard events rather than custom ones where possible, because TikTok's optimisation recognises them.

For purchases, send the order value and currency with each event. That lets you see return on ad spend and use value-based optimisation later. Make sure the purchase event fires only once, on the confirmation page or after payment success, including when customers pay by KNET or card through a redirect to a payment gateway. Redirect flows are a common place where purchase events go missing.

Turn on advanced matching if it fits your privacy policy. It sends hashed customer details, such as email or phone number, which helps TikTok match conversions to users.

How do I test that the Pixel is working?

Install the TikTok Pixel Helper extension in Chrome and browse your site. It shows which Pixel and events fire on each page and flags errors. Then use the test events tool in Events Manager: enter your website address, complete a test journey and confirm each event appears with the right parameters.

Check the details, not just that something fired. Is the purchase value correct? Is the currency right? Does the event fire twice when the confirmation page reloads? After launch, watch event activity in Events Manager for a few days and compare TikTok-reported purchases with your store's real orders.

Why should I add the Events API as well?

The Pixel runs in the browser, so ad blockers, browser privacy features and slow connections can stop some events reaching TikTok. The Events API sends the same events from your server directly to TikTok, which fills many of those gaps.

Running both is the stronger setup. Give each event a shared event ID in both the Pixel and the API so TikTok can deduplicate and count it once. Many platform integrations offer the Events API as a setting; custom sites need a developer to implement it.

How Noice handles this

Noice sets up TikTok tracking before any campaign spends: Pixel and Events API, deduplicated events, purchase values that survive KNET and card redirects, and checks against your real orders. When the site itself needs work, Noice's tech team builds and fixes websites and Shopify stores, so tracking and checkout are handled by one team.

TikTok and Snapchat ads

Related questions

Can I install the TikTok Pixel without a developer?

Often yes. If your site runs on Shopify, WooCommerce or another supported platform, the TikTok integration installs the Pixel and standard events in a few clicks. Custom-built sites or complex checkout flows usually need a developer, especially for the Events API and purchase tracking.

Why are my TikTok purchases lower than my real orders?

Common causes are purchase events not firing after a payment gateway redirect, ad blockers stopping the browser Pixel, people buying on another device, and attribution window settings. Adding the Events API, fixing the confirmation page event and checking attribution settings usually narrows the gap.

Do I need a separate Pixel for each TikTok ad account?

Not necessarily. A Pixel belongs to your Business Center and can be shared with the ad accounts that need it. What you should avoid is installing several different Pixels on one website without a reason, because it creates confusing, duplicated data.

Does the TikTok Pixel affect my website speed?

The base code loads asynchronously and is light, so the effect is usually small. Sites with many tracking scripts can slow down, though. Managing tags through Google Tag Manager and removing unused ones keeps pages fast, which matters for mobile shoppers.

Updated · اقرأ بالعربية

—Contact

Your competitors hope you don't click this.

WhatsApp +965 4106 9692 Send a briefOr +965 5155 7699. Real humans. Reply within 24 hours.