The TikTok pixel on Shopify
Also called TikTok Web Events · Updated
TikTok’s pixel works like Meta’s but names things differently, and the mismatch is where most Shopify setups go wrong. If you assign an event called Purchase you will get nothing — TikTok’s final event is CompletePayment, and its optimisation depends on receiving that specific name.
TikTok pixel at a glance
- ID format
- An alphanumeric string of about 20 characters, e.g. C4A1B2C3D4E5F6G7H8I9
- Where to find the ID
- TikTok Ads Manager → Assets → Events → Web Events → your pixel
- Server-side API
- Events API
- Ad surfaces covered
- TikTok in-feed ads, Spark Ads, TopView, Shopping ads
Copy the ID from TikTok’s own dashboard rather than typing it — a transposed digit produces a pixel that installs cleanly and reports nothing.
Events the TikTok pixel accepts on Shopify
| Event name | When it fires |
|---|---|
ViewContent | Same name as Meta. Product pages. |
AddToCart | Same name as Meta. |
InitiateCheckout | Same name as Meta. |
PlaceAnOrder | No Meta equivalent. Sits between checkout and payment. |
CompletePayment | This is TikTok’s Purchase. Optimise against it. |
Search | Storefront search. |
AddToWishlist | If your theme has a wishlist. |
Server-side tracking: Events API
Generate an access token in TikTok Events Manager. Browser and server events share an event ID so TikTok deduplicates them, exactly as Meta does.
What goes wrong with the TikTok pixel on Shopify
- The pixel ID is not the advertiser ID. Advertiser IDs are numeric; pixel IDs are alphanumeric, and pasting the wrong one produces a pixel that never fires.
- Choose Manual Setup rather than the Shopify Partner Integration if you plan to install through a pixel app — the partner flow does not hand you a reusable ID.
- TikTok’s attribution defaults are shorter than Meta’s. Compare like-for-like windows before concluding TikTok under-reports.
Why TikTok reports fewer conversions than Shopify
TikTok’s default attribution settings are shorter than Meta’s — a 7-day click and 1-day view window against Meta’s 7-day click and 1-day view, with TikTok historically defaulting narrower still on some account types. Comparing a TikTok report to a Shopify report without aligning the windows is comparing two different questions, and TikTok will always lose.
Beyond windows, TikTok’s audience skews to in-app browsing on mobile in exactly the way Instagram’s does, so the same event losses apply. The Events API is not an optional extra on TikTok; it is the difference between seeing most of your conversions and seeing about half of them.
The TikTok sales channel or a pixel app
TikTok’s official Shopify sales channel is the right answer for a store running one pixel with a straightforward catalog. It handles the pixel and the product feed in one connection, and it costs nothing beyond the app install.
It stops being the right answer at the point you need a second pixel, per-pixel event assignment, or your own Events API token. The channel manages one pixel on your behalf and does not hand you a reusable ID, which is why the Manual Setup route in TikTok Events Manager matters if a pixel app is anywhere in your plans. Choosing Manual Setup first costs nothing and keeps both options open.
Step-by-step installation
This page is the reference. For the click-by-click walkthrough, including the Events Manager side of the setup, read the full guide.
How to add a TikTok pixel to Shopify →Related reading
- Getting the Shopify Purchase event right
Why Shopify Purchase events go missing, arrive without a value, or count twice, and how to send AddToCart, InitiateCheckout and Purchase correctly to Meta.
- Shopify custom pixels and when to use an app instead
Shopify custom pixels let you paste tracking code into the Web Pixels sandbox. Here is what they can and cannot do, and when an app is the better call.