Ad platforms

Connect TikTok

Updated

Add the TikTok destination with your pixel code and an Events API access token. Purchases go to TikTok from the server as CompletePayment, deduplicated with the browser pixel, and the advertiser ID with a Marketing API token brings in spend.

Before you start

  • Admin or advertiser access to your TikTok account.
  • The owner or admin role in ROASaurus, and your store connected with tracking installed.

Steps

  1. Get your TikTok details

    In TikTok Ads Manager, open Tools › Events › Web events and your pixel.

    • Pixel code: the code of your pixel
    • Events API access token: the pixel's Settings › Generate access token
    • Advertiser ID for spend: optional, the id of your ad account
    • Marketing API token: optional, for spend reporting
  2. Add TikTok in ROASaurus

    Open Connections › Tracking & destinations, find TikTok under Ad platforms and click Add pixel. Fill in the fields, tick the events to send, and click Save. Keep Also load the browser pixel ticked.

    You should see: TikTok listed on the page with its events, and on the store's Connections page as Connected.

  3. Send a test

    Paste a Test event code from Events Manager › Test events, save, and place a test order. Remove the code afterwards.

    You should see: In Data quality › Deliveries, the event with status sent and the platform's answer.

    The ROASaurus Mac app showing Deliveries: each server event per platform with its status and the platform's answer. Fictional demo store, simulated data.
    The ROASaurus iPhone app showing Deliveries: each server event per platform with its status and the platform's answer. Fictional demo store, simulated data.
    Data quality › Deliveries in the Mac and iPhone apps (fictional demo store, example data).
  4. Bring in ad spend

    TikTok spend comes from the destination itself: fill in Advertiser ID for spend and the Marketing API token.

    You should see: "Connected … Spend of the last 30 days is synced." The account then syncs every hour.

What you should see

Every paid order goes to TikTok from the server, and its campaign spend counts in ROAS, CAC and profit per campaign. Data quality › Overview shows the share of orders TikTok accepted and which match keys they carried.

UTM tags

Add UTM parameters to your TikTok ads, with the ad name or ad id in utm_content, so creative reports can join orders to ads.

Common problems

Purchases counted twice
The TikTok channel app on Shopify also sends this pixel. Disconnect the pixel there; see Prevent double counting.
Deliveries show "failed"
Open the failed row: it shows TikTok's own error. Most often a token was revoked or lacks a permission. Fix the credentials on the destination, save, then use Send again.

Next step

Send revenue, revenue without tax and shipping, profit or predicted lifetime value.

Choose the conversion value

Still stuck? Email us.

Every sale, traced to the ad that earned it

Server-side tracking, profit and lifetime value in one app. Free plan, no credit card.