Attribution & Conversion Measurement Questions
Measuring what drives a conversion: event tracking and instrumentation, attribution models (first-touch, last-touch, multi-touch), and connecting user actions to outcomes. Covers the analytics plumbing for reliable conversion measurement and the limits of each attribution approach. The scope is the measurement layer for conversions, not the creative or channel strategy that generates them.
Write an ANSI SQL query to compute channel-attributed conversions when users interact with multiple channels within a 14-day window. Schema:
channels(user_id, channel VARCHAR, occurred_at TIMESTAMP)
conversions(user_id, conversion_at TIMESTAMP, order_id)
Use last-touch within 14 days prior to conversion as attribution. Return channel and conversion_count.
Write SQL to compute last-non-direct-touch attribution for conversion events using UTM-based campaign fields and a sessions/events table:
sessions(session_id, user_id, session_start, source, medium, campaign)
events(event_id, session_id, user_id, event_name, event_time)
Return the attributed campaign for each purchase where 'direct' should be ignored in favor of the last non-direct campaign within the lookback window.
A third-party vendor provides an attribution dataset that conflicts with your internal metrics. Outline a detailed audit plan: reconciliation checks you would run (unique users, conversions by date/channel), timestamp and timezone alignment, deduplication checks, sampling differences, and manual log-sampling tests. List which statistical tests and visualizations you'd use to communicate discrepancies to the vendor.
Compare last-touch, linear, and time-decay multi-touch attribution models. For each model describe business assumptions, where it might mislead decision-makers, and outline a pragmatic SQL approach to compute a linear attribution across channel touch events per order.
Privacy constraints now prevent third-party cookies and limit deterministic device identifiers. Design measurement strategies to attribute conversions and measure channel performance under these restrictions. Discuss server-side tracking, aggregated modelling, randomized holdouts, and trade-offs in accuracy and cost.
Unlock Full Question Bank
Get access to all 11 Attribution & Conversion Measurement interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.