TikTok Pixel and Events API: Questions and Answers
TikTok Pixel and Events API questions: 78 questions with model answers on the TikTok Pixel, standard events, the Events API, GTM and attribution, from Basic to Advanced.
- Model answers
- Basic to Advanced
- Search and filter
Pixel setup, standard events, Events API, GTM, deduplication and Marketing API. Questions are grouped from Basic to Advanced, each with a model answer. Use the filters or search to find what you need, then take the free TikTok Ads test to check your score. For official definitions and policies, see the TikTok Business Help Center.
What these TikTok Pixel and Events API questions cover
These TikTok Pixel questions are the most technical on this site. They cover installing the Pixel directly and through GTM, standard and custom events, advanced matching, the Events API, event deduplication, attribution windows, testing with the Pixel Helper and the TikTok Marketing API.
Every optimisation decision depends on clean tracking, so senior interviews always include Pixel questions. Start with the basics, then work through the technical deep dive.
All questions, from Basic to Advanced
Basic questions
What are TikTok standard events?
- ViewContent, AddToCart, InitiateCheckout, AddPaymentInfo, Purchase (formerly CompletePayment), PlaceAnOrder, CompleteRegistration, SubmitForm, Contact, Lead, Subscribe, Search, Download, ClickButton, AddToWishlist (names evolve – check current list).
How do you install the TikTok Pixel?
- Events Manager → Connect data source → Web → Pixel → manual code (base code in head + ttq.track events) or partner integration (Shopify, WooCommerce, GTM template).
What is the base pixel code doing?
- Loads TikTok's library, initializes ttq with pixel ID and tracks page views (ttq.page()).
Intermediate questions
How do you fire a purchase event with value?
- ttq.track('Purchase', {contents:[{content_id:'SKU1', content_type:'product', quantity:1, price:450}], value:450, currency:'AED'}, {event_id:'ORD1045'}).
What parameters are important for e-commerce events?
- content_id/contents (matching catalog), content_type, value, currency, quantity, price, order_id/event_id.
What is the Events API?
- Server-side API (Business API) to send web/app/offline events to TikTok with user identifiers (hashed email/phone, external_id, ttclid, IP, user agent) – improves match rates and reliability.
Expert insight: Send hashed email/phone/external_id plus ttclid, _ttp cookie, IP and user agent with every server event – identifiers drive match rate and therefore optimization quality.
What is ttclid?
- TikTok Click ID appended to landing URLs; store and send with Events API events to improve attribution (like gclid/fbclid).
What is the _ttp cookie?
- First-party cookie set by the TikTok Pixel identifying the browser; send it with server events for matching.
How does deduplication work between Pixel and Events API?
- Send the same event name and event_id from both; TikTok deduplicates within a time window (TikTok supports dedupe for browser–server events; check current window, typically 48 hours).
Expert insight: Generate the event_id once (e.g. order ID) and pass it to both the browser ttq.track(..., {event_id}) and the server payload. Two server integrations (e.g. Shopify app + sGTM) without shared IDs = double counting.
What is Advanced Matching on TikTok?
- Sending hashed customer info (email, phone, external_id) with pixel events (automatic or manual) to improve matching.
What is the Event Quality / match quality indicator?
- Events Manager diagnostics showing how well events can be matched (parameters coverage, match keys); improve with email/phone, ttclid, external_id, IP/UA.
What are TikTok's attribution window options?
- Click-through: 1, 7, 14, 28 days; view-through: off, 1, 7 days; plus engaged view-through attribution (EVTA) for users who watched ≥ 6 seconds without clicking (check availability/defaults).
What's engaged view-through attribution (EVTA)?
- Credits conversions to users who watched an ad for at least ~6 seconds (or interacted) and converted within the window without clicking – reflects TikTok's video-driven influence.
Expert insight: EVTA explains why TikTok often reports more conversions than GA4: many users watch, don't click, then search or visit later. Report EVTA separately and validate with lift/holdouts.
Why do TikTok conversions often look lower in Google Analytics?
- Many TikTok users don't click; they search later or convert on another device; GA4 last-click undervalues TikTok; use TikTok attribution, post-purchase surveys, lift tests, MMM.
Expert insight: Combine four lenses: platform attribution, backend (MER), post-purchase surveys, and incrementality tests – never judge TikTok on GA4 last-click alone.
How do you send offline conversions to TikTok?
- Events API (offline events) or Offline Event Sets/upload; include hashed identifiers and event time; used for in-store sales or CRM conversions.
How do you send CRM lead quality back to TikTok?
- Events API events for qualified leads/won deals with identifiers (lead ID from Instant Form, email/phone, ttclid) – then optimize toward deeper events where supported (e.g. "Qualified lead" custom events).
What is the TikTok Pixel Helper?
- Chrome extension to verify pixel installation and events firing with parameters.
How do you test events?
- Events Manager → Test events with test code; Pixel Helper; check diagnostics for missing parameters.
What's the Shopify integration for TikTok?
- TikTok app for Shopify: connects Business Center, pixel + Events API (data sharing level "maximum"), catalog sync, Shop (where available).
Why must content_id match catalog IDs?
- For catalog/Video Shopping Ads retargeting; mismatched IDs break dynamic product recommendations.
How do you track WhatsApp clicks from TikTok ads?
- Event on wa.me button click (Contact/ClickButton) via pixel/GTM; for messaging ads use TikTok's messaging metrics and CRM outcomes.
Advanced questions
Design a full tracking setup for a UAE lead-gen business on TikTok.
- Pixel with SubmitForm/Contact events + Events API from server with hashed email/phone, ttclid, event_id dedupe; Instant form leads synced to CRM (lead ID); CRM sends QualifiedLead/Won events via Events API; GA4 with UTMs for cross-channel; post-lead survey "where did you hear about us".
Expert insight: Capture ttclid on landing, store with the lead in CRM, and send QualifiedLead/Won via Events API with lead_id or hashed email/phone – closes the loop from TikTok ad to revenue.
Purchases doubled in TikTok reporting after adding Events API. Diagnose.
- Missing/inconsistent event_id causing no dedupe; multiple integrations (Shopify app + GTM) sending events; fix by single source and matching event_id.
TikTok reports 50 purchases; Shopify shows 20 with UTM TikTok. Explain.
- View-through/EVTA conversions, cross-device, 7-day windows vs last-click, users searching later; evaluate with incrementality/lift and blended MER.
How do you track Instant Form leads in CRM?
- Native CRM integrations (HubSpot, Salesforce, Zapier/Make), webhook/API lead download; store lead_id, ad_id, campaign_id.
What are typical tracking issues with in-app browser on TikTok?
- TikTok in-app browser may limit cookies; cross-browser journeys lose pixel; Events API with hashed identifiers helps.
How do you set up GTM for TikTok pixel?
- Use TikTok Pixel community template; base tag on all pages; event tags on triggers; pass value/currency/content data from data layer; event_id variable for dedupe.
What UTM structure would you use for TikTok?
- utm_source=tiktok&utm_medium=paid_social&utm_campaign=__CAMPAIGN_NAME__&utm_content=__CID_NAME__ (TikTok macros like __CAMPAIGN_NAME__, __AID_NAME__, __CID_NAME__) – check macro names in Ads Manager.
What are TikTok URL macros?
- Dynamic parameters replaced at click: __CAMPAIGN_ID__, __CAMPAIGN_NAME__, __AID__ (ad group id), __AID_NAME__, __CID__ (ad id), __CID_NAME__, __PLACEMENT__ (verify current list).
How do you track app events for TikTok?
- MMP integration (AppsFlyer, Adjust, Branch, Singular, Kochava) or TikTok SDK; map in-app events; SKAN for iOS.
How does iOS 14+ affect TikTok measurement?
- SKAdNetwork for app campaigns; dedicated iOS 14 campaigns (historically) with limits; modeled/aggregated reporting; web events via Events API less affected.
What's TikTok's approach to attribution in MMM?
- TikTok has an MMM partner program and supports MMM data; MMM captures TikTok's halo on search and other channels better than last-click.
Why should you run a post-purchase survey for TikTok?
- Captures self-reported discovery ("I saw you on TikTok") that last-click misses; complements platform attribution.
Event Quality shows "missing email/phone". Fix?
- Enable Advanced Matching (automatic or manual), send hashed email/phone via Events API, ensure forms capture them before event fires.
How do you track TikTok's impact on branded search?
- Monitor Google Search Console/Google Ads brand impressions/clicks during TikTok campaigns; geo or time holdouts; correlation analysis.
What's the difference between "Purchase" and "PlaceAnOrder"?
- Purchase/CompletePayment: payment completed; PlaceAnOrder: order placed (e.g. COD before payment) – useful for COD markets.
How should COD orders be tracked for TikTok in GCC?
- Track PlaceAnOrder at checkout; send confirmed/delivered orders as Purchase via Events API; optimize toward confirmed purchases if volume allows.
How do you track phone calls from TikTok?
- Call-to-action phone (where available) and call tracking numbers on landing pages; CRM outcomes via Events API.
How do you handle consent for TikTok pixel in EU-facing sites?
- CMP integration; pixel holds/revokes per consent (ttq.holdConsent/grantConsent/revokeConsent APIs); server events only with lawful basis.
What's the "TikTok Events API Gateway"?
- A managed/self-hosted gateway solution to send server events without heavy development (similar to Meta's CAPI Gateway) – check availability.
How do you track TikTok Shop sales?
- Shop orders are tracked natively within TikTok Shop/Seller Center; GMV Max optimizes on Shop GMV automatically.
How do you reconcile TikTok, Meta, Google claims summing to more than total sales?
- Each platform self-attributes; use backend truth, MER, holdouts/lift tests, MMM; set channel KPIs on incremental basis.
Explain "Conversion Lift Study" on TikTok.
- Randomized test vs holdout groups measuring incremental conversions caused by TikTok ads; requires minimum budget/conversions; done with TikTok team.
What's "Attribution Analytics" in TikTok?
- Reports on conversion paths, time to conversion, cross-device and view-through contributions to understand TikTok's role.
Interview: "How do you prove TikTok drives sales when Google Analytics shows almost nothing?"
- Lift studies/geo holdouts, MER changes with spend, post-purchase surveys, branded search lift, TikTok attribution with EVTA, MMM.
Describe an Events API web event payload.
- POST to TikTok Business API events endpoint with Access-Token header; body: event_source (web), event_source_id (pixel code), data: [{event: 'Purchase', event_time: unix seconds, event_id, user: {email (hashed), phone (hashed), external_id (hashed), ttclid, ttp, ip, user_agent}, properties: {value, currency, contents[], content_type}, page: {url, referrer}}].
Which user fields should be hashed for TikTok Events API?
- Email, phone number and external_id should be SHA-256 hashed (after normalization); ip, user_agent, ttclid and ttp are sent as-is.
How do you normalize phone numbers for TikTok?
- E.164 format with country code (e.g. +971501234567) before hashing, per TikTok docs (format specifics may differ – follow current guidance).
How do you capture ttclid?
- Read ttclid from landing URL query parameter, store in first-party cookie/session and CRM; include in Events API events (even for later offline conversions).
What's the _ttp cookie's role in server events?
- Browser identifier set by pixel; sending it with server events helps match/dedupe with browser events.
How do you generate a TikTok Events API access token?
- Events Manager → pixel settings → Events API → generate access token; store securely (secret manager).
What's event_time format and limits?
- Unix timestamp (seconds); events must be sent within allowed delay (recent days); late events may be rejected or less useful.
How do you send offline/CRM events?
- Events API with event_source 'offline' or 'crm' (per current API) and appropriate dataset/event set; include lead_id for Instant Form leads where supported.
How do you debug Events API?
- Test Events with test_event_code, API response codes/messages, Events Manager diagnostics, sample payload validation.
How do you set up the TikTok pixel via GTM with dedupe?
- Generate event_id in data layer (e.g. order ID), TikTok pixel template event tag with event_id field, server-side tag (sGTM TikTok Events API tag) using same event_id.
What's server-side GTM's role for TikTok?
- sGTM TikTok Events API tag sends server events from your tagging server; improves resilience; reuse GA4 event stream.
What is the TikTok Marketing API?
- REST API (Business API) for campaign management, reporting (sync/async reports), audiences (customer file upload), creative management, leads retrieval; requires app approval and access tokens.
How do you pull TikTok reports into Looker Studio/BI?
- Connectors (Supermetrics, Funnel, Windsor), TikTok API to BigQuery pipelines; standardize naming and currency.
How do you upload custom audiences via API?
- Hash identifiers, create file/upload via audience endpoints, create/update audience, monitor processing.
How do you retrieve Instant Form leads via API?
- Lead endpoints/webhooks (subscriptions) to receive leads in real time; map fields to CRM.
What URL macros does TikTok support?
- Examples: __CAMPAIGN_ID__, __CAMPAIGN_NAME__, __AID__, __AID_NAME__, __CID__, __CID_NAME__, __PLACEMENT__, __CALLBACK_PARAM__ (verify current macro list in Ads Manager).
What's __CALLBACK_PARAM__?
- Macro carrying the click identifier for attribution (similar to ttclid) in tracking URLs (used in some integrations).
How do you handle consent for TikTok pixel technically?
- ttq.holdConsent() before init when consent unknown, ttq.grantConsent() after acceptance, ttq.revokeConsent() on refusal; CMP integration.
Shopify + TikTok: what data-sharing levels exist?
- Standard (pixel), Enhanced (pixel + advanced matching), Maximum (pixel + Events API) – choose Maximum.
How do you track single-page applications with TikTok pixel?
- Fire ttq.page() on route changes; events on state changes; guard duplicates.
How do you validate catalog-pixel matching?
- Catalog diagnostics/event match rate; ensure content_id equals catalog SKU IDs; content_type product.
What are common Events API error causes?
- Invalid token/pixel code, invalid timestamp, missing required fields (event, event_time), hashing errors, unsupported currency codes.
How do you map CRM stages to TikTok events?
- New lead → Lead/SubmitForm; Qualified → custom event (e.g. QualifiedLead) or CompleteRegistration; Won → Purchase with value; consistent identifiers.
What's the "Data Connections"/"Events Manager" partner list?
- Native integrations (Shopify, WooCommerce, Wix, BigCommerce, Magento, Salesforce Commerce, GTM, Segment, etc.) to connect pixels/Events API quickly.
How do you send app events server-side?
- Events API for app (via MMP/server) with app identifiers (IDFA/GAID where consented) and event data.
How do you store and use ttclid for 30-day lead cycles?
- Persist in CRM with lead record; when deal closes, send Purchase via Events API with ttclid + hashed contact; within allowed timeframes.
What's the "Advanced Matching" automatic mode risk?
- May capture unintended fields; ensure compliance; manual mode gives control.
Interview: "Explain how a TikTok click becomes a reported purchase."
- Click → ttclid appended → pixel sets _ttp and stores click info → purchase event fires (pixel) and server event (Events API) with event_id + identifiers → TikTok dedupes and matches to click/view → attribution window → reported conversion.
What's the purpose of the "test_event_code"?
- Route events to Test Events view for debugging without affecting production data.
How do you protect access tokens?
- Store server-side only, rotate when staff leave, restrict permissions, never expose in front-end code.
How do you handle multi-currency stores?
- Send currency with each event (AED, SAR, USD); TikTok converts to ad account currency.
What's a "pixel per domain" best practice?
- One pixel per brand across domains (cross-domain tracking via ttclid/cookies) to unify data; avoid multiple pixels firing the same events.
How do you track form submissions in iframes for TikTok?
- postMessage to parent page → data layer → pixel event; or vendor integration; server events from form backend.
More TikTok Ads question topics
Want an expert to run your TikTok Ads?
Book a free strategy call and get a clear plan for your campaigns.