shopAds
Product setup

TikTok Pixel and Events API for Shopify: How to Set Up Tracking That Records Every Sale (2026)

10 min read · Published 24 August 2026

In short: The TikTok pixel runs in your shopper’s browser and the Events API sends the same events from Shopify’s servers, and you want both, because the browser copy gets blocked and the server copy does not. On Shopify you get both through the TikTok sales channel, and which one you get depends entirely on the data-sharing level you pick: Standard is pixel only, while Enhanced and Maximum both add the Events API and Advanced Matching. You will find app vendors claiming the native channel cannot send server-side events. TikTok’s own documentation says otherwise, and those vendors sell the apps they are recommending. The setting that catches most merchants out is not on the Shopify side at all: TikTok’s attribution window is set on the ad group and cannot be changed once you publish.

If your TikTok product catalogue is already syncing, this is the other half. The catalogue tells TikTok what you sell. The pixel and the Events API tell TikTok what shoppers did about it, and that is what its optimisation runs on.

The setup, settings and dates here are current as of August 2026. Worth knowing that TikTok’s own help pages for the Shopify integration carry a “last updated February 2025” stamp, so check what your admin actually shows before relying on any specific screen.

One thing to check before anything else. Shopify’s developer documentation sets 26 August 2026 as the date script tags are sunset on the Thank you and Order status pages for stores on non-Plus plans. Plus stores passed the equivalent milestone on 28 August 2025. The thank-you page is where the Complete Payment event fires, so purchase tracking wired into those pages the old way stops reporting, and it stops without an error. Whether that date is ahead of you or behind you as you read this, the check is the same.

The quick checklist

  • Install through the TikTok sales channel, not by pasting pixel code into your theme.
  • Standard gives you the pixel only. Browser ad blockers can stop it, and a meaningful share of your shoppers run one.
  • Enhanced adds the Events API and Advanced Matching. This is the step that actually changes your coverage.
  • Maximum adds Shopify APIs and In-App Shopify Checkout, the latter still in beta and not available to everyone.
  • Advanced Matching shares customer information such as email address and phone number with TikTok. That is a decision you are making on your customers’ behalf.
  • Nine events fire automatically, including View Content, Add to Cart, Initiate Checkout and Complete Payment.
  • The TikTok channel supports one pixel. If you need several, or custom event rules, the native channel is not the tool.
  • Set your attribution window before you publish the ad group. TikTok will not let you change it afterwards, and the default is not the honest setting.
  • Remove any pixel you added by hand and check Settings > Customer events for apps doing the same job twice.
  • Non-Plus stores: check the 26 August 2026 script tag cutoff on the Thank you and Order status pages.
  • Verify with a real test order, not with the green tick in the admin.

What the pixel and the Events API each actually do

They send TikTok the same events by two different routes, and the route is the whole difference.

The TikTok pixel is code that runs in your shopper’s browser. When somebody views a product or completes a purchase, the browser tells TikTok. TikTok’s own description of Standard-level data sharing is blunt about the weakness: browser-based ad blockers can prevent the pixel from collecting data. Privacy browsers stop it too, iOS restrictions limit what it can carry, and a shopper who closes the tab early never reports anything.

None of those failures announce themselves. The order still lands in your Shopify admin. TikTok simply never hears about it.

The Events API sends the same events from Shopify’s servers straight to TikTok’s, with no browser in between. TikTok describes it as a reliable connection between TikTok and an advertiser’s marketing data across web, app and offline channels. If the order exists in Shopify, TikTok gets told.

Run both. They are not additive. What you gain is coverage: the server copy catches what the browser missed, and the browser copy carries the session signals that help TikTok connect the event to a person and to the ad that brought them.

This matters well beyond reporting. TikTok’s automated bidding optimises toward the conversions it is told about, so a store sending only browser events is not merely under-reporting. It is teaching TikTok to bid against a partial and skewed sample of its own customers.

How to install both on Shopify

Per TikTok’s Shopify setup documentation, the whole thing happens in your Shopify admin. No developer, no theme code.

  1. Log in to your Shopify admin.
  2. Click TikTok under Sales Channel.
  3. Connect or create three things: a TikTok for Business account, a Business Center account, and a TikTok Ads Manager account. The Business Center is where your pixel and catalogue actually live, so it is not an optional step even though it feels like one.
  4. Choose your data-sharing level: Standard, Enhanced, or Maximum.
  5. Click Create Pixel to create and install a new one, or select an existing pixel from the dropdown.
  6. Click Set Up and fill in your business location in the Company Information section.
  7. Click Confirm.

Before you do any of that, remove any pixel you installed yourself. Hand-pasted code in theme.liquid will keep firing alongside the channel’s pixel, and two installations of the same pixel produce duplicate conversions that nothing downstream can untangle.

One limit worth knowing up front: the TikTok sales channel connects one pixel and does not allow custom event rules. If you need multiple pixels, or events defined differently from the standard set, this is not the tool for that job and you will need a different approach.

The three data-sharing levels

Per TikTok’s data-sharing documentation:

LevelWhat it usesWhat that means for you
StandardTikTok PixelBrowsing behaviour only, and a browser ad blocker can stop it collecting anything.
EnhancedTikTok Pixel, Events API, Advanced MatchingServer-side events that ad blockers cannot stop, plus customer information such as email and phone used to match shoppers to TikTok accounts.
MaximumTikTok Pixel, Events API, Advanced Matching, Shopify APIs, In-App Shopify CheckoutEverything in Enhanced, plus a checkout experience inside TikTok’s in-app browser. That feature is in beta and not available to all advertisers.

The jump from Standard to Enhanced is the one that matters. That is where server-side tracking begins. The jump from Enhanced to Maximum is smaller than it sounds, and TikTok is specific about what it adds rather than vague, which is more than can be said for the equivalent choice on Meta, where Shopify describes its top two levels in nearly identical terms and will not say what separates them.

Advanced Matching is what makes Enhanced and Maximum work, and it is worth understanding what you are agreeing to. It sends TikTok customer information such as email addresses and phone numbers so TikTok can match your shoppers to TikTok accounts. That improves your results. It is also information your customers handed over to buy something, and how it gets used is your call and your legal exposure.

What the app vendors say, and what TikTok says

This is the part worth reading twice, because searching for this subject will hand you a confident and wrong answer.

Several tracking apps state plainly that Shopify’s native TikTok channel installs a browser pixel only and sends no server-side Events API calls, and that you therefore need their app to get server-side coverage. That claim is on vendor sites carrying 2026 dates, which makes it look current.

TikTok’s own documentation says the opposite. Its data-sharing page states that Enhanced uses TikTok Pixel, Events API and Advanced Matching, and that Maximum uses all of those plus more. TikTok also announced the expanded server-side Shopify integration on its own business blog. The vendors making the contrary claim sell the apps they recommend as the fix.

Check your own admin rather than taking either party’s word, including ours. Open your TikTok channel settings, look at which data-sharing level is selected, and then confirm in TikTok Events Manager whether server events are arriving. That takes a few minutes and settles it for your store, which is the only store that matters to you.

There are legitimate reasons to run a third-party tracking app: more than one pixel, custom event definitions, consent gating that the native integration does not handle, or event data the standard set does not carry. “The native channel cannot do server-side” is not one of those reasons.

What TikTok tracks automatically

Once the pixel is connected, TikTok’s Shopify integration creates nine standard events with no further setup.

EventFires when
View ContentA shopper browses merchandise or a page
Add to CartA shopper adds an item to the cart
Initiate CheckoutA shopper begins checkout
Add Payment InfoPayment information is added during checkout
Complete PaymentA shopper completes a purchase
SearchA shopper searches your store
Add to WishlistA shopper adds an item to a wishlist
Complete RegistrationA shopper signs up, for example creating an account
SubscribeA shopper subscribes, including follows and paid subscriptions

Complete Payment is the one your advertising is graded on. The rest matter more than merchants expect, because they are what TikTok’s optimisation learns from before anyone has bought anything.

The setting you cannot undo

Everything above is Shopify-side. This one is in TikTok Ads Manager, it decides what your reported results actually mean, and it is the single most consequential thing in this guide.

TikTok’s attribution window is set at the ad group level. Per TikTok’s attribution documentation, click-through attribution can be set to 1, 7, 14 or 28 days, and view-through attribution to off, 1 day, or 7 days.

Set it before you publish. TikTok’s documentation is explicit that attribution settings cannot be changed once the ad group has been published, and that using a different window means building a new ad group. There is no correcting this later.

Two things to know when you choose.

TikTok is the one major platform that lets you turn view-through crediting off entirely. A view-through conversion credits an ad because it loaded on somebody’s screen and they did not click it. Take that option. It is the difference between counting sales that followed something a shopper did and counting sales that merely happened afterwards.

A shorter click window is the more honest one, and seven days suits most Shopify stores. To TikTok’s credit, its attribution overview confirms that each conversion is credited to only one touch point, so there is no double counting inside TikTok’s own numbers, which is not true of every platform. The reasoning behind both choices is in the ad attribution guide.

The mistake that actually breaks stores: two pixels

Choosing the wrong data-sharing level costs you accuracy. Running the same pixel twice corrupts everything built on top of it, and it happens far more often.

TikTok can reconcile the browser and server copies of one event, because both arrive tied together and it knows they are the same event. It cannot do that with a second, independent installation. Those arrive with nothing linking them, so they are simply two conversions. Your purchase count doubles, your reported revenue doubles, your cost per acquisition halves, your return looks superb, and then you scale spend against a number that was never real.

Four places to look, in the order they usually cause it:

  • Settings > Customer events. Every app that tracks anything installs a pixel here. Stores accumulate these and nobody ever removes them.
  • theme.liquid. Hand-pasted pixel code from before the channel existed.
  • Settings > Checkout, the Additional Scripts box. Easy to miss because you have not opened that screen in two years, and old content survives there even after newer tracking was layered on top.
  • A third-party tracking app running alongside the channel. If you install one, TikTok data sharing in the Shopify app usually has to be turned off, or you will be sending everything twice. Check the app’s instructions rather than assuming it handles this for you.

The symptom is a purchase count in TikTok higher than your Shopify order count for the same period. Compare them for a completed week. They will never match exactly, for reasons covered in the attribution guide, but TikTok reporting roughly double your actual orders is a duplicate pixel, not an attribution quirk.

Checking it actually works

The green tick in your Shopify admin means a connection exists. It does not mean events are arriving with the right values.

Place a real test order and watch it land in TikTok Events Manager. You want Complete Payment to appear, with the right value and currency.

Use the TikTok Pixel Helper browser extension for the browser side only. It cannot see events delivered by the Events API, because those never touch the browser. A lot of merchants go hunting for a fault that does not exist after checking the wrong tool.

Then check the number, not the setup. Compare TikTok’s reported purchases against your Shopify orders for a completed week. Fewer is expected, because some shoppers cannot be matched. More means a duplicate.

Privacy is your obligation

TikTok states it plainly: make sure your customers understand how you collect and use their information, and make sure your privacy policy reflects it.

Enhanced and Maximum send TikTok customer details including email addresses and phone numbers. Whichever level you choose, make sure your privacy policy describes what you actually do, not what you meant to do.

Frequently asked questions

How do I install the TikTok pixel on Shopify?

Through the TikTok sales channel in your Shopify admin, not by editing theme code. Click TikTok under Sales Channel, connect a TikTok for Business account, a Business Center account and a TikTok Ads Manager account, choose your data-sharing level, then create a new pixel or select an existing one and confirm. If you previously pasted pixel code into your theme, remove it first or your store will run two.

Does Shopify’s TikTok channel support the Events API?

Yes. TikTok’s own data-sharing documentation states that the Enhanced level uses TikTok Pixel, Events API and Advanced Matching, and that Maximum uses all of those plus Shopify APIs and In-App Shopify Checkout. Some tracking app vendors claim the native channel is browser-only and that their app is required for server-side coverage. Check which data-sharing level your store is on and whether server events are arriving in TikTok Events Manager before paying for an app to solve a problem you may not have.

Which TikTok data-sharing level should I choose on Shopify?

Standard sends the pixel only and can be blocked by browser ad blockers. Enhanced adds the Events API and Advanced Matching, which is the step that actually improves coverage. Maximum adds Shopify APIs and In-App Shopify Checkout, the latter still in beta and not available to all advertisers. Enhanced and Maximum both share customer information such as email and phone with TikTok.

What is Advanced Matching on TikTok?

A feature that matches customer information such as email address and phone number to the actions people take on your website, so TikTok can connect a conversion to a TikTok account. It is included at the Enhanced and Maximum data-sharing levels and it is the main reason those levels report more conversions than Standard.

What events does the TikTok pixel track on Shopify automatically?

Nine: View Content, Add to Cart, Initiate Checkout, Add Payment Info, Complete Payment, Search, Add to Wishlist, Complete Registration and Subscribe. They are created automatically when the pixel is set up and need no further configuration.

Can I change my TikTok attribution window after launching?

No. TikTok sets attribution on the ad group and its documentation states the setting cannot be changed once the ad group is published. Using a different window means building a new ad group. Choose before you publish: click-through can be 1, 7, 14 or 28 days, and view-through can be off, 1 day or 7 days.

Should I turn TikTok view-through attribution off?

Yes, in most cases. A view-through conversion credits an ad that loaded on somebody’s screen without them clicking it, which is an assumption about influence rather than a record of anything the shopper did. TikTok is unusual in letting you switch it off entirely, and turning it off gives you a smaller number that reflects sales your advertising can actually be credited with.

Why does TikTok report more purchases than Shopify shows orders?

Almost always a duplicate pixel. Check Settings, Customer events for app pixels doing the same job, theme.liquid for hand-pasted code, and the Additional Scripts box under Settings, Checkout. If you run a third-party tracking app alongside the sales channel, data sharing in the Shopify TikTok app usually needs turning off, or every event is sent twice.

Why can’t the TikTok Pixel Helper see my events?

Because it only sees browser traffic. Events delivered by the Events API go from Shopify’s servers to TikTok’s without touching the browser, so the extension cannot detect them. Use TikTok Events Manager instead, which shows both sources.

Do I still need the pixel if I have the Events API?

Yes. Server events alone lose the browser signals that connect a conversion to a session and to the ad that started it, which reduces TikTok’s ability to match conversions to people. The Enhanced and Maximum levels run both, which is the point of them.

Keeping it honest

Tracking is not something you set up once. Apps get installed, themes get replaced, developers come and go, and each of those is a chance for a second pixel to appear or a working one to stop firing. None of it announces itself.

So the only reliable check is arithmetic. Once a month, compare TikTok’s reported purchases against your actual Shopify orders for a completed period, and make sure the gap is one you can explain. A store that does that catches a tracking fault in weeks. A store that trusts the green tick catches it a quarter later, after the budget has already gone out against numbers that were never real.

Sources

shopAds runs and optimises your Google Ads for Shopify automatically, working from clean product data and tracking that actually records your sales. It keeps that discipline working for you wherever your customers are shopping, from search to social feeds to AI shopping surfaces. It is performance-priced, so you only pay a share of the revenue it brings you, and nothing at all unless it beats a 200% return. Get your tracking right, and shopAds puts it to work.

See how shopAds works