TikTok Pixel (Events API)
Send quiz events to TikTok Ads so you can build audiences of quiz takers, optimise campaigns on quiz leads, and measure quiz-driven sales. ShopperQuiz sends events through TikTok's Events API from its servers, so ad blockers and iOS privacy settings don't stop them, and purchases are reported with real revenue.
Available on: Starter plan and above · Platforms: Shopify and WooCommerce (identical)
Events sent to TikTok
| Event | When | Type |
|---|---|---|
SQ_QuizStart | The shopper starts the quiz | Custom |
Lead | The shopper enters their email | Standard |
SQ_QuestionAnswered | Each question is answered (includes question and answers) | Custom |
SQ_QuizComplete | The results page is reached | Custom |
ViewContent | Recommendations are shown | Standard |
SQ_AddToCart or AddToCart | Recommended products are added to the cart from the results | See below |
SQ_InitiateCheckout or InitiateCheckout | The shopper clicks checkout in the quiz | See below |
SQ_Purchase or Purchase | The order is paid (sent from your store's order notification, with revenue, order ID and the order's real items) | See below |
All events carry sq_quiz_id and sq_quiz_name. Products are identified by your store's product IDs, with content_type: product_group, so they match catalogs synced by the TikTok app for Shopify.
Cart, checkout and purchase event names
| Option | Names | Use when |
|---|---|---|
| Quiz-specific (default) | SQ_AddToCart, SQ_InitiateCheckout, SQ_Purchase | Your store already sends TikTok its own purchase events, for example through the TikTok app for Shopify. Avoids counting conversions twice |
| Standard | AddToCart, InitiateCheckout, Purchase | No other TikTok pixel tracks your purchases, and you want to optimise campaigns on these events |
TikTok can only optimise campaigns on standard events. Quiz-specific events work for reporting and audiences. You can always optimise on quiz leads, because Lead is standard.
Match quality
ShopperQuiz sends, hashed where TikTok requires it:
- the shopper's email (SHA-256 hashed)
- a hashed shopper ID
- the shopper's IP address and browser user agent
- TikTok's
_ttpbrowser cookie andttclidad-click ID, when available (for example, if the shopper arrived from a TikTok ad)
The IP address and user agent are deleted from ShopperQuiz after 30 days.
Connect TikTok
You need your Pixel Code and an Events API access token.
- In TikTok Ads Manager, go to Tools → Events → Web events and open your pixel. Copy the Pixel Code shown under the pixel name. It's about 20 capital letters and numbers, for example
C4ABCDEFGH1234567890. - On the pixel, open Settings → Events API → Generate Access Token. Copy the token.
- In ShopperQuiz, go to Integrations → TikTok Pixel → Connect TikTok, paste both values and save. ShopperQuiz checks them with TikTok before saving.
TikTok automatically expires access tokens that aren't used for about 90 days. If ShopperQuiz reports an invalid or expired token, generate a new one and save it in the drawer.
What gets tracked (settings)
| Toggle | Events |
|---|---|
| Funnel events | SQ_QuizStart, SQ_QuizComplete |
| Per-question events | SQ_QuestionAnswered |
| Leads | Lead |
| Commerce & revenue | ViewContent, add to cart, checkout and purchase |
Sync per quiz: turn TikTok off for individual quizzes. All quizzes are tracked by default.
Test your setup
- In TikTok Events Manager, open your pixel → Test events and copy the test event code.
- Paste it in the drawer under Test events.
- Send test event sends one
SQ_ConnectionTestevent, which appears in Test events within seconds. - Test a full quiz run turns on test mode for 2 hours. Every event from your next quiz runs, including the purchase, shows in Test events.
Unlike Meta, TikTok excludes test events from your real data. They appear only on the Test events page. Turn test mode off (or let it expire) before you rely on reports.
Use it in TikTok
- Audiences: Assets → Audiences → Create → Custom audience → Website traffic with event
SQ_QuizCompleteorLead. - Lead campaigns: optimise on the
Leadevent. - Sales campaigns: choose Standard commerce names to optimise on
Purchase(only if no other TikTok pixel reports your purchases).
Disconnect
Integrations → TikTok Pixel → Manage → Disconnect TikTok stops sending events and deletes the saved access token. Data already in TikTok is kept.
Troubleshooting
| Problem | Fix |
|---|---|
| Can't save (invalid token) | Generate a new token on the same pixel. Make sure the Pixel Code, not the pixel name, was pasted |
| Test events show, but reports are empty | Turn off test mode; TikTok doesn't count test events |
No InitiateCheckout | It only fires from the checkout button inside the quiz |
| No purchase | The order must be linked to the quiz and paid (see Shopify / WooCommerce) |
| Card says "Needs attention" | TikTok rejected recent events, usually an expired or revoked token. Generate a new one and save it |
Was this page helpful?