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.
Before you start
- Validate the click and conversion in Nitoriq first.
- Create or confirm the TikTok Pixel in TikTok Events Manager.
- Copy the
Pixel codefrom 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.
Choose TikTok Ads
Click Add integration, then choose TikTok Ads.
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.
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 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.
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.
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.
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.
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 towebevent_source_id: comes from the TikTok Pixel codeevent: comes fromEvent Type Mappingevent_time: comes from the Nitoriq conversion timeevent_id: comes from Event Data Configuration when availableuser: comes from Event Data Configuration rows whose TikTok parameters are user matching fieldspage: comes from Event Data Configuration rows for page URL and referrerproperties: 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 label | TikTok key | Default token | Sent as | Why it matters |
|---|---|---|---|---|
| Event ID | event_id | {{clickid_txid_ct}} | event root | Gives TikTok a stable event ID for deduplication and diagnostics. |
| Currency | currency | {{payout_currency}} | properties | Tells TikTok which currency the event value uses. |
| Value | value | {{payout}} | properties | Sends the revenue, payout, or value TikTok should record for the event. |
| IP | ip | {{ip}} | user | Gives TikTok visitor IP for event matching. |
| User Agent | user_agent | {{user_agent}} | user | Gives TikTok browser or device context for matching. |
| Page URL | page_url | {{page_url}} | page.url | Required for Nitoriq’s TikTok website event payload. |
| Referrer | referrer | {{referrer}} | page | Sends the referring page URL when Nitoriq captured it. |
| TTCLID | ttclid | {{external_id}} | user | Helps TikTok connect the server event to the original TikTok ad click. |
| Content IDs | content_ids | {{offer_id}} | properties | Sends 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 label | TikTok key | Sent as | What Nitoriq sends |
|---|---|---|---|
| Event ID | event_id | event root | A unique ID for the event. TikTok uses it to deduplicate against the Pixel. |
| TikTok Click ID | ttclid | user | The ttclid TikTok appends to the ad’s landing URL. Usually {{external_id}}. Not hashed. |
| TikTok Cookie ID | ttp | user | The _ttp cookie from the visitor’s browser, when your site captures it into a token. Not hashed. |
| External ID | external_id | user | Your own stable identifier for the person. Defaults to the Nitoriq visitor ID. Hashed with SHA-256 before sending unless it already arrives hashed. |
email | user | The visitor’s email address, lowercased. Hashed with SHA-256 before sending unless it already arrives hashed. | |
| Phone | phone_number | user.phone | The 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 Name | first_name | user | The visitor’s first name, lowercased without spaces. Hashed with SHA-256 before sending unless it already arrives hashed. |
| Last Name | last_name | user | The visitor’s last name, lowercased without spaces. Hashed with SHA-256 before sending unless it already arrives hashed. |
| Zip Code | zip_code | user | The visitor’s ZIP or postal code, without spaces. Hashed with SHA-256 before sending unless it already arrives hashed. |
| City | city | user | The visitor’s city. Sent lowercased without spaces or symbols, not hashed. |
| State | state | user | The visitor’s state or region. Sent lowercased without spaces or symbols, not hashed. |
| Country | country | user | The visitor’s two-letter country code. Sent lowercased, not hashed. |
| IP | ip | user | The visitor’s IP address. Not hashed. |
| User Agent | user_agent | user | The visitor’s browser user-agent string. Not hashed. |
| Locale | locale | user | The visitor’s language, like en-US. Usually {{language}}. |
| Page URL | page_url | page.url | The page the event happened on. TikTok requires it for web events. |
| Referrer | referrer | page | The page that sent the visitor to your site. |
| Value | value | properties | The monetary value of the event. |
| Currency | currency | properties | The ISO currency code for Value, like USD. |
| Order ID | order_id | properties | Your order or transaction ID. |
| Content IDs | content_ids | properties | Product IDs or SKUs, sent as a list. |
| Content Type | content_type | properties | product or product_group. |
| Number of Items | num_items | properties | The number of items in the order. |
| Description | description | properties | A description of the product or page. |
| Search String | search_string | properties | The search query, for Search events. |
| Shop ID | shop_id | properties | The ID of your shop, for TikTok Shop advertisers. |
| Predicted LTV | predicted_ltv | properties | The 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.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 URLrow resolves to a usable URL for website events - the
TTCLIDrow 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?