Overview
Connecting TikTok Ads enables:- Events API — NSM sends attributed
Purchaseevents directly to TikTok’s server-side Events API, improving conversion tracking and optimization - Ad spend sync — Campaign and ad group spend data is imported every hour
TikTok’s Events API is the server-side complement to the TikTok Pixel. Server-side events bypass browser restrictions and provide more reliable conversion data for TikTok’s Value-Based Optimization and Complete Payment optimization goals.
Prerequisites
Before connecting, make sure you have:- A TikTok for Business account
- A TikTok Ads Manager account with active campaigns
- A TikTok Pixel created in Events Manager
- Admin access to the TikTok Ads account
Setup Guide
Navigate to Integrations
In your NSM dashboard, go to Dashboard > Integrations > TikTok Ads and click Connect TikTok.
Authenticate with TikTok
You will be redirected to TikTok for Business to log in. Grant the requested permissions for reading ad data and sending events.
Select Pixel
Choose the TikTok Pixel that NSM should send events to. This should match the pixel on your store for proper deduplication.
What Data is Sent to TikTok
NSM sends the following with each purchase event:| Field | Source | Hashed? | Purpose |
|---|---|---|---|
event | ”CompletePayment” | No | Event type (TikTok’s purchase event name) |
timestamp | Order timestamp | No | When the purchase occurred |
event_id | NSM event ID | No | Deduplication with browser pixel |
value | Shopify order total | No | Conversion value |
currency | Store currency | No | Currency code |
email | Customer email | Yes (SHA-256) | Customer matching |
phone | Customer phone | Yes (SHA-256) | Customer matching |
ttclid | URL parameter from ad click | No | Click-level attribution |
external_id | NSM visitor ID | No | Cross-session matching |
How ttclid Capture Works
Thettclid (TikTok Click ID) is automatically appended to your landing page URL when a visitor clicks a TikTok ad:
The
ttclid is valid for 7 days by default in TikTok’s system. NSM stores the ttclid for the duration of your attribution window (default 30 days) to enable matching even after TikTok’s native window expires.Value-Based Optimization
Sending server-side purchase events with accurate order values enables TikTok’s Value-Based Optimization (VBO):- TikTok’s algorithm learns which users generate the highest purchase values
- Ad delivery is optimized toward users most likely to make high-value purchases
- This leads to better ROAS compared to optimizing for conversion count alone
Deduplication
If you run both a browser-side TikTok Pixel and NSM’s Events API integration:- NSM includes an
event_idwith each server-side event - TikTok deduplicates events received via both browser pixel and Events API using this ID
- This prevents double-counting while maximizing coverage
Troubleshooting
Events not appearing in TikTok Events Manager
Events not appearing in TikTok Events Manager
- Check Events Manager > Test Events in TikTok Ads Manager
- Verify the integration shows “Connected” in Dashboard > Integrations
- Confirm you selected the correct Pixel ID during setup
- Wait 1-6 hours — TikTok events can take time to process
- Ensure you have orders with a captured
ttclid(only TikTok ad clicks generate this parameter)
Low match rate for TikTok events
Low match rate for TikTok events
TikTok’s matching depends on the data NSM sends. To improve matching:
- Ensure customer emails are collected at checkout
- Enable phone number collection in your Shopify checkout settings
- Verify that
ttclidis being captured — check your ad URLs include auto-tagging
Spend data not syncing
Spend data not syncing
- Verify the OAuth token has not expired (look for “Reconnect” button)
- Check that your TikTok for Business account still has access to the ad account
- Wait 1 hour for the next sync cycle, or click “Sync Now”
- Only accounts with active ad spend will show data
Revenue values differ from Shopify
Revenue values differ from Shopify
NSM sends the Shopify order total at the time of purchase. Differences may be caused by:
- Currency conversion between your store currency and TikTok’s reporting currency
- Refunds processed after the event was sent (refunds are not sent retroactively)
- Discount codes applied at checkout (the discounted total is sent)