4based/API
Blog

TikTok Events API vs TikTok Pixel

The TikTok Pixel reports actions from the browser; the TikTok Events API reports them from your server. For 4based campaigns, the Events API is what reliably connects a subscription to a TikTok ad.

Published

Where the Pixel loses conversions

Most TikTok traffic starts in the in-app browser. When the visitor later subscribes in another browser, the Pixel has no way to link the purchase to the original click.

Sending events with the Events API

Store ttclid from the landing URL. When 4based confirms a payment, send CompletePayment for one-time purchases and Subscribe for subscriptions, including ttclid and a hashed email when consented.

Use TikTok's test event code while you set up, so you can check every event before it affects optimization.

Deduplicate Pixel and server events

If the Pixel also fires, give both the same event_id. TikTok keeps one event per action.

Key takeaways

  • Capture ttclid at landing.
  • Map payments to CompletePayment and Subscribe.
  • Test with a test event code before going live.

More articles

Build with 4based API

Ready to build?

Tell us what you want to automate, measure or build on top of 4based. Agencies, developers and automation teams all get a tailored next step from our team.