Skip to main content
When you finish, one Datalyr event reaches the TikTok Events API and appears in TikTok Events Manager.

Before you start

Connect TikTok

1

Open Sources

Open Sources. Find the TikTok Ads card.
2

Authorize

Select connect. Complete TikTok authorization. Approve every requested permission.
3

Pick the advertiser

Choose the advertiser account that runs the campaigns. Select set as primary.
The card reads needs primary account until you finish step 3. To change advertisers, select disconnect, then reconnect. Disconnecting clears the synced TikTok campaign data.

Create the rule

1

Open the editor

Open Conversions. Select manage rules. Select new rule.
2

Set the trigger

Fill rule name. Pick the trigger event. Pick TikTok as target platform.
3

Pick the pixel

Pick the pixel under TikTok Pixel / App. Select next.
4

Map the event

Pick the platform standard event. Set value to dynamic for revenue events. Set currency.
5

Save

Select save. Enable the rule.

Reference

We post to POST https://business-api.tiktok.com/open_api/v1.3/event/track/ in the Events API 2.0 shape. Each request carries exactly one event.

Standard events

event_source is app for iOS, Android, and React Native events. It is web for everything else, including Stripe and Shopify webhooks.

Matching fields in user

We drop an external_id that starts with $SuperwallAlias:, $RCAnonymousID:, or stripe_, because TikTok can never match those. We fall back to the distinct id instead.

Value and properties

We add a page object with url and referrer for web events. We add app and ad objects for app events.

Deduplication

We send event_id, the same UUID the browser TikTok Pixel fires with, and TikTok collapses the pair into one conversion. App events carry it too, so a retry cannot double-count.

Verify

Set a Test Events code before you select send test event. TikTok has no validate-only mode, so a test without a code creates a real billable conversion.
  1. Open Conversions. Select manage rules. Open your rule.
  2. Select send test event.
  3. Open TikTok Events Manager → Test events.
  4. Confirm the event name, value, and currency match the rule.
  5. Return to Datalyr. Confirm the rule’s sent count went up by 1.

When it does not work

Next