TikTok has become a major paid traffic source for Shopify stores, but many brands install the TikTok Pixel through the Shopify app and assume it is fully working. The reality is that browser-only pixel tracking loses a significant portion of conversions due to ad blockers, iOS privacy changes, and browser-side failures.
This guide covers the complete TikTok Pixel setup for Shopify — including the Events API for server-side tracking — so you capture as many conversions as possible and give TikTok’s algorithm accurate data to optimise with.
How TikTok Tracking Works: Pixel vs Events API
TikTok tracking has two components:
- TikTok Pixel — a JavaScript snippet that fires in the browser when a user takes an action on your site
- TikTok Events API — a server-side connection that sends event data directly from your server to TikTok, bypassing the browser
Both should be running simultaneously. The Events API sends the same events as the pixel but from your server, so it is not affected by ad blockers or browser restrictions. When both fire for the same event, TikTok deduplicates them so you do not count the conversion twice.
Step 1: Create Your TikTok Pixel in TikTok Ads Manager
Go to TikTok Ads Manager → Assets → Events → Web Events. Click Set Up Web Events and choose TikTok Pixel. Give your pixel a name (e.g. “Shopify Pixel”) and select Manually Install Pixel Code to get the pixel ID. You will need this ID for the Shopify app connection.
Step 2: Install the TikTok Shopify App
In your Shopify admin, go to the App Store and search for TikTok. Install the official TikTok app by TikTok. Connect your TikTok Ads account when prompted, then select the pixel you created in step 1.
The app will automatically add the TikTok Pixel base code to your Shopify theme and enable the Events API connection using Shopify’s Customer Events system. This handles the server-side deduplication automatically.
Step 3: Configure Standard Events
The TikTok Shopify app automatically tracks these standard events when set up correctly:
- ViewContent — fires when a user views a product page
- AddToCart — fires when a user adds an item to their cart
- InitiateCheckout — fires when a user starts the checkout process
- CompletePayment — fires when a purchase is confirmed on the thank you page
The most important event is CompletePayment. This is what TikTok uses to optimise your campaigns and calculate ROAS. If it is not firing, your campaign performance data is incomplete.
Step 4: Enable Customer Information Sharing
In the TikTok Shopify app settings, enable Advanced Matching. This passes hashed customer data (email, phone number) with your events, which dramatically improves TikTok’s ability to match events back to TikTok users.
Advanced Matching improves your Event Match Quality score (covered in a separate guide), which directly affects how well TikTok can attribute conversions to your ads.
Step 5: Verify Setup with TikTok Pixel Helper
Install the TikTok Pixel Helper Chrome extension. Then visit your Shopify store, view a product, add it to cart, and complete a test purchase. The Pixel Helper will show you which events fired, whether the Events API confirmation appeared, and whether Advanced Matching data was sent.
What you want to see after a test purchase:
- CompletePayment fired in the browser (pixel)
- CompletePayment confirmed from server (Events API)
- Event deduplicated (showing 1 event, not 2)
- Advanced Matching fields populated (email, phone)
Common TikTok Pixel Issues on Shopify
CompletePayment not firing
The most common issue. Usually caused by Shopify’s checkout extensibility. The TikTok app needs to be updated to use Shopify’s Customer Events API (the new method) rather than the legacy thank you page script injection. Check that your TikTok app is on the latest version and that Customer Events is enabled in Shopify Settings.
Duplicate events being counted
If both pixel and Events API fire but deduplication is not working, TikTok counts conversions twice. Check that you have a consistent event_id set for both the browser and server events. The TikTok Shopify app handles this automatically, but custom setups need to implement deduplication manually.
Low Event Match Quality
If Advanced Matching is not enabled or customer data is not being passed correctly, TikTok cannot match events to users effectively. This reduces the value of the conversion data you are sending.
Get Your TikTok Pixel Verified
A pixel that appears to be working is not always working correctly. The most dangerous setup is one where events fire but with missing data, wrong values, or without the Events API backup — because TikTok’s algorithm still runs, just on bad data.
We audit your full TikTok Pixel and Events API setup on Shopify and confirm every event is firing correctly. Book your free Shopify tracking audit here.