TikTok Pixel
Send page views, product views, carts, checkouts and purchases to your TikTok pixel for TikTok ads, after the visitor's marketing consent.
The TikTok Pixel app loads TikTok's pixel on the storefront and sends standard events, so your TikTok ads can measure and optimize for sales.
Set it up
Find your pixel ID
In TikTok Ads Manager: Tools, Events, Web events, your pixel. The pixel ID is 15 to 30 capital letters and digits, for example CABCDE12345FGHIJ6789.
Install and paste it
In the store: Apps, TikTok Pixel, Install. Paste the ID under Pixel ID and Save. Lowercase letters are fixed for you.
Know when it runs
The pixel needs marketing consent where your cookie banner shows. Read the step, then Mark done. TikTok's Pixel Helper or Test events in Events Manager shows your visits while you browse the store with marketing cookies accepted.
What it sends
| Store event | TikTok event | With |
|---|---|---|
| Any page opens | page view (ttq.page()) | |
| A product page opens | ViewContent | contents, value, currency |
| Add to cart | AddToCart | contents, value, currency |
| Checkout opens | InitiateCheckout | contents, value, currency |
| The thank-you page after an order | Purchase | contents, value, currency |
contents lists each item with content_id (the product's id), content_type product, content_name, quantity and price. Purchase is TikTok's current name for what was CompletePayment. Every event goes out with an event_id; the purchase's is purchase_ followed by the order's id.
A quick Add button on a product card knows only which product was added, so its AddToCart has no value.
Consent
The pixel waits for marketing consent wherever the store's cookie banner applies. Nothing from TikTok loads before. Taking consent back stops the events and calls ttq.revokeConsent(). See Privacy and cookies.
Not included
TikTok's Events API (sending events from the server with an access token) isn't part of the app yet. The event ids are already in place for it.
Related
Meta Pixel
Send page views, product views, carts, checkouts and purchases to your Meta pixel for Facebook and Instagram ads, after the visitor's marketing consent.
Morning
A tax invoice receipt or a receipt in Morning (Green Invoice) for every paid order, a credit invoice for full refunds, retries when Morning fails, and the document on the order and in webhooks.