Cookie preferences

Choose which optional cookies EndFrame may use on this site. Analytics and advertising tools load only if you allow them, and you can change your mind any time from “Cookie settings” in the footer. Whatever you choose, this tab keeps the campaign labels from the link that brought you, and they are saved with your account if you sign up. Read the Cookie Policy.

Needed for the site to work, such as remembering this choice. Always on.

Lets us load analytics tools through Google Tag Manager, including Google Analytics and Microsoft Clarity session recordings, to understand how the site is used.

Allows advertising tags to measure our ad campaigns. None run on this site today. It also keeps ad click IDs from the page address for this tab, and saves them with your account if you sign up.

Skip to main content

TikTok Pixel on Shopify: Setup, Data Sharing Levels and the Events API

A setup guide for the TikTok pixel on Shopify through TikTok's own app: the install steps, what the Standard, Enhanced and Maximum data sharing levels include, the events it sends, consent, and how to check it all in Events Manager.

The EndFrame Team7 min read

The simplest way to put the TikTok pixel on a Shopify store is TikTok's own app, listed in the Shopify App Store as TikTok and published by TikTok Inc. It connects your TikTok ad account, creates or selects a pixel, installs it without any theme code, and asks you to choose a data sharing level: Standard, Enhanced or Maximum. That one setting decides whether TikTok receives only browser events or server-side events as well. This guide covers the install, what each level includes in TikTok's own wording, which events the app sends, how consent affects it, and how to check the result in TikTok Events Manager.

What the TikTok app actually installs

Three terms come up throughout. The TikTok Pixel is JavaScript that runs in the shopper's browser and reports actions such as viewing a product. The Events API is a server-to-server connection: events are sent from a server rather than the browser, so a browser ad blocker cannot stop them. Advanced Matching adds customer details such as email address and phone number, hashed before sending, so TikTok can match more events to its users. The difference between browser and server events is explained in TikTok Pixel vs Events API.

The app does not paste code into your theme. Shopify lists it as an app pixel, meaning a pixel installed by a marketing app, and you can see it in the Shopify admin under Settings, then Customer events. The same app also handles TikTok Shop and product catalogue sync, so installing it for ad tracking alone is normal. The App Store listing says the app is free to install, with ad spend billed to your TikTok ad account, and notes that it is compatible only with some stores, so check eligibility on the listing before you plan around it.

How to add the TikTok pixel to Shopify

  1. 1In the Shopify App Store, search for TikTok, check that the developer is TikTok Inc., and click Install. Approve the permissions it asks for.
  2. 2In the Shopify admin, open TikTok under Sales channels in the left menu and start the setup.
  3. 3Log in to, or create, your TikTok for Business account. This is the login that gives access to all your TikTok business accounts.
  4. 4Connect or create a Business Center, TikTok's tool for managing business assets such as ad accounts, pixels, catalogues and team permissions in one place.
  5. 5Connect the TikTok Ads Manager account you will run campaigns from.
  6. 6Choose a data sharing level: Standard, Enhanced or Maximum. The next section explains each one.
  7. 7Create a new pixel or pick an existing one from the dropdown. If you already have a pixel with months of data, select it so its history and audiences carry on.
  8. 8Complete the remaining screens, such as your company information, and confirm. Button labels change between app versions, so follow the wording the app shows.

Standard, Enhanced and Maximum data sharing

The table below follows TikTok's Shopify-specific help article on data sharing in the TikTok app and TikTok's announcement of the Events API for Shopify, which place the Events API in both Enhanced and Maximum. TikTok revises these descriptions and what each level includes, so treat the text shown next to each option in the app as the final word.

LevelWhat TikTok says it usesServer-side Events API
StandardTikTok Pixel only. TikTok warns that browser ad blockers can stop the pixel collecting data.No
EnhancedTikTok Pixel, Events API and Advanced MatchingYes
MaximumTikTok Pixel, Events API, Advanced Matching and Shopify APIs, plus In-App Shopify Checkout, which TikTok has offered as a betaYes

For the detail of what the Shopify APIs option and In-App Shopify Checkout involve, and which events go server-side at each level, read the description shown next to each option in the app before choosing. That wording is what you are agreeing to, and TikTok can change it.

For a store running TikTok ads, Enhanced or Maximum is the usual choice, because Standard leaves you with browser events only. Choose a lower level if your privacy advice requires it, or if another tool already sends your server-side TikTok events. Whatever you pick, your privacy policy should say that customer data is shared with TikTok. Meta's Shopify integration has a similar three-level choice, compared in Meta Conversions API on Shopify.

Which Shopify events the app sends

TikTok's Supported Events by Shopify page lists the standard events the integration reports. The table maps the main ones to the Shopify action that usually triggers them; each has a matching Shopify standard event, such as product_viewed, checkout_started or checkout_completed:

TikTok eventShopify action
ViewContentA shopper views a product page
AddToCartA product is added to the cart
InitiateCheckoutThe shopper starts checkout
AddPaymentInfoPayment details are added during checkout
CompletePaymentThe order is completed; this is the purchase event to optimise for
SearchThe shopper uses the store search

TikTok revises its event list and event names, so the reliable check is the event list for your pixel in Events Manager once real traffic has arrived. For a purchase campaign, optimise for the purchase event (CompletePayment above, or whatever name Events Manager shows for completed orders) and confirm it carries value and currency.

Do not add a second TikTok pixel

The app is the whole install. If TikTok base code also sits in your theme, in a Google Tag Manager container or in a second app, every visit fires two sets of events. The copies normally do not share event IDs, so TikTok cannot merge them and reports inflated purchases. Before or straight after installing the app, check:

  • Online Store, then the ... menu next to the live theme, then Edit code: search theme.liquid and the snippets folder for ttq.load or analytics.tiktok.com and remove old base code.
  • Settings, then Customer events: keep the TikTok app pixel and delete any custom pixel that contains TikTok code. Shopify custom pixels and customer events explains the difference.
  • Google Tag Manager: pause or delete TikTok tags if the container runs on the store.
  • Other apps: disconnect any second app that offers TikTok tracking.
  • Run a product page through the pixel inspector. It reads the page's initial HTML, while the app's pixel is loaded by Shopify's pixel manager, so a TikTok result there usually points to leftover hard-coded code.

How consent and Shopify privacy settings affect it

Shopify's customer privacy settings, under Settings, then Customer privacy, let you show a cookie banner and a data sale opt-out per region. Where a banner is active, Shopify says data from those regions is collected only after consent. Its pixel documentation adds that pixels run only when visitors have given the permissions the pixel requires, that new pixels require Marketing and Analytics permission by default, and that a pixel set up as data sale does not run for customers who opted out of data sale or sharing unless it supports limited data use.

That gating covers the browser pixel. If you use a third-party cookie banner, Shopify says it must be integrated with Shopify's customer privacy settings, otherwise the pixel manager does not see the visitor's choice. TikTok's help pages do not say how the app treats its server-side events when a visitor declines, so if consent law applies to your store, ask for confirmation in the app or from TikTok support rather than assuming.

How to verify the setup in TikTok Events Manager

  1. 1In Shopify, open Settings, then Customer events, and confirm the TikTok app pixel is listed there and is the only TikTok entry.
  2. 2In TikTok Ads Manager, open Events Manager, open your website pixel, and confirm the pixel ID matches the one selected in the Shopify app.
  3. 3Open the Test Events tab and start a test session for your store. Browse a product, add it to the cart and start checkout, and watch the browser events arrive.
  4. 4Place a low-value test order with a real payment method, watch for CompletePayment with a value and currency, then cancel and refund the order. A 100% discount order would report a value of zero.
  5. 5Check for server events in the pixel's Overview rather than relying on the test session. For Events API requests, TikTok's Test Events view depends on a test event code that the request has to carry, and the Shopify app does not ask you for one. On Enhanced or Maximum, look in the Overview for events received from the server as well as the browser; if you cannot find a breakdown by connection, ask TikTok support to confirm server events are arriving.
  6. 6Open the Diagnostics tab, which lists problems TikTok has found with the pixel's events and links to instructions for fixing each one.

Events can take a while to appear in Events Manager, so wait before concluding something is broken. If events are still missing or doubled, work through TikTok pixel not working.

If another tool also sends TikTok server events

TikTok keeps one copy of an event only when the browser and server copies share the same event_id and event name. TikTok does not document the event IDs the Shopify app uses, so you cannot rely on another server-side tool matching them. Pick one source for server events. Setting the app to Standard is not enough on its own: its browser pixel would still fire with event IDs you do not control, so your own server copies would not match and purchases would be counted twice. If you send conversions from your own setup, built as in the TikTok Events API setup guide, or through a service such as EndFrame, which forwards conversions to the TikTok Events API, disconnect the app's data sharing, add the TikTok pixel yourself, and pass the same event_id and event name to that pixel and to your server events. EndFrame has no Shopify app, so this means adding its snippet and calls yourself.

Frequently asked questions

Do I need a new pixel to switch from Standard to Enhanced or Maximum?

Normally no. The data sharing level is a setting on the pixel you connected in the TikTok app, so you change it in the app's data sharing settings and keep the same pixel ID and its history. If the app offers only a new pixel, stop and ask TikTok support first, because a new pixel starts with no history. Afterwards, check the pixel in Events Manager for server events.

Can I keep the TikTok app for TikTok Shop but stop its ad tracking?

Yes. In the TikTok app in your Shopify admin, open its data sharing settings and disconnect the pixel there; the exact labels vary between app versions. Disconnecting data sharing is meant to leave the app and its TikTok Shop features installed, but read the confirmation screen before you accept. Do this only if another setup will send your TikTok ad events instead, including a browser pixel you add yourself.

Why does TikTok report fewer purchases than Shopify?

Shopify counts every order, while TikTok counts only the purchases it can attribute to an ad within your attribution window. Visitors who declined marketing consent, blocked the pixel, or bought days later in another browser can also be missing. Compare TikTok with Shopify orders that carry TikTok UTMs, not with total store sales.

Do I need Google Tag Manager to run the TikTok pixel on Shopify?

No. The TikTok app installs and manages the pixel itself. Adding a TikTok tag in a Google Tag Manager container on top of the app makes the same visit fire two sets of events. If you already run TikTok through Google Tag Manager, choose one method and remove the other.

Try EndFrame

Add a server-side path for your conversions.

EndFrame collects events first-party and forwards conversions server-side to Meta, GA4, TikTok, and webhooks with event-ID deduplication — then credits each conversion to its campaign, with the visit-to-conversion path you can audit.

No credit card required

Keep reading