Skip to Content
StarsellDocs
Apps

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 eventTikTok eventWith
Any page openspage view (ttq.page())
A product page opensViewContentcontents, value, currency
Add to cartAddToCartcontents, value, currency
Checkout opensInitiateCheckoutcontents, value, currency
The thank-you page after an orderPurchasecontents, 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.

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.

On this page