Home › Integrations › TikTok Events API

TikTok Events API for Shopify.

To set up TikTok Events API on Shopify, install the Tagbreeze tag, then connect TikTok: 3 steps, a few minutes, two snippets to paste.

01

Set it up

  1. Add your store in Tagbreeze and paste the theme line given by the Install screen in your theme.
  2. In Shopify, open Settings, Customer events, and add the custom pixel given by the Install screen.
  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 custom pixel is what captures checkout and purchase, because a theme cannot run code on Shopify’s checkout.

03

Event by event

On Shopify, 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 theme line, on the product pageViewContent
A product is added to the cartThe theme line, on the add-to-cart formAddToCart
Checkout startsThe custom pixel, on Shopify’s checkoutInitiateCheckout
Payment details are enteredThe custom pixel, on Shopify’s checkoutAddPaymentInfo
An order is placedThe custom pixel, when checkout completesPurchase
A form is sentThe theme line, when the form is sentLead
A phone, e-mail or WhatsApp link is clickedThe theme line, 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 · Shopify · Server-side tracking · Pricing

Questions

Before you ask.

Why two pieces on Shopify?

A theme cannot run code on Shopify’s checkout. The theme line covers the storefront; the custom pixel, added under Settings, Customer events, covers checkout, payment and the order.

Do I need Shopify Plus?

No. Custom pixels under Customer events are available on every Shopify plan.

Do I need a developer?

No. Each step is done from an admin screen, without code.

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