TikTok Agency Account

TikTok Pixel and Events API Setup Guide (2026)

By VNOX Media TeamNovember 17, 202610 min read

On TikTok, the algorithm decides who sees your ads based on the conversions you report. If your tracking misses purchases, TikTok learns from the wrong people. If it counts the same purchase twice, your ROAS looks better than it is and you scale the wrong campaigns. Either way, money is wasted before a single creative is tested.

This guide walks through a complete TikTok Events API setup in 2026, together with the TikTok Pixel: what each one does, which events to send, the exact steps, how event deduplication works, the ways to connect, a Shopify shortcut, how to test, common errors and fixes, privacy basics and a final checklist before you spend.

Setting up a store? Read our TikTok ads for ecommerce playbook. Need an account? See the TikTok ad account plans.

Want your tracking checked?

Our team reviews your TikTok Pixel and Events API setup before you scale on a VNOX TikTok agency account.

TikTok Events API setup with the TikTok Pixel and deduplication
Browser and server events, counted once.

Why Tracking Decides TikTok Results

TikTok's bidding optimises toward the events you send. Clean, complete conversion data helps it find more buyers like your best customers. Missing or duplicated data does the opposite. Browser privacy features and ad blockers can stop some Pixel events, which is why server-side tracking through the Events API has become a standard part of any serious TikTok setup.

TikTok Pixel vs Events API

TikTok Pixel vs Events API comparison
How the two tracking paths differ.

The TikTok Pixel is a piece of code on your website that sends events from the visitor's browser. The Events API sends events from your server or platform directly to TikTok. TikTok recommends running both, often called a dual setup: the Pixel captures what it can, and the Events API fills in what the browser misses.

FactorTikTok PixelEvents API
Runs inVisitor's browserYour server or platform
Affected by blockersSometimesNo
Setup effortLowMedium
MatchingBrowser signalsCan add hashed email or phone
RoleAlways onAdds accuracy and coverage

Standard Events to Send

Standard events for TikTok Events API setup
Use TikTok's exact event names.

TikTok defines standard events with fixed names that work for reporting, optimisation and audiences. For most advertisers, these matter most:

EventWhen it firesWho needs it
ViewContentProduct or key page viewedStores and lead gen
AddToCartItem added to cartStores
InitiateCheckoutCheckout startedStores
AddPaymentInfoPayment details enteredStores
CompletePaymentPurchase completedStores (send value and currency)
CompleteRegistrationSign-up or lead formLead gen, apps, SaaS

Event names can be updated by TikTok over time, so check the current list in the Business Help Center when you set up.

TikTok Events API Setup in 7 Steps

TikTok Events API setup in 7 steps
From pixel to tested server events.

Step 1: Create your pixel

In TikTok Events Manager, create a web pixel connected to your Business Center.

Step 2: Install the pixel

Use a platform app (such as Shopify), Google Tag Manager or the base code on every page.

Step 3: Map standard events

Fire ViewContent, AddToCart, InitiateCheckout and CompletePayment at the right moments, with value and currency on purchases.

Step 4: Generate an access token

Open your pixel's settings in Events Manager and create an Events API access token.

Step 5: Connect the Events API

Use a partner integration, a server-side tag manager template or direct server code, with your pixel ID and token.

Step 6: Add event_id for deduplication

Send the same event_id with the same event from both the Pixel and the Events API.

Step 7: Test before spending

Use Test Events in Events Manager and place a real test order.

Event Deduplication in Your TikTok Events API Setup

Event deduplication in TikTok Events API setup
What makes deduplication work.

Deduplication stops TikTok counting one purchase twice when both paths send it. According to TikTok's deduplication guide:

  • It is required when the same event, such as CompletePayment, is sent through both the Pixel and the Events API.
  • It is not required if each path sends different events, for example AddToCart through the Pixel and CompletePayment through the Events API.
  • Three things must match: the pixel ID, the event name and the event_id.
  • Timing: identical events arriving within 48 hours of the first one are deduplicated.

The simplest approach is to generate one unique ID per conversion (for example, your order ID) and pass it as event_id on both paths.

4 Ways to Connect the Events API

Ways to connect for TikTok Events API setup
Choose the method your team can maintain.
  • Platform app: Shopify and other ecommerce platforms can share server events through their TikTok integration.
  • Server-side Google Tag Manager: community templates send Events API calls with your pixel ID and token.
  • Partner tools: customer data platforms and analytics tools offer TikTok connectors.
  • Direct API: your developers send events from your backend for full control.

TikTok Events API Setup by Business Type

BusinessMain eventsNotes
Online storeViewContent, AddToCart, InitiateCheckout, CompletePaymentSend value and currency on purchases
Lead generationViewContent, CompleteRegistrationSend server events from your CRM when a lead qualifies
SaaS and subscriptionsCompleteRegistration, SubscribeTrack trials and paid starts separately
Mobile appsInstall, in-app purchaseUsually tracked with an MMP or TikTok SDK, not only the web Pixel

Whatever your model, the principle of a good TikTok Events API setup is the same: send the events that match real business value, with consistent names and IDs, from both browser and server. Lead gen businesses gain the most from the server side, because they can send an event when a lead becomes qualified in the CRM, which teaches TikTok to find better leads, not just more form fills.

Keep it working after launch

Tracking breaks quietly. A theme update, a new checkout app or a tag manager change can stop events without any warning in your ads. After launch, check Events Manager diagnostics weekly, re-test a purchase after any site change and compare TikTok-reported purchases with your store orders every month. A gap of more than a small percentage is a sign something needs fixing. On a VNOX TikTok account, your manager can help spot sudden drops in reported conversions before they hurt your bidding.

('

By Business Type

', ('shopify', 'Shopify Setup'))

For Shopify stores, the quickest TikTok Events API setup uses the TikTok app for Shopify. It connects your store to your Business Center, installs the TikTok Pixel and syncs your catalog. In the app's data sharing settings, choose the highest level available to enable server-side event sharing alongside the Pixel. Then confirm in Events Manager that purchase events show value and currency and that browser and server events deduplicate.

How to Test Your TikTok Events API Setup

  • Open Test Events in TikTok Events Manager.
  • Browse your site, add to cart and complete a test purchase.
  • Check that each event arrives from both the browser and the server.
  • Confirm the purchase shows the correct value and currency.
  • Check diagnostics for warnings about missing parameters or duplicates.

Do this before every major site change, not just once at launch.

Common Errors and Fixes

ProblemLikely causeFix
Purchases counted twiceMissing or different event_idSend the same event_id on both paths
No server eventsWrong token or pixel IDRegenerate the token and check the pixel ID
Purchase value is zeroValue not passedSend value and currency on CompletePayment
Events fire on wrong pagesBad trigger setupFix triggers in your tag manager or app
Two pixels on one siteOld code left behindRemove duplicate pixel installs

Privacy and Consent

Where privacy laws require it, ask for consent before tracking and respect the user's choice on both the Pixel and the server. If you send hashed email or phone for better matching, do so only with valid consent and a clear privacy policy. Good tracking and good privacy are not in conflict; consented, accurate data is what TikTok's systems work best with.

Final Checklist Before You Spend

Final checklist for TikTok Events API setup
Six checks before you scale.
  • Pixel fires on every page.
  • Purchase events include value and currency.
  • Server events appear in Test Events.
  • Browser and server events deduplicate.
  • Hashed email or phone matching is on, where consented.
  • Your consent banner is respected.

With this in place, your TikTok Events API setup gives TikTok the data it needs to find buyers. Launch on a TikTok agency ad account with the capacity to scale once the data proves a winner. Compare plans in our TikTok price guide or on the TikTok plans page.

Why tracking matters even more on an agency account

An agency account gives you higher spend capacity from day one, which means you can spend faster than on a new self-serve account. That is a big advantage when tracking is right, and an expensive one when it is wrong. A clean TikTok Events API setup makes sure that extra capacity goes to the campaigns that really drive sales. Our team can review your Pixel and server events as part of onboarding. Need a general health check first? Try our free Account Health Assessment.

Real-world examples

These illustrative scenarios show common tracking situations. They are examples, not client results.

The doubled ROAS

A store sees ROAS jump after adding the Events API. The cause: no event_id on the Pixel. Adding the order ID as event_id on both paths fixes it.

The missing purchases

A brand loses many browser events to blockers. Adding server events recovers them, and cost per purchase drops as TikTok learns from better data.

The lead gen form

A service business sends CompleteRegistration through both paths and optimises for qualified leads instead of clicks.

Frequently Asked Questions

What is the TikTok Events API?

A server-to-server connection that sends conversion events from your server or platform directly to TikTok, alongside the browser-based TikTok Pixel.

Do I need both the Pixel and the Events API?

TikTok recommends running both. The Pixel captures events in the browser and the Events API captures events the browser may miss, with deduplication preventing double counting.

When is deduplication required?

When the same event, such as CompletePayment, is sent through both the Pixel and the Events API. If each path sends different events, deduplication is not required.

How does TikTok deduplicate events?

Both copies must share the same pixel ID, the same event name and the same event_id. TikTok deduplicates identical events that arrive within a 48-hour window from the first event.

Where do I get an Events API access token?

In TikTok Events Manager, open your pixel's settings and generate an access token in the Events API section.

Which events should a store send?

At minimum ViewContent, AddToCart, InitiateCheckout and CompletePayment, with value and currency on purchase events.

How do I test my setup?

Use the Test Events tool in TikTok Events Manager to confirm that pixel and server events arrive and deduplicate correctly.

Is the setup easier on Shopify?

Yes. TikTok's Shopify app installs the Pixel and can enable server-side sharing through its data sharing settings.

Should I send customer data?

You can send hashed email or phone to improve matching. Only do so with valid consent and a clear privacy policy.

Does a VNOX agency account change the setup?

No. The Pixel and Events API are connected to your account through your Business Center as usual. Our team can help you check the setup.

Conclusion

A complete TikTok Events API setup has five parts: a Pixel on every page, the right standard events, a server connection through the Events API, matching event_id values for deduplication and a proper test before you spend. Get those right and TikTok's bidding learns from real buyers, so every dollar you scale works harder.

See every plan on our TikTok ad account page, read how to rent a TikTok agency ad account or contact our team for a tracking review. Explore every platform on the VNOX Media homepage.

Scale TikTok on clean data

Pixel + Events API check · Gold, Diamond or Platinum · issued in 24–48h · 24/7 support.

V
Written by the VNOX Media Team

VNOX Media provides agency ad accounts for TikTok, Meta, Google, Snapchat and Microsoft Ads to 1,700+ advertisers in 20+ countries.