Skip to main content
The TikTok Pixel tracks what visitors do on your site after seeing or clicking a TikTok ad. If you run TikTok campaigns, this is how you measure conversions, build audiences, and let TikTok optimize your ad delivery.

Why use the TikTok Pixel

  • See which ads drive real actions. Track signups, purchases, and form submissions back to the exact TikTok ad that caused them.
  • Bring back visitors who didn’t convert. Retarget people who visited your site with follow-up ads on TikTok.
  • Reach new people like your best customers. Build custom audiences from site visitors and let TikTok find similar users.
  • Let TikTok optimize for results. The more conversion data TikTok has, the better it gets at showing your ads to the right people.

What you need

Before you start, make sure you have:
  • A TikTok Ads Manager account. Set one up at ads.tiktok.com
  • Your Pixel ID. A number that looks like 1234567890123456789
  1. Go to TikTok Ads Manager
  2. Click Assets in the top navigation, then select Events
  3. Under Web Events, click Manage
  4. Select your pixel (or create one if you haven’t). Choose Manual Setup and Standard Mode
  5. Your Pixel ID is shown at the top of the pixel details page

Add the TikTok Pixel to your project

Open the chat in your Macaly project and ask the agent:
Add the TikTok Pixel to my site. My Pixel ID is 1234567890123456789.
The agent adds the TikTok Pixel base code to your project. Once published, it starts tracking page views automatically.
Replace 1234567890123456789 with your actual Pixel ID from TikTok Ads Manager.

Verify it’s working

1

Install the TikTok Pixel Helper

Add the TikTok Pixel Helper Chrome extension. It shows which pixels are active on any page.
2

Visit your published site

Open your live Macaly project in Chrome.
3

Check the extension

Click the TikTok Pixel Helper icon in your browser toolbar. You should see your pixel listed with a PageView event.
Tracking scripts run in the editor preview too, but events will be attributed to the preview domain, not your published site. For accurate data, verify in TikTok Events Manager after deploying.

Track conversions

The pixel tracks page views by default. To measure specific actions, ask the agent to add conversion events:
What to trackExample prompt
Form submission”Fire a TikTok Pixel SubmitForm event when someone submits the contact form”
Purchase”Track purchases as TikTok Pixel CompletePayment events with the order value”
Add to cart”Send a TikTok Pixel AddToCart event when someone adds a product to the cart”
Signup”Fire a TikTok Pixel CompleteRegistration event after signup”
These events show up in TikTok Ads Manager so you can measure which campaigns drive results.
Cookie consent. The TikTok Pixel sets cookies to track visitors across sessions. If your site has visitors from the EU, UK, or other regions with privacy laws, you are responsible for ensuring a cookie consent solution is in place before the pixel loads.

Good to know

  • TikTok recommends Standard Mode (JavaScript pixel) for most setups. This is what the agent adds by default
  • Events can take a few hours to appear in TikTok Ads Manager. Use the Test Events tool to verify right away
  • You can use TikTok’s Events API alongside the pixel for more reliable tracking. Ask the agent if you need server-side events
  • If you also use Google Tag Manager, you can add the TikTok Pixel through GTM instead. The agent can help with either approach