Make and measure

TikTok Pixel and Events API Setup

The TikTok Pixel tracks what people do on your site after an ad. The Events API sends the same events from your server so they survive ad blockers and browser limits. Run both with a shared event ID, and send CRM outcomes so TikTok learns which leads matter.

ShoutEx Team · Data checked October 3, 2026
Two sources, one count.TikTok Ads for founders · Data checked October 3, 2026
2
Event sources: Pixel and Events API
1
Shared event ID to deduplicate
CRM
Outcomes that teach the system lead quality

Do you need the TikTok Pixel and Events API?

Yes, for any conversion campaign. The Pixel captures browser events; the Events API sends them server to server. Together they give TikTok more complete data, which improves delivery and reporting. Most site platforms and tag managers have a TikTok integration. Conversion objectives are explained in how TikTok Ads work.

// Browser: TikTok Pixel event with an event ID
ttq.track('SubmitForm', {}, { event_id: 'lead-8c21' });

// Server: same event through the Events API
{ "event": "SubmitForm", "event_id": "lead-8c21",
  "user": { "email": "<hashed email>" } }

How does deduplication work?

When the same event arrives from browser and server, TikTok matches them on the event name and event ID and counts it once. Create the ID in the browser, pass it to your server with the form, and send it on both. Check deduplication in Events Manager after setup.

How do you set it up?

  • Partner integration: Shopify, WordPress and other platforms connect Pixel and Events API in a few clicks.
  • Google Tag Manager: add the Pixel through a template, and use a server container for the Events API. See Google Tag Manager setup.
  • Direct API: your developers send events from the backend.
  • CRM events: send qualified and won outcomes for lead ads.
Founder rule

No tracking, no optimization.

A conversion campaign without reliable events is a guess. Set up tracking before you spend.

What should you check?

  1. Pixel on every page, standard events on key actions.
  2. Events API sending the same events with matching IDs.
  3. Test events verified in Events Manager.
  4. Custom audiences filling from Pixel data.
  5. CRM outcomes flowing within a few days of each lead.

Use the audiences from this data in TikTok Ads targeting.

Frequently asked questions

What is the TikTok Pixel?

A JavaScript snippet that tracks visits and actions on your site for TikTok ads.

What is the TikTok Events API?

A way to send conversion events from your server to TikTok, which works around ad blockers and browser limits.

Do I need both the Pixel and Events API?

Using both, with a shared event ID for deduplication, gives TikTok the most complete data.

Can I install the TikTok Pixel with Google Tag Manager?

Yes. Use a TikTok tag template, and a server container for the Events API.

How does TikTok deduplicate events?

By matching the event name and event ID from browser and server.

Can I send CRM outcomes to TikTok?

Yes. Send qualified and won events so TikTok optimizes for leads that convert.