TikTok Events API

Datafly Signal delivers events to TikTok server-to-server using the TikTok Events API, replacing the client-side TikTok Pixel.

A newer TikTok Events API blueprint is also available with expanded preset coverage (B2B / SaaS in addition to Retail / Travel / Automotive). See TikTok Events API.

Prerequisites

Before configuring TikTok in Signal, you need:

  • A TikTok for Business / TikTok Ads Manager account with admin or Events Manager permissions
  • A TikTok Pixel (Web Event Source)
  • An Events API access token for that Pixel

Get your TikTok credentials

  1. Sign in to TikTok Ads Manager.
  2. Go to Assets → Events → Web Events and select your Pixel (or click Set up Web Events to create one).
  3. The Pixel Code (e.g. CXXXXXXXXXXXXXXXXX) is shown on the Pixel overview page.
  4. Open the Pixel’s Settings → Events API and click Generate access token. Copy the token immediately.

See TikTok’s Events API documentation for full details.

Configure the integration in Signal

  1. In the Management UI, go to Integrations → Add Integration.
  2. Select TikTok from the catalogue.
  3. Give the integration a name (for your reference).
  4. Choose a preset (Retail, Travel, or Automotive).
  5. Fill in the required fields:
FieldRequiredDescription
pixel_codeYesTikTok Pixel Code from Ads Manager.
access_tokenYesEvents API access token.
test_event_codeNoTest event code for validation.
  1. Choose which pipeline(s) this integration should run on.
  2. Select consent categories (defaults to marketing).
  3. Click Save.

Event mapping

Retail preset

Signal eventTikTok event
pagePageview
Products SearchedSearch
Product ViewedViewContent
Product Added to WishlistAddToWishlist
Product AddedAddToCart
Checkout StartedInitiateCheckout
Payment Info EnteredAddPaymentInfo
Order CompletedPurchase
Lead SubmittedLead

Travel preset

Signal eventTikTok event
pagePageview
Destination SearchedSearch
Listing ViewedViewContent
Listing SavedAddToWishlist
Booking StartedInitiateCheckout
Payment Info EnteredAddPaymentInfo
Booking CompletedPurchase
Lead SubmittedLead

Automotive preset

Signal eventTikTok event
pagePageview
vehicle_searchedSearch
vehicle_viewed / vehicle_comparedViewContent
vehicle_savedAddToWishlist
brochure_downloadedDownload
finance_quote_requested / trade_in_valuedSubmitForm
test_drive_bookedLead
dealer_contactedContact
service_appointment_bookedSubscribe

To customise, edit the integration’s Field Mappings in the Management UI.

Identity

Signal sends the following identity signals to TikTok, subject to consent and availability:

CapabilityFieldNotes
Hashed emailuser.emailSHA-256 (lowercase, trimmed)
Hashed phoneuser.phone_numberSHA-256 (E.164)
External IDuser.external_iduser_id or anonymous identifier (hashed)
Click IDuser.ttclidFrom the ttclid URL parameter
Browser IDuser.ttpFirst-party TikTok browser ID, self-generated if absent
Client IPuser.ipForwarded from the original request
User-Agentuser.user_agentForwarded from the original request

Hashing is performed by Signal before delivery.

This integration is gated on the marketing canonical consent category. Events without marketing consent are not delivered.

Verify it’s working

  1. Paste a test event code from TikTok Ads Manager into the integration’s test_event_code field.
  2. In the Management UI, open Pipelines → your pipeline → Live Events and trigger a test event.
  3. The event appears in Signal’s live feed and in TikTok’s Test event tab within seconds.
  4. Clear the test_event_code once validated.

Troubleshooting

Events aren’t appearing in TikTok.

  1. Confirm the integration is enabled on the pipeline.
  2. Confirm marketing consent is granted.
  3. Inspect the delivery response — code: 40001 / 40100 indicate auth issues (regenerate the token).

code: 40002. The pixel code is invalid — verify the value in TikTok Ads Manager.

See also