Home / X (Twitter) Ads Interview Questions / X Pixel and Conversion API
Interview questions

X Pixel and Conversion API (Twitter Pixel): Questions and Answers

Twitter Pixel: 72 questions with model answers on the X Pixel, events, the Conversion API, the Ads API and measurement, from Basic to Advanced.

  • Model answers
  • Basic to Advanced
  • Search and filter

X Pixel (Twitter Pixel), events, Conversion API, Ads API and integrations. 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 X (Twitter) Ads test to check your score. For official definitions and policies, see the X Business Help Center.

Twitter Pixel: interview questions, practice and free test

First, read each question and try to answer it in your own words. Then, open the model answer and compare it with yours. After that, note the points you missed and review that topic again. Finally, take the free test to check your progress and unlock the next level.

What these Twitter Pixel questions cover

These X Pixel questions are the most technical on this site. They cover installing the X Pixel (formerly the Twitter Pixel) directly and through GTM, events and parameters, the X Conversion API, deduplication, click IDs, attribution windows, the X Ads API and tracking and measurement drills.

Every optimisation decision depends on clean tracking, so senior interviews always include Pixel questions. Start with the basics, then work through the technical deep dives.

All Twitter Pixel questions, from Basic to Advanced

Basic questions

1BasicX Pixel, Conversion API & Tracking (Technical)

What is the X Pixel?

  • X's website tracking tag (formerly Twitter Pixel / universal website tag) for conversion tracking, optimization and website audiences.
2BasicX Pixel, Conversion API & Tracking (Technical)

What is the X Conversion API (CAPI)?

  • Server-to-server API to send web conversion events to X (via Ads API), improving coverage and match when browsers block cookies.
3BasicX Pixel, Conversion API & Tracking (Technical)

Pixel base code function?

  • twq('config', 'PIXEL_ID'); event code: twq('event', 'tw-PIXEL_ID-EVENT_ID', {value, currency, conversion_id, email_address, phone_number, contents}).
4BasicX Pixel, Conversion API & Tracking (Technical)

Common standard events on X?

  • Page View/Site visit, Purchase, Add to cart, Checkout initiated, Lead, Sign up, Download, Content view, Search, Add to wishlist, Add payment info, Start trial, Subscribe, Custom.
5BasicX Pixel, Conversion API & Tracking (Technical)

What is twclid?

  • X click identifier added to landing URLs; stored as first-party cookie and sent with CAPI events for matching.
6BasicX Pixel, Conversion API & Tracking (Technical)

Default attribution windows on X?

  • Commonly 30-day post-engagement and 1-day post-view (configurable post-engagement 1/7/14/30 days; post-view 1/7/14/30 days) – verify per event.

Intermediate questions

7IntermediateX Pixel, Conversion API & Tracking (Technical)

How do you install the X Pixel in 2026?

  • Ads Manager → Events Manager → create Pixel → guided GTM integration (no-code, June 2026) or manual code in <head>, or partner apps (Shopify etc.).
8IntermediateX Pixel, Conversion API & Tracking (Technical)

What did the June 2026 Events Manager update add?

  • Google Tag Manager integration for Pixel + CAPI setup, unified Conversion API developer tools, and real-time conversion diagnostics for Pixel/CAPI health.

Expert insight: GTM integration lets non-developers install Pixel + CAPI in a guided flow; unified CAPI tools put docs/config in one place; live diagnostics show signal drops before performance falls. Great answer to "our devs are busy".

9IntermediateX Pixel, Conversion API & Tracking (Technical)

How do you verify Pixel events?

  • Events Manager status/diagnostics, X Pixel Helper (browser extension), network requests (ads-twitter.com/analytics.twitter.com / t.co endpoints), test conversions.
10IntermediateX Pixel, Conversion API & Tracking (Technical)

What parameters should a Purchase event send?

  • value, currency, conversion_id (order ID), contents (item IDs, quantity, price), hashed/plain email/phone for matching.
11IntermediateX Pixel, Conversion API & Tracking (Technical)

How does CAPI matching work on X?

  • Identifiers: twclid (strongest for click-through), hashed email (SHA-256), hashed phone, IP address + user agent; more identifiers = higher match.

Expert insight: Capture twclid on the first landing page and keep it in a first-party cookie or hidden form field; send it with hashed email/phone, IP and user agent. Use the same conversion_id/event ID on Pixel and CAPI so X deduplicates.

12IntermediateX Pixel, Conversion API & Tracking (Technical)

How do you deduplicate Pixel and CAPI events?

  • Send the same conversion_id (event ID) from both for the same action so X counts it once (dedup within a set window, e.g. 48 hours – check docs).
13IntermediateX Pixel, Conversion API & Tracking (Technical)

What does the CAPI endpoint look like?

  • Ads API: POST /12/measurement/conversions/:pixel_id (version number changes) with conversions[] containing conversion_time, event_id, identifiers, value, currency, conversion_id.
14IntermediateX Pixel, Conversion API & Tracking (Technical)

How do you capture twclid?

  • Read from landing URL, store in first-party cookie/hidden form field, pass to CRM and CAPI events.
15IntermediateX Pixel, Conversion API & Tracking (Technical)

Post-engagement vs post-view conversion?

  • Engagement: user clicked/engaged with ad before converting; view: saw the ad without engaging within view window.
16IntermediateTechnical Deep Dive: Ads API, CAPI & Integrations

What is the X Ads API?

  • REST API (ads-api.x.com / ads-api.twitter.com, versioned e.g. /12/) for accounts, campaigns, line items (ad groups), promoted tweets, audiences, analytics and conversions.
17IntermediateTechnical Deep Dive: Ads API, CAPI & Integrations

What's a "line item" in the Ads API?

  • The API name for an Ad group.
18IntermediateTechnical Deep Dive: Ads API, CAPI & Integrations

How does API authentication work?

  • OAuth 1.0a user context with developer app approved for Ads API access (keys/tokens of an account user).
19IntermediateTechnical Deep Dive: Ads API, CAPI & Integrations

How do you pull stats?

  • /stats/accounts/:account_id with entity (CAMPAIGN, LINE_ITEM, PROMOTED_TWEET), metric_groups (ENGAGEMENT, BILLING, VIDEO, WEB_CONVERSION, MOBILE_CONVERSION), granularity, placement; async jobs for large ranges.
20IntermediateTechnical Deep Dive: Ads API, CAPI & Integrations

Spend units in X Ads API?

  • Micro-currency (e.g. billed_charge_local_micro).
21IntermediateTechnical Deep Dive II

Write the X Pixel base code call.

  • twq('config', 'PIXEL_ID'); (inside base snippet loading uwt.js)
22IntermediateTechnical Deep Dive II

Write a Purchase event call.

  • twq('event', 'tw-PIXEL_ID-EVENT_ID', {value: 250.00, currency: 'AED', conversion_id: 'ORD123', email_address: hashedEmail, contents: [{content_id: 'SKU1', num_items: 1}]});
23IntermediateTechnical Deep Dive II

Script domain for X Pixel?

  • static.ads-twitter.com/uwt.js.
24IntermediateTechnical Deep Dive II

How to pass user data for matching on Pixel?

  • email_address and phone_number parameters (X hashes) in event calls.
25IntermediateTechnical Deep Dive II

How do you capture twclid in GTM?

  • URL query variable twclid → first-party cookie → send with CAPI via server container or form field.

Advanced questions

26AdvancedX Pixel, Conversion API & Tracking (Technical)

X reports 200 conversions, backend 90. Why?

  • View-through (post-view) credit, long engagement windows (30d), engagement not just clicks (likes count as engagements), duplicate firing, no dedup.

Expert insight: X counts post-engagement conversions – and "engagement" includes likes and media expands, not just clicks – plus post-view conversions. Compare a 7-day click view and the backend before judging performance; consider shortening windows.

27AdvancedX Pixel, Conversion API & Tracking (Technical)

X reports far fewer conversions than UTM data. Why?

  • Pixel blocked/consent, missing CAPI, twclid stripped by redirects, iOS limitations; implement CAPI and GTM integration, check diagnostics.
28AdvancedX Pixel, Conversion API & Tracking (Technical)

How to track app installs from X?

  • MMP (AppsFlyer, Adjust, Branch, Kochava, Singular) integration with X, SKAdNetwork for iOS, app events mapped for optimization.
29AdvancedX Pixel, Conversion API & Tracking (Technical)

Why should post-engagement windows be shortened for some brands?

  • Engagements include low-intent actions (likes/expansions); 30-day engagement window can over-credit; use 7-day and compare.
30AdvancedX Pixel, Conversion API & Tracking (Technical)

How do you track leads in CRM from X?

  • UTMs + twclid in hidden fields → CRM; send qualified/opportunity events via CAPI with hashed email.
31AdvancedX Pixel, Conversion API & Tracking (Technical)

Explain hashing rules for X CAPI.

  • Normalize email (trim, lowercase), phone (E.164 digits), then SHA-256; never double hash.
32AdvancedX Pixel, Conversion API & Tracking (Technical)

Diagnose "Pixel no recent activity".

  • Tag removed/blocked, GTM not published, consent blocking, wrong Pixel ID, CSP; use real-time diagnostics.
33AdvancedX Pixel, Conversion API & Tracking (Technical)

Value optimization on X – requirements?

  • Accurate value/currency on Purchase events from Pixel + CAPI, sufficient purchase volume; then use value-based bidding/ROAS optimization where available.
34AdvancedX Pixel, Conversion API & Tracking (Technical)

How to set up tracking on Shopify/Salla for X?

  • Shopify X app (Pixel + CAPI); for Salla/Zid use platform integration if available or GTM; verify dedup.
35AdvancedX Pixel, Conversion API & Tracking (Technical)

Interview: "What do you check weekly in X Events Manager?"

  • Event volumes vs backend, diagnostics alerts, dedup, identifier coverage (twclid/email), latency, value parameters, errors.
36AdvancedX Pixel, Conversion API & Tracking (Technical)

Why did X consolidate CAPI tools in 2026?

  • To simplify setup and make signal health visible (unified docs/config + live diagnostics) – fewer broken implementations and better AI optimization.
37AdvancedX Pixel, Conversion API & Tracking (Technical)

Privacy considerations for X Pixel in EU/GCC?

  • Consent before firing (GDPR), PDPL in UAE/KSA, privacy notices, hashing PII, limit data to need.
38AdvancedTechnical Deep Dive: Ads API, CAPI & Integrations

Sample CAPI payload idea.

  • {"conversions":[{"conversion_time":"2026-10-27T10:00:00.000Z","event_id":"tw-xxxx-yyyy","identifiers":[{"twclid":"..."},{"hashed_email":"<sha256>"}],"value":"250.00","price_currency":"AED","conversion_id":"ORD123","number_items":2}]}
39AdvancedTechnical Deep Dive: Ads API, CAPI & Integrations

How to implement CAPI via server-side GTM?

  • Web GTM sends events → sGTM → X CAPI tag mapping event_id, identifiers (twclid, hashed email/phone, IP/UA), conversion_id for dedup.
40AdvancedTechnical Deep Dive: Ads API, CAPI & Integrations

GTM integration in Ads Manager (June 2026) – what it does?

  • Guided no-code setup of Pixel and CAPI through GTM from inside Ads Manager.
41AdvancedTechnical Deep Dive: Ads API, CAPI & Integrations

Rate limits & errors in Ads API?

  • Respect rate limit headers, 429 handling with backoff, async analytics jobs, idempotent create calls.
42AdvancedTechnical Deep Dive: Ads API, CAPI & Integrations

Audience syncing via API?

  • Custom audiences endpoints (users upload with hashed identifiers), batched operations, daily refresh from CRM.
43AdvancedTechnical Deep Dive: Ads API, CAPI & Integrations

Common hashing mistakes?

  • Uppercase/spaces, phone without country code, double hashing, hashing non-required fields.
44AdvancedTechnical Deep Dive: Ads API, CAPI & Integrations

How to track X in GA4?

  • UTMs (utm_source=x or twitter consistently, utm_medium=paid_social), channel grouping rules (t.co referrers), campaign naming macros if available.
45AdvancedTechnical Deep Dive: Ads API, CAPI & Integrations

Building an X reporting pipeline?

  • Ads API → BigQuery (connectors like Supermetrics/Funnel/Fivetran) → join with backend/CRM → Looker Studio/Power BI.
46AdvancedTechnical Deep Dive: Ads API, CAPI & Integrations

Interview: "CAPI match rate low – technical steps?"

  • Capture twclid on landing, send hashed email/phone, IP and user agent, consistent event_id/conversion_id, low latency, fix consent issues.
47AdvancedTechnical Deep Dive: Ads API, CAPI & Integrations

Offline conversions on X?

  • Send CRM/offline sales via CAPI with hashed identifiers and conversion time within allowed lookback.
48AdvancedTechnical Deep Dive II

CAPI via Shopify app – what it handles?

  • Server events with order data, dedup with Pixel, hashed customer info.
49AdvancedTechnical Deep Dive II

Implement CAPI on custom stack?

  • Backend on order → build conversion payload (event_id, conversion_time ISO8601, identifiers, value, currency, conversion_id) → POST to Ads API measurement endpoint with OAuth.
50AdvancedTechnical Deep Dive II

Offline CRM events via CAPI?

  • Stage change → event (e.g. Qualified Lead) with hashed email/phone & twclid; within lookback window.
51AdvancedTechnical Deep Dive II

Building a reporting dashboard for X?

  • Ads API async stats → BigQuery → join with backend → Looker Studio/Power BI with MER, CPA.
52AdvancedTechnical Deep Dive II

URL parameters for X ads?

  • UTMs + automatically appended twclid; keep redirects preserving query strings.
53AdvancedTechnical Deep Dive II

Consent mode for X Pixel?

  • Fire after consent via CMP; CAPI only with lawful basis.
54AdvancedTechnical Deep Dive II

Validate hashed values?

  • SHA-256 of normalized test values; 64 hex chars.
55AdvancedTechnical Deep Dive II

Event latency best practice?

  • Near real-time sending of CAPI events.
56AdvancedTechnical Deep Dive II

Interview: "Make tracking resilient for X."

  • Pixel + CAPI with dedup, GTM integration, twclid capture, hashed identifiers, daily reconciliation, diagnostics alerts.
57AdvancedTechnical Deep Dive II

Ads API async analytics jobs – why?

  • Large date ranges/entities; request job, poll, download results.
58AdvancedExpert Drills III: Tracking & Measurement

You said "use CAPI". Interviewer: "How does X match a server event to a user?"

  • Through identifiers: twclid (click), hashed email/phone, IP/user agent; more identifiers → better match.
59AdvancedExpert Drills III: Tracking & Measurement

You said "dedup". Interviewer: "What if Pixel fires but CAPI arrives 2 days later?"

  • Dedup window is limited; send CAPI near real time; delayed events may double count or be rejected.
60AdvancedExpert Drills III: Tracking & Measurement

You said "shorter attribution windows". Interviewer: "Then X looks worse than Meta."

  • Use consistent windows across platforms or MER/incrementality to compare fairly.
61AdvancedExpert Drills III: Tracking & Measurement

You said "lift study". Interviewer: "We don't meet minimum spend."

  • Geo/time-based holdouts, pre/post analysis, MMM proxies.
62AdvancedExpert Drills III: Tracking & Measurement

You said "GA4 UTMs". Interviewer: "GA4 shows X as low performer."

  • Last-click bias; X influences conversation/views; check assisted conversions, self-reported attribution.
63AdvancedExpert Drills III: Tracking & Measurement

"How do you track Spaces impact?"

  • Attendance, replays, follower growth, link clicks, mentions, downstream traffic with UTMs.
64AdvancedExpert Drills III: Tracking & Measurement

"How do you measure Takeover sales impact?"

  • Sales/branded search lift vs baseline days, geo comparisons, brand lift.
65AdvancedExpert Drills III: Tracking & Measurement

"Post-view conversions – keep or remove?"

  • Keep for reporting with short window; judge decisions on click-based and incrementality.
66AdvancedExpert Drills III: Tracking & Measurement

"How do you QA a new conversion event?"

  • Test in staging, diagnostics, test orders, compare counts with backend for 1 week.
67AdvancedExpert Drills III: Tracking & Measurement

"Explain twclid lifecycle."

  • Appended on click → captured on landing → cookie/hidden field → sent with conversion via CAPI → matched to ad engagement.
68AdvancedExpert Drills III: Tracking & Measurement

"What if site uses SPA (single page app)?"

  • Fire Pixel events on route changes/dataLayer events; ensure purchase event triggers once.
69AdvancedExpert Drills III: Tracking & Measurement

"How to handle multiple currencies?"

  • Send currency per event; report in account currency; avoid mixing values.
70AdvancedExpert Drills III: Tracking & Measurement

"Which data should never be sent to X?"

  • Sensitive data (health, religion), raw passwords, data without consent.
71AdvancedExpert Drills III: Tracking & Measurement

"How to monitor tracking automatically?"

  • Daily API pull vs backend; alerts on >20% variance; diagnostics dashboard.
72AdvancedExpert Drills III: Tracking & Measurement

"How do you prove engagement campaigns drive sales?"

  • Retarget engagers and measure conversions; lift tests; MMM.

More X (Twitter) Ads question topics

Want an expert to run your X (Twitter) Ads?

Book a free strategy call and get a clear plan for your campaigns.

Book a free call