Home › Integrations › TikTok Events API

TikTok Events API for any website.

To set up TikTok Events API on Wix, Webflow or a custom-coded site, install the Tagbreeze tag, then connect TikTok: 3 steps, a few minutes, two snippets to paste.

01

Set it up

  1. Add your site in Tagbreeze and paste the line given by the Install screen in the <head> of every page.
  2. In the tracking plan, add a rule for any conversion the tag cannot guess, such as "reaching /thank-you is a lead".
  3. Open Destinations and add your TikTok pixel.

Check it works. Use the test events tool in TikTok Events Manager.

02

What reaches TikTok

Each purchase and lead reaches TikTok twice, from the browser pixel and from the Events API, with the same event ID, and TikTok counts it once.

The tag follows navigations inside single-page apps and reads e-commerce events the site already pushes to a dataLayer.

03

Event by event

On Wix, Webflow or a custom-coded site, Tagbreeze reads 7 moments of a visit. All of them reach TikTok, under the names it expects.

On your siteRead byIn TikTok
A product page is openedThe dataLayer, when the site has oneViewContent
A product is added to the cartThe dataLayer, when the site has oneAddToCart
Checkout startsThe dataLayer, when the site has oneInitiateCheckout
Payment details are enteredThe dataLayer, when the site has oneAddPaymentInfo
An order is placedThe dataLayer, or a rule you addPurchase
A form is sentThe tag, when the form is sent, or a rule you addLead
A phone, e-mail or WhatsApp link is clickedThe tag, on the clickContact

04

What to know

Server delivery follows consent exactly like the browser: when a visitor refuses, nothing is sent by either road.

More: TikTok Events API · Any other website · Server-side tracking · Pricing

Questions

Before you ask.

My site is a single-page app. Does it work?

Yes. The tag follows navigations that do not reload the page, so each screen is seen as its own page.

My site blocks outside scripts with a security header. What then?

Tagbreeze detects it and offers three ways around it from the Install screen: a small file that serves the tag from your own domain, a server block for nginx, or the corrected header ready to copy.

Do I need a developer?

Only to paste one line in the page head, if you cannot edit the site yourself. The Install screen writes the message to forward.

Will TikTok count the sale twice?

No. The browser event and the server event carry the same event ID, which TikTok uses to keep one copy.

I already have TikTok on the site. Will it clash?

When the same TikTok ID is already on the page, Tagbreeze leaves the browser side to it, so nothing is counted twice.

Know what your ads really bring in.

It takes a few minutes. Nothing is changed on your site until you install the tag.

Add your site
Hands on a laptop beside parcels ready to ship