Skip to Content
IntegrationsConversion APITikTok Conversion API

TikTok Conversion API

Use TikTok Conversion API when Nitoriq should send selected conversions server-side to a TikTok Pixel.

In TikTok, the destination is a Pixel. Open TikTok Events Manager  before starting and confirm the pixel that should receive the server-side events. If you still need to create or verify a pixel, TikTok’s guide for setting up a web data connection  is the right place to start. TikTok also explains Events API setup  for teams that need to prepare access tokens and server-side event delivery.

Preparation

Before you start

  • Validate the click and conversion in Nitoriq first.
  • Create or confirm the TikTok Pixel in TikTok Events Manager.
  • Copy the Pixel code from the correct pixel.
  • Prepare a TikTok access token that can send Events API events for that pixel.
  • Confirm the TikTok traffic source captures the TikTok click ID, usually ttclid, into {{external_id}}.
  • Confirm Nitoriq captures the page URL for website conversions.
  • Decide which Nitoriq event types should be sent to TikTok.
  • Decide which traffic sources or campaigns should be allowed to send events.

Create a TikTok Conversion API destination

Open Conversion API

Go to Integrations, then select the Conversion API tab.

If you already have Conversion API destinations, use this table to confirm status, edit the saved destination, or send a test event.

The Conversion API table shows saved TikTok destinations, their status, and the row actions available for testing or editing.

Choose TikTok Ads

Click Add integration, then choose TikTok Ads.

Choose TikTok Ads from the Conversion API provider picker to start a TikTok destination.

Name the destination

Use a name that identifies the pixel and event goal, such as TikTok Pixel - Complete Payment or TikTok Pixel - Leads.

Confirm the Workspace field before continuing.

Select or create the TikTok Pixel

In TikTok destination, choose an existing TikTok Pixel resource or click New pixel.

The TikTok Pixel resource is reusable. It stores the TikTok Pixel code and the access-token connection Nitoriq will use when it sends events.

Use the setup form to name the destination, choose the workspace, select the TikTok Pixel, and choose event types.

Create the TikTok Pixel resource

When creating a new pixel resource, enter a clear Pixel name and the TikTok Pixel code.

Use the Pixel code from TikTok Events Manager, not the ad account ID, campaign ID, advertiser name, or pixel name.

Create a reusable TikTok Pixel resource with the pixel name, Pixel code, and access-token connection.

Create or select the TikTok access token

If the pixel does not already have a saved connection, click New connection from the TikTok access token field.

Name the connection clearly, such as TikTok production token. The optional external account fields are useful when your team wants to record which TikTok advertiser account or user the token belongs to. Paste the access token into Access token, then create the connection.

Create a TikTok access-token connection so Nitoriq can send server-side events to the selected TikTok Pixel.

Select event types

In Event Types, choose which Nitoriq conversions TikTok should receive.

Default Conversion is the base conversion event. Custom conversions are specific outcomes you created in Nitoriq, usually from the ct value on the conversion. Select only the outcomes TikTok should optimize or report on.

Map Nitoriq events to TikTok event types

In Event Type Mapping, map each selected Nitoriq event to the TikTok event type TikTok should receive.

Common choices are CompletePayment for purchases, Lead for lead capture, CompleteRegistration for signups, and Subscribe for subscription events. TikTok also supports common funnel events like ViewContent, AddToCart, InitiateCheckout, PlaceAnOrder, and SubmitForm.

Event Type Mapping controls the TikTok event type sent for each selected Nitoriq conversion type.

Review Event Data Configuration

Event Data Configuration controls the TikTok parameters Nitoriq includes in the server-side event payload.

Each row has two sides. TikTok Parameters is the TikTok field being sent. Nitoriq Token is the value Nitoriq will place into that field when the event is delivered. The default rows are locked because they cover the core deduplication, page, matching, click attribution, value, and product-context fields Nitoriq sends to TikTok by default.

Event Data Configuration maps TikTok parameters to Nitoriq tokens such as event ID, value, currency, IP address, user agent, page URL, referrer, TTCLID, and content IDs.

Save and attach traffic sources

Save the destination, then select the Traffic Sources or Campaigns that are allowed to send events to TikTok.

Start with one TikTok traffic source for the first test. Expand the scope after TikTok accepts the event.

Choose the Nitoriq traffic sources or campaigns that should send conversion events to this TikTok destination.

Send a test conversion

Trigger a known click and conversion in Nitoriq.

Inspect Nitoriq delivery status and TikTok Events Manager diagnostics. Confirm the event is accepted and that the original conversion still appears in Nitoriq reports.

What Nitoriq Sends To TikTok

When the destination runs, Nitoriq builds a TikTok Events API web event from the conversion it recorded. The important parts are:

  • event_source: set to web
  • event_source_id: comes from the TikTok Pixel code
  • event: comes from Event Type Mapping
  • event_time: comes from the Nitoriq conversion time
  • event_id: comes from Event Data Configuration when available
  • user: comes from Event Data Configuration rows whose TikTok parameters are user matching fields
  • page: comes from Event Data Configuration rows for page URL and referrer
  • properties: comes from Event Data Configuration rows that describe value, currency, content, item count, order ID, search string, or other event context

The TikTok Pixel code and access token are not event data fields. They decide which TikTok Pixel receives the event and whether TikTok accepts the request.

Nitoriq sends TikTok events as website events, so a usable page URL is important. Keep the default Page URL -> {{page_url}} row unless you intentionally want TikTok to receive a different page URL.

Event Data Configuration

Event Data Configuration is the part of the setup that decides which conversion details Nitoriq sends to TikTok.

Think of each row as a sentence: send this TikTok field using this Nitoriq value. For example, the default row TTCLID -> {{external_id}} means Nitoriq sends the external ID stored on the click as TikTok’s click identifier field.

Only choose tokens that Nitoriq actually records for the event. If a value is not captured in Nitoriq, sending that parameter will produce an empty or unhelpful signal. If you need a custom value, capture it first as a tracking field or conversion parameter, then map that token here.

Default rows

Nitoriq sends these Event Data Configuration rows by default:

Nitoriq labelTikTok keyDefault tokenSent asWhy it matters
Event IDevent_id{{clickid_txid_ct}}event rootGives TikTok a stable event ID for deduplication and diagnostics.
Currencycurrency{{payout_currency}}propertiesTells TikTok which currency the event value uses.
Valuevalue{{payout}}propertiesSends the revenue, payout, or value TikTok should record for the event.
IPip{{ip}}userGives TikTok visitor IP for event matching.
User Agentuser_agent{{user_agent}}userGives TikTok browser or device context for matching.
Page URLpage_url{{page_url}}page.urlRequired for Nitoriq’s TikTok website event payload.
Referrerreferrer{{referrer}}pageSends the referring page URL when Nitoriq captured it.
TTCLIDttclid{{external_id}}userHelps TikTok connect the server event to the original TikTok ad click.
Content IDscontent_ids{{offer_id}}propertiesSends the related offer, product, or content identifier as event context.

Nitoriq’s defaults assume your TikTok traffic source stores the TikTok click ID in {{external_id}}. That is the same value Nitoriq usually receives from the ttclid query parameter on TikTok ad clicks. If your TikTok traffic source uses a different mapping, update the TTCLID row to the token that contains the TikTok click ID.

Nitoriq normalizes and SHA-256 hashes email, phone, and external_id when you add those user fields. ttclid, ip, and user_agent are sent as the captured values.

Optional TikTok parameters

You can click Add Configuration to send more TikTok parameters. The parameters available in Nitoriq are:

Nitoriq labelTikTok keySent asWhat Nitoriq sends
Event IDevent_idevent rootA unique ID for the event. TikTok uses it to deduplicate against the Pixel.
TikTok Click IDttcliduserThe ttclid TikTok appends to the ad’s landing URL. Usually {{external_id}}. Not hashed.
TikTok Cookie IDttpuserThe _ttp cookie from the visitor’s browser, when your site captures it into a token. Not hashed.
External IDexternal_iduserYour own stable identifier for the person. Defaults to the Nitoriq visitor ID. Hashed with SHA-256 before sending unless it already arrives hashed.
EmailemailuserThe visitor’s email address, lowercased. Hashed with SHA-256 before sending unless it already arrives hashed.
Phonephone_numberuser.phoneThe visitor’s phone number with country code, sent in E.164 form (+15551234567). Hashed with SHA-256 before sending unless it already arrives hashed.
First Namefirst_nameuserThe visitor’s first name, lowercased without spaces. Hashed with SHA-256 before sending unless it already arrives hashed.
Last Namelast_nameuserThe visitor’s last name, lowercased without spaces. Hashed with SHA-256 before sending unless it already arrives hashed.
Zip Codezip_codeuserThe visitor’s ZIP or postal code, without spaces. Hashed with SHA-256 before sending unless it already arrives hashed.
CitycityuserThe visitor’s city. Sent lowercased without spaces or symbols, not hashed.
StatestateuserThe visitor’s state or region. Sent lowercased without spaces or symbols, not hashed.
CountrycountryuserThe visitor’s two-letter country code. Sent lowercased, not hashed.
IPipuserThe visitor’s IP address. Not hashed.
User Agentuser_agentuserThe visitor’s browser user-agent string. Not hashed.
LocalelocaleuserThe visitor’s language, like en-US. Usually {{language}}.
Page URLpage_urlpage.urlThe page the event happened on. TikTok requires it for web events.
ReferrerreferrerpageThe page that sent the visitor to your site.
ValuevaluepropertiesThe monetary value of the event.
CurrencycurrencypropertiesThe ISO currency code for Value, like USD.
Order IDorder_idpropertiesYour order or transaction ID.
Content IDscontent_idspropertiesProduct IDs or SKUs, sent as a list.
Content Typecontent_typepropertiesproduct or product_group.
Number of Itemsnum_itemspropertiesThe number of items in the order.
DescriptiondescriptionpropertiesA description of the product or page.
Search Stringsearch_stringpropertiesThe search query, for Search events.
Shop IDshop_idpropertiesThe ID of your shop, for TikTok Shop advertisers.
Predicted LTVpredicted_ltvpropertiesThe predicted lifetime value of the customer.

Event type choices

Choose the TikTok event type that best matches the Nitoriq conversion outcome. The TikTok options available in Nitoriq are:

PageView, ViewContent, ClickButton, Search, AddToWishlist, AddToCart, InitiateCheckout, AddPaymentInfo, CompletePayment, PlaceAnOrder, Contact, Download, SubmitForm, CompleteRegistration, Subscribe, CustomizeProduct, FindLocation, Schedule, SubmitApplication, ApplicationApproval, StartTrial, Lead, and Purchase.

You can also add a custom event name when your TikTok reporting already expects one. Use standard TikTok event names when possible because they are easier to recognize in TikTok reporting and optimization workflows.

TikTok fields in Nitoriq

TikTok Pixel

The reusable Nitoriq resource representing the TikTok Pixel.

This keeps the Pixel code and token connection reusable across destinations.

Pixel code

The TikTok Pixel code that should receive events.

Events sent to the wrong pixel code will not appear under the expected TikTok data source.

TikTok access token

The token Nitoriq uses to send server-side events to TikTok.

Without a valid token, TikTok will reject the delivery request.

Event Type Mapping

The TikTok event name sent for each selected Nitoriq conversion.

The event name affects TikTok reporting and optimization.

Event Data Configuration

The TikTok parameters and Nitoriq tokens sent in the event payload.

These fields control matching, value reporting, deduplication, page context, and diagnostics.

Traffic Sources or Campaigns

The Nitoriq scope allowed to send events to TikTok.

Scope prevents unrelated traffic from sending signals to this pixel.
Validation

TikTok delivery is working when

  • the TikTok Pixel resource is saved with the correct Pixel code
  • the TikTok access token is attached to that pixel resource
  • event types and TikTok event names match the intended goal
  • event data mappings include the fields needed for matching and value
  • the Page URL row resolves to a usable URL for website events
  • the TTCLID row maps to the token that stores TikTok click IDs
  • the traffic source or campaign scope is attached
  • a known test conversion is accepted by TikTok
  • the original conversion remains visible in Nitoriq reports

Was this page helpful?