TikTok icon
Tiktok Free integration

TikTok

Track TikTok ad performance with browser pixel tracking plus server-side conversion events that ad blockers cannot stop.

About this plugin

TikTok connects your Orderain store to TikTok Ads so you can see which ads actually bring in sales. This plugin tracks shoppers two ways at once. The pixel runs in the browser and records page views and product views, while the Events API sends add to cart, checkout, and purchase events straight from your server.

The server side matters because ad blockers, iOS privacy settings, and cookie limits stop a large share of browser events from ever reaching TikTok. When those events go missing, TikTok optimizes toward the wrong audience and your reported sales look lower than they really are. Both methods send a matching event ID for every action, so TikTok merges them into one conversion instead of counting it twice. Paste your Pixel ID to start with browser tracking, then add your Access Token to switch server-side tracking on.

Key Features:

  • Tracks page views and product views through the TikTok pixel
  • Sends add to cart, checkout, and purchase events from your server
  • Keeps reporting accurate when shoppers use ad blockers or iOS privacy settings
  • Matches browser and server events so conversions are never double counted
  • Sends hashed email and phone so TikTok can match more customers to their accounts
  • Captures the TikTok click ID so sales are credited to the right ad
  • Lets you turn each event on or off
  • Works with browser tracking alone if you would rather not use server-side

Installation guide

Step 1: Go to ads.tiktok.com and sign in to your TikTok Ads Manager account, or create one.

Step 2: In the left sidebar, open ToolsEvents.

Step 3: Click Connect Data Source, select Web, then choose Manual Setup.

Step 4: Click Create Pixel, enter a name, and create it. If you already have a pixel, select it instead.

Step 5: Open the pixel's Settings page and copy your Pixel ID, the short code shown inside ttq.load in the base code.

Step 6: In your Orderain Dashboard, go to Shop, then select Plugins from the left sidebar and click on TikTok.

Step 7: Paste your Pixel ID into the Pixel ID field and click Install. Browser tracking is now live.

Step 8: Back in TikTok Events Manager, open the same pixel and select the Settings tab.

Step 9: Scroll to the Events API section and click Generate Access Token.

Step 10: Copy the token now, as TikTok only shows it once. This is a different value from the Pixel ID you copied in Step 5.

Step 11: Return to the TikTok plugin in Orderain, paste the token into the Access Token field, and save. Server-side tracking is now live.

Step 12: Visit your storefront and place a test order.

Step 13: Open TikTok Events Manager and check the Events tab. Your purchase should appear with both Browser and Server listed as sources, counted as one event.

Configuration

Fields you'll provide when you add this plugin to your store.

Pixel ID Required

e.g. e.g. D971DQ3C77U10265SR34

Type: text

Access Token

e.g. Paste your Events API access token

Type: password

Send Product View events

Type: toggle

Send Add to Cart events

Type: toggle

Send Checkout Started events

Type: toggle

Send Purchase events

Type: toggle

Test Event Code

e.g. e.g. TEST12345

Type: text

More Tiktok plugins

Other integrations from the Orderain library.

View all

Add TikTok to your store

Install it in a few clicks inside Orderain, no code required.

Get started free