How to add a TikTok pixel to Shopify

Updated

Adding a TikTok pixel to Shopify takes the pixel ID from TikTok Events Manager and one install method that reaches checkout. The official TikTok sales channel handles a single pixel and syncs your catalog. A pixel app handles several, and lets you pair the browser pixel with the TikTok Events API so purchases still report when the browser blocks the request.

Quick steps

  1. Create the pixel. In TikTok Ads Manager open Assets then Events, choose Web Events, and set up a new pixel using Manual Setup.
  2. Copy the pixel ID. Take the alphanumeric pixel ID from the pixel detail page. It is not the same as your advertiser ID.
  3. Install it on Shopify. Paste the ID into your pixel app, or connect the TikTok sales channel if one pixel is all you need.
  4. Map the events. Assign ViewContent, AddToCart, InitiateCheckout and CompletePayment so TikTok receives the whole funnel.
  5. Turn on the Events API. Generate an access token in TikTok Events Manager and add it alongside the pixel ID to enable server-side tracking.
  6. Test it. Use the Test Event code in TikTok Events Manager, browse a product and place a discounted test order.

Create the pixel in TikTok Ads Manager

Open TikTok Ads Manager, then Assets and Events. Under Web Events, choose Set Up Web Events and pick Manual Setup rather than Shopify Partner Integration if you plan to install through an app. Manual Setup gives you a raw pixel ID you can put anywhere.

TikTok also asks whether to use Developer Mode. Standard mode is right for almost every store. Developer mode only pays off when you are firing custom events from your own code.

TikTok’s event names are not Meta’s

This trips people up when they run both platforms. Meta calls the final event Purchase. TikTok calls it CompletePayment. Meta uses ViewContent and AddToCart, which TikTok matches, but TikTok also has PlaceAnOrder sitting between checkout and payment.

If you map a Meta event name straight onto a TikTok pixel, the event still transmits but arrives as a custom event TikTok cannot optimise against. Campaign objectives will not find it in the dropdown.

The TikTok sales channel and its ceiling

TikTok publishes an official Shopify channel that connects a pixel and syncs your product catalog for Shopping ads. If you run one TikTok ad account and want the catalog, install it.

Like the Facebook channel, it holds one pixel. Agencies, second ad accounts and regional splits run into the same wall, and there is no per-event control.

Installing with a pixel app

A pixel app registers the TikTok pixel through Shopify’s Web Pixels API, which puts it on the same footing as your Meta pixels: theme changes do not break it, and checkout events fire.

Pixelfy manages TikTok pixels next to Facebook, Meta, Instagram, Snapchat, Pinterest and Taboola from one dashboard, so a new campaign platform means adding an ID rather than another app.

The TikTok Events API is the piece worth setting up on day one. Generate an access token in Events Manager, paste it beside the pixel ID, and TikTok receives a server-side copy of each event. Deduplication keeps the browser and server copies from double counting.

Confirm the events land

TikTok Events Manager has a Test Events tab that issues a test code. Append it to your store URL, browse a product, add to cart, and watch the events appear live.

Then place a real order with a 100% off code and confirm CompletePayment shows up with a value and currency. TikTok’s diagnostics panel will separately warn you about missing parameters such as content_id, which is what Shopping ads use to match products.

Give attribution a day before judging the numbers. TikTok reporting settles more slowly than Meta’s.

Questions

Can I run a TikTok pixel and a Facebook pixel on the same Shopify store?
Yes, and most stores do. They are independent scripts that do not conflict. Installing both through one pixel app keeps them on a single Web Pixels registration rather than two.
What is the TikTok Events API?
It is TikTok’s server-side tracking endpoint, the equivalent of Meta’s Conversions API. Your store sends events directly to TikTok instead of relying on the shopper’s browser, which recovers conversions that blockers would otherwise drop.

Related guides