HeyMark

How to set up the TikTok Pixel and check that it receives events

By HeyMark · Updated

If you run TikTok ads that send people to your website, the click is all you see from Ads Manager: you don’t know whether that person bought, signed up or left. According to the About TikTok Pixel help, the TikTok Pixel is a piece of code you place on your website to share what happens there with TikTok, and it’s used to measure your site traffic, measure campaign performance and optimize your campaigns. This page walks you through creating the pixel in Events Manager, choosing between a partner connection and a manual one, and the three ways TikTok documents to check that it’s receiving events, based on the help article Set up and verify Pixel.

You need access to TikTok Ads Manager and, if you’re setting it up manually, the ability to install code on your website. The help doesn’t mention any account type, role or country requirement for creating the pixel.

Create the web data connection

  1. Log in to TikTok Ads Manager and go to Tools.
  2. Click Events Manager. (Other TikTok help articles call this entry Events, in the same Tools tab.)
  3. Click Connect Data Source.
  4. Select Web.
  5. Enter your website URL.
  6. Choose your connection method: Partner Integration or Manual Setup.

Either way, you’ll create the pixel and name it. TikTok recommends matching the name to your website or domain, and the limit is 128 characters, spaces included.

Choose between a partner and manual setup

Partner Integration takes you to a list of supported platforms, such as Shopify or Google Tag Manager. There you select the partner, create and name the pixel, and follow that partner’s steps. According to the help on partner integrations for web events, this route often requires no edits to your website’s code. Before you pick, check in that list what your platform sets up, because they don’t all do the same thing:

What the partner sets up Examples from TikTok’s list
Pixel only BigCommerce, Nuvemshop, VTEX, Wordpress
Pixel and Events API Shopify, Tiendanube, Wix, WooCommerce, Google Tag Manager
Events API only (not an option for the pixel) Salesforce Commerce Cloud, Hightouch, mParticle

Manual Setup is for when your platform isn’t on the list or you’d rather do it yourself. The help’s steps are:

  1. Select your preferred manual connection method.
  2. Create and name your pixel.
  3. Install the base code on your website, as early as possible on the page, ideally inside the head section of the HTML.
  4. Manage the configurations and settings you want.
  5. Configure your events by following the setup guide; the help links to Event Builder for this.

TikTok recommends setting up events across the whole user journey, not just the final purchase, and using the pixel together with the Events API, which sends events from your server over a server-to-server connection. This guide doesn’t cover the Events API.

Check that the pixel is receiving events

The main help lists three ways to verify your setup, and each one has its own help article.

TikTok Pixel Helper (Troubleshoot with Pixel Helper) is a Chrome extension that helps you verify and troubleshoot your pixel installation. Download the latest version from the Chrome Web Store. According to the help, it checks the pixel, the events and their parameters, and shows you the error type with a suggested fix.

Test Events is the Events Manager section for testing the pixel in the browser, according to About TikTok Events Manager. The step-by-step guide to testing pixel events requires the pixel to be installed on your website already, and describes this flow:

  1. In Events Manager, under Website Pixel, click Manage and select the pixel.
  2. Click the Test Events tab.
  3. Enter your website URL to create a QR code.
  4. Scan the QR code from the Discover tab in the TikTok app and go to your website.
  5. From your phone, take the actions on your website that should trigger events.

What you should see: your event activity appears in real time, and you can expand each event to see its details. If the events fire correctly, you don’t need to do anything else.

Diagnostics collects the issues TikTok detects, according to About Web Diagnostics. In the Tools tab, click Events and go to the Diagnostics section, which covers all your pixels. To see just one, click it in Datasets Overview and open its Diagnostics tab; a number next to the tab means there’s an active issue. Each card summarizes the issue, its severity, the affected dataset and the impacted ads, and Learn more gives you the fix instructions.

If the pixel isn’t receiving events

These are the pixel causes documented in the TikTok Pixel Helper help, with the fix it suggests:

Error it shows What triggers it What to do
Pixel code is not installed in header The code isn’t in the page header Place it as early as possible on the page, ideally inside the head section of the HTML
Invalid Pixel ID The pixel ID couldn’t be found in your system Find the correct pixel ID in Events Manager
First-Party Cookies Not Found First-party cookies aren’t enabled In Events Manager settings, go to Cookie Info and turn on first-party cookies

On cookies: according to the About TikTok Pixel help, first-party cookies are optional and third-party cookies are on by default, and pairing both types with Advanced matching improves performance.

If events don’t show up in Test Events, the testing guide says to reconfigure your pixel’s event tracking rules or event parameters, then test again. For any other alert, the Diagnostics tab has instructions for each issue.

If you also advertise on Meta, the difference between a pixel and a server-side connection is covered in Meta Pixel and Conversions API: what each one measures. And once the pixel is measuring, you can get the results out of Ads Manager as explained in how to export TikTok Ads reports. If you also want to show ads to customers already on an email or phone list, that doesn’t go through the pixel: you do it by creating a custom audience from a customer file.

Frequently asked questions

What data does the TikTok Pixel send?

According to the About TikTok Pixel help, it shares information about the ad or event that was clicked, timestamps, IP addresses (for geographic location), user agents (device and browser), cookies, and page metadata along with button clicks. TikTok recommends using TikTok Pixel Helper to review the data being sent, to confirm it follows its data sharing policies and doesn't include sensitive information.

See it on your own accounts.

Connect Instagram, TikTok, Facebook, LinkedIn or YouTube and use HeyMark free for 7 days. Mark answers in your voice, and you approve what goes out.

Keep reading