TikTok Events API & Pixel Recipe
Connect TikTok tracking to your store via Cloudflare Zaraz in 1 click.
TikTok Events API & Pixel Built-in Recipe
Section titled “TikTok Events API & Pixel ”The TikTok Recipe sends your store’s events to the TikTok Events API from Cloudflare’s servers through Cloudflare Zaraz. Your pages don’t load TikTok’s pixel script.
What You Need
Section titled “What You Need”- TikTok Pixel ID (Required): Found in TikTok Ads Manager under Assets > Events > Web Events (starts with
C, e.g.C1234567890ABCDEFGH). - TikTok Events API Access Token (Required): Zaraz sends TikTok events from Cloudflare’s servers through the Events API, so nothing reaches TikTok without it. Generate it under your pixel’s Settings tab in TikTok Events Manager.
3-Step Setup
Section titled “3-Step Setup”- Go to WP Zbridge > Zaraz Recipes in WordPress.
- Toggle on TikTok Events and enter your Pixel ID.
- Click Sync to Zaraz.
Events Tracked Automatically
Section titled “Events Tracked Automatically”| Customer Action | TikTok Event |
|---|---|
| Browsing pages | ViewContent |
| Viewing a product | ViewContent |
| Adding to cart | AddToCart |
| Starting checkout | InitiateCheckout |
| Choosing a payment method | AddPaymentInfo |
| Completing an order | CompletePayment |
| Searching the site | Search |
| Submitting a form | SubmitForm |
| Clicking an email or phone link | Contact |
| Creating an account | CompleteRegistration |
Zaraz’s TikTok component sends page views as ViewContent. Refunds are not sent to TikTok.
With Send customer details with server-sent purchases (Pro, under WP Zbridge > E-Commerce), purchases sent by the server fallback also carry the buyer’s email and phone, which Zaraz’s TikTok tool hashes before sending. It’s off by default.