TikTok Conversion Tracking: How to Set It Up End to End
To set up TikTok conversion tracking, you create a TikTok pixel in Ads Manager, install the base code on your website, add events to track, and optionally configure the Events API. You then verify events fire correctly in Events Manager and implement deduplication if you use both pixel and API together.
TL;DR:
- TikTok conversion tracking measures actions users take after clicking or viewing your ads.
- The TikTok pixel runs in the browser; the Events API sends events from your server.
- Use both for the most accurate data, but always implement deduplication.
- Set up via Ads Manager: create pixel, install code, add events, configure Events API.
- Verify in Events Manager, then check GA4 and Google Ads integrations for cross-platform reporting.
What Is TikTok Conversion Tracking?
TikTok conversion tracking is a measurement system that records specific actions users complete on your website or app after they interact with your TikTok ads. A conversion can be a purchase, a sign-up, a form submission, an app install, or any other action that matters to your business. When a user clicks or views your TikTok ad and then completes a tracked action, TikTok records that conversion and attributes it back to the ad campaign that drove it.
The value of conversion tracking goes beyond counting actions. It powers TikTok's ad optimization algorithms, which use conversion data to find more users likely to complete the same actions. Without conversion tracking, TikTok's delivery system cannot optimize for business outcomes and falls back to proxy metrics like clicks or impressions. It also enables you to measure return on ad spend, calculate cost per acquisition, and budget across campaigns based on actual performance. For a broader overview, see our complete guide to TikTok advertising.
TikTok Pixel vs Events API: What Is the Difference?
The TikTok pixel and the Events API serve the same purpose -- tracking conversions -- but work differently. The pixel is a client-side tracker: JavaScript code runs in the user's browser and sends event data to TikTok when a page loads. The Events API is a server-side integration where your server sends HTTP requests directly to TikTok's API endpoints, bypassing the browser entirely.
Most advanced advertisers run both in parallel. The pixel captures browser-side events and the Events API provides a backup for events the pixel might miss due to ad blockers, failed JavaScript, or browser privacy restrictions. The Events API is immune to these issues, making it more reliable for critical events like purchases and lead submissions.
Here is how the two methods compare:
| Feature | TikTok Pixel | Events API |
|---|---|---|
| What it is | Client-side JavaScript code placed on website pages | Server-side HTTP requests sent to TikTok's API endpoints |
| What it captures | Browser events: page views, clicks, form submissions, purchases | Server-confirmed events: completed purchases, qualified leads, backend events |
| When to use | For quick setup, basic event tracking, and audience building | For reliable data, privacy-resilient tracking, and mission-critical conversions |
| Setup effort | Low: copy and paste code, add event snippets | Medium to high: requires server-side development or integration with existing backend |
For a deeper look at each method, read our guides on TikTok pixel installation and TikTok Events API setup.
How Do You Set Up the TikTok Pixel?
Setting up the TikTok pixel starts with creating a pixel in TikTok Ads Manager, copying the base code, and installing it on every page of your site. Then you add event-specific code snippets to the pages where conversions happen.
In TikTok Ads Manager, navigate to Events under Tools, click Web Events, then Manage, and create a new pixel. Give it a descriptive name. TikTok offers several installation methods: manually add code to your site's HTML, use a partner integration like Shopify or Google Tag Manager, or send the code to a developer.
The base pixel code is a JavaScript snippet placed in the <head> section of every page. If you use Google Tag Manager, deploy it through a custom HTML tag that fires on all pages. The base code initializes the pixel but does not track specific events. You need to add standard event codes for each conversion action: ViewContent, AddToCart, InitiateCheckout, CompletePayment, SubmitForm, and CompleteRegistration. Each event code includes parameters like value, currency, and content type. Place events on the correct pages -- CompletePayment on the order confirmation page, SubmitForm on the thank-you page. For actions not covered by standard events, TikTok supports custom events with descriptive names you define.
How Do You Set Up the TikTok Events API (CAPI)?
The TikTok Events API sends conversion data from your server directly to TikTok via server-to-server communication. This requires backend development but yields more reliable data unaffected by ad blockers, browser privacy settings, or JavaScript errors.
Generate an access token in TikTok Ads Manager under Events, then Web Events, then Settings. Click the Events API tab and generate a new token. Store it securely -- you will include it in the Authorization header of every request. The API accepts JSON payloads containing the pixel ID, a test event code, and event objects specifying the event name, Unix timestamp, and parameters. Include user data such as email, phone number, or external ID for matching. TikTok hashes this data, protecting privacy while enabling attribution.
Integrate the Events API into your backend: trigger calls when an order is confirmed or a lead is verified server-side. Send events only when the action is confirmed, not when initiated in the browser. If you lack development resources, many ecommerce platforms and CDPs offer pre-built connectors. You can also use a server-side Google Tag Manager container to forward events to TikTok's API.
How Do You Verify TikTok Conversion Events Are Firing?
After installing the pixel and configuring the Events API, verify events fire correctly before launching campaigns.
The TikTok Pixel Helper browser extension shows which pixel events are firing on any page. Install it, navigate your site, and walk through each conversion flow. Confirm every expected event appears. If an event is missing, check the event code placement and the browser console for JavaScript errors.
The Events Manager Test Events tab shows events in real time as TikTok receives them -- essential for testing the Events API since server-side events are invisible to the Pixel Helper. Include a test event code in your API payloads during testing to prevent test events from counting in production reports. For ongoing monitoring, check the Events Manager dashboard regularly for event volume, match rates, and diagnostic errors.
How Do You Avoid Double Counting with Pixel and Events API?
When you run both the pixel and the Events API, the same conversion can be reported twice, inflating your numbers and wasting ad spend. TikTok provides a deduplication mechanism you must implement from the start.
The system works by assigning a unique event ID to each conversion. Include the same ID in both the Events API payload and the pixel event code. When TikTok receives both events with the same ID, it counts the conversion only once.
In practice: when a user completes a purchase, your backend generates a unique order ID, sends it to TikTok via the Events API as the event ID, and your confirmation page renders the pixel with the same ID in the event_id parameter. TikTok deduplicates automatically. Build this logic into your checkout flow and backend. If you use Shopify, check whether its TikTok integration already handles deduplication. Verify by checking the Events Manager for signs of double counting. For more context, see our guide on TikTok ads measurement and attribution.
Can You Track TikTok Conversions in GA4 or Google Ads?
You can import TikTok conversion data into GA4 and Google Ads, but TikTok does not offer a native integration for either. You need intermediate tools to bridge the gap.
For GA4, add UTM parameters like utm_source=tiktok, utm_medium=cpc, and utm_campaign to your TikTok ad URLs. When users click through, GA4 captures these parameters and attributes sessions and conversions to TikTok. View performance in GA4's acquisition reports. Note that this measures conversions through your GA4 tracking, not TikTok's pixel, so numbers may differ.
For Google Ads, import GA4 conversions as secondary conversion actions for reporting. However, Google Ads optimizes based on its own conversion tracking, not imported data. To use TikTok conversions to inform Google Ads bidding, set up offline conversion imports or a third-party attribution tool. Alternatively, use a customer data platform to centralize conversion data from all channels and send unified data to GA4 via the Measurement Protocol or to Google Ads via offline imports.
Troubleshooting: Why Are My TikTok Conversions Low?
Low or zero conversion counts are common after setting up tracking. Systematic troubleshooting usually resolves the issue.
First, verify that your pixel and events are firing. Use the TikTok Pixel Helper to check the base pixel loads on every page and event codes fire where expected. If the Pixel Helper shows nothing, check the pixel code placement and look for JavaScript errors. In Google Tag Manager, ensure the pixel tag is published with correct triggers. A common mistake is placing the pixel inside a tag that fires only on specific pages.
Second, check the Events Manager Diagnostics tab for missing parameters, incorrect event names, or authentication failures. Monitor your event match rate -- a low rate means events are received but cannot be attributed. Send as much user data as possible (email, phone) to improve it. Third, check your campaign attribution window. If it is too short, late conversions are excluded. Also confirm your conversion events are selected as optimization goals in your campaign settings.
Fourth, consider browser and privacy factors. Ad blockers, Safari's Intelligent Tracking Prevention, and Firefox's Enhanced Tracking Protection all block third-party scripts including the TikTok pixel. This is a strong reason to implement the Events API, which is immune to browser restrictions. Finally, check for platform-specific issues. On Shopify, verify the TikTok channel app is installed and the pixel is connected. A common ecommerce mistake is placing the CompletePayment event on the checkout page instead of the order confirmation page, causing events to fire before purchases are completed.
Setup Checklist
Use this checklist to confirm your TikTok conversion tracking setup is complete:
- Created a TikTok pixel in Ads Manager and named it clearly.
- Installed the base pixel code on every page, either directly or through a tag manager.
- Added standard event codes (ViewContent, AddToCart, CompletePayment, etc.) to the correct pages.
- Created custom events for actions not covered by standard events.
- Generated an Events API access token and stored it securely.
- Implemented Events API calls for confirmed server-side conversions.
- Included deduplication event IDs in both pixel and Events API events.
- Verified all events fire using the TikTok Pixel Helper browser extension.
- Checked the Events Manager Test Events tab for real-time validation.
- Confirmed event match rates are acceptable in the Events Manager dashboard.
- Added UTM parameters to TikTok ad URLs for GA4 attribution.
- Tested a complete conversion flow from ad click to conversion and confirmed the event appears in reports.
Frequently Asked Questions
What Is the Difference Between the TikTok Pixel and the Events API?
The TikTok pixel is a client-side JavaScript tracker that runs in the user's browser and sends event data when a page loads or a specific action occurs. The Events API is a server-side integration that sends conversion data directly from your server to TikTok's servers through HTTP requests. The pixel is easier to set up but can be blocked by ad blockers and browser privacy settings; the Events API is more reliable but requires backend development work.
How Do You Verify TikTok Conversion Events Are Firing?
Use the TikTok Pixel Helper browser extension to see pixel events firing in real time on your website pages. For Events API events, use the Test Events tab in the Events Manager, which shows server-side events as TikTok receives them. Check the Events Manager dashboard regularly for event volume, match rates, and any diagnostic errors. Walk through your complete conversion flows and confirm that every expected event appears in all verification tools.
How Do You Avoid Double Counting with the Pixel and Events API?
Assign a unique event ID to each conversion and include it in both the pixel event and the Events API payload. TikTok uses this event ID to recognize duplicate events and count the conversion only once. Your backend should generate the event ID (for example, an order ID) and pass it to both the server-side API call and the browser-side pixel event code on the confirmation page.
Can You Track TikTok Conversions in GA4?
Yes, but not natively. Add UTM parameters to your TikTok ad URLs to pass campaign data to GA4. When users click your ads and land on your site, GA4 captures the UTM parameters and attributes sessions and conversions to TikTok. You can then view TikTok performance in GA4's acquisition reports. The numbers may differ from TikTok's own reporting because GA4 uses its own attribution model.
Why Are My TikTok Conversions Lower Than My Clicks?
Several factors can cause this. Not every user who clicks your ad completes a conversion action, so a gap between clicks and conversions is normal. Technical issues like missing pixel code, JavaScript errors, or ad blockers can prevent the pixel from firing. A short attribution window may exclude conversions that happen after the window closes. Low event match rates mean TikTok cannot attribute events to specific users. Check your pixel setup, attribution settings, and event match rate in the Events Manager to identify the specific cause.