SaTracking
PlatformsUPDATEDIntermediate

Set up TikTok Pixel events for a website

Create a web data connection, add its base code once, and test one event with TikTok tools.

Download for AI (.txt)

Measurement topic illustration · SaTracking

Before you start

Install the base code once, map standard events to real success conditions and confirm each event in Events Manager without duplicate page views. Check for a Pixel already installed by a partner or plugin so the base is not duplicated.

1. Install with TikTok's supported setup

TikTok supports two GTM paths: start its guided partner setup in Events Manager, which can connect existing data-layer events to generated Pixel tags, or configure Pixel in GTM using TikTok's official template. In the manual GTM route, follow TikTok's current steps: add its Pixel template, create the base tag with the account-generated Pixel code and an All Pages trigger, then create separate event tags. Use one route only. Preview the container before publishing. See TikTok's GTM Pixel setup, Events Manager flow, and event-tag instructions.

2. Send a platform event after success

For a manual browser install, TikTok uses ttq.track. This is an example Purchase after order confirmation; map the actual order values and item identifier:

js
ttq.track('Purchase', {
  value: 79.99,
  currency: 'USD',
  content_type: 'product',
  content_ids: ['SKU_EXAMPLE']
});

The TikTok base must already be installed. In GTM, configure the TikTok Pixel event tag and map the confirmed event and its variables. A generic data-layer push is only a message for GTM; it is not a TikTok event until the TikTok tag forwards it. Check TikTok's current standard event names and parameters. Event Builder and custom code are also available after base setup.

3. Test in TikTok

Use GTM Preview, TikTok Pixel Helper, Test Events, and Diagnostics. Trigger one controlled order and compare browser evidence with Events Manager. A tag appearing in Preview does not prove TikTok received it.

Gate the base and event tags according to consent. Common misses include a wrong Pixel, missing base, unpublished GTM setup, duplicate plugin and GTM installs, or an event before server-confirmed success. Pixel and Events API are separate paths; follow TikTok deduplication guidance if both send one action. Use the dashboard for browser evidence; confirm receipt in TikTok Test Events and Diagnostics.

Official references

EDITORIAL HISTORY

What changed

  1. v1.0
    Initial bilingual guide; provider setup and validation steps checked against official documentation.
  2. v1.1
    Revised both language versions with verified provider code and clearer data-layer-to-tag mapping; checked official setup and validation references.
  3. v1.2
    Clarified the two official GTM setup paths and how the base tag, event tags, and data-layer mappings relate.
MEASUREMENT SUPPORT

Need a hand with your tracking?

Nicolas Salazar works with teams on analytics, tracking plans, data quality, consent, and implementation.