Skip to main content
ThinkscoopEngineering
EngagementsCapabilitiesWorkApproachNotesAboutStart a build
EngagementsCapabilitiesWorkApproachNotesAboutStart a build

Thinkscoop Engineering

Senior engineers, AI augmented. Not AI washed.

Engagements

  • AI MVP Sprint
  • AI Integration Pod
  • Agentic Workflow Build
  • Embedded AI Pod
  • All four, with prices

Capabilities

  • Retrieval and context
  • Evaluation and quality gates
  • Agent orchestration
  • Guardrails and escalation
  • Observability, cost and drift
  • Product and platform engineering

The practice

  • Engineering home
  • Delivered work
  • How we work
  • Engineering notes
  • About the practice
  • Questions we get asked
  • Start a build

Reach us

contact@thinkscoopinc.com

Other practices

  • Business Applications
  • Growth
  • Thinkscoop, the parent company

Legal

  • Privacy policy
  • Terms
  • Cookies
Thinkscoop Technologies LLPTeam based in India. Clients across the US, Australia and the UAE.
Engineering/Work/Pixis

Multi-Touch AI Attribution Engine Cutting Ad Wastage by 35% for Pixis

MarTech / AI Marketing6 weeks
35%Ad wastage reduction
5M+Events processed daily
6wksFull platform delivery
3Ad platforms integrated

What this engagement is evidence of

Modelling across fragmented sources where the output changes budget decisions, so the pipeline, the reproducibility and the ability to explain a number matter more than the sophistication of the model.

The situation

Attribution is one of marketing's oldest unsolved problems. Every platform claims credit. Last-click models give all credit to whoever closes the conversion. First-click models over-reward awareness channels. Multi-touch models exist in theory but most implementations are correlation machines - they tell you what happened, not why. Pixis was building AI marketing products for enterprise clients and needed an attribution engine that was both accurate and explainable - because marketing directors need to defend budget decisions in board meetings, not just in dashboards.

What was breaking

  • Last-click attribution gave 100% conversion credit to retargeting and branded search - channels that were intercepting organic conversions rather than creating them
  • Marketing teams were cutting upper-funnel spend based on attribution data that made those channels look like wasted budget
  • No existing model could disentangle channels that were genuinely driving incremental conversions from those cannibalising organic
  • Attribution reports were black boxes - clients trusted the numbers but couldn't explain the methodology to internal stakeholders
  • Each ad platform's native attribution tool used different windows, different counting logic, and different attribution models - making cross-platform comparison meaningless

Causal inference, not just correlation.

Standard multi-touch attribution assigns fractional credit based on touchpoint position or frequency - but position and frequency aren't causation. A user who clicks a branded search ad two minutes before purchasing wasn't converted by that ad; they were already going to buy. We used Shapley value game theory - a method from cooperative game theory used to fairly distribute credit among contributing players - to model what each touchpoint genuinely contributed to the probability of conversion, controlling for what would have happened without it. This gave Pixis a model they could explain mathematically to clients, not just show as a black-box score.

  • Shapley value attribution: each channel's credit is its marginal contribution to conversion probability, averaged across all possible orderings of the customer journey
  • Holdout experiment framework: regular geo-split tests validate the model's incremental contribution estimates against real-world holdout groups
  • Per-client model training: each Pixis client gets a model fine-tuned on their own conversion data, not a generic industry model
  • Weekly retraining pipeline: campaign creative, audience, and seasonal effects shift constantly - the model retrains on a rolling 90-day window to stay calibrated

A real-time attribution pipeline processing millions of events per day

The platform consists of an event ingestion layer, an attribution computation engine, and a Next.js reporting dashboard. The event ingestion layer connects to the Google Ads API, Meta Marketing API, and TikTok Ads API via a custom ETL pipeline built on Apache Spark and Airflow. Raw conversion events are unified into a single event schema (solving cross-platform discrepancies in event naming and timing). The attribution engine applies the Shapley-value model to each completed conversion journey, producing per-channel credit scores that feed into the reporting dashboard. The model is stored in versioned MLflow experiments, with automatic retraining triggered every seven days.

Event unification layer

Custom ETL normalises events from Google, Meta, and TikTok into a single canonical event schema - resolving discrepancies in click attribution windows, view-through counting logic, and conversion event naming across platforms. This alone eliminated the 'attribution gap' that made cross-platform reporting meaningless.

Shapley attribution engine

For each completed conversion journey, the engine enumerates the contribution of each touchpoint using Shapley values - mathematically fair credit distribution from cooperative game theory. Runs on Apache Spark to process 5M+ events per day within a 4-hour computation window.

Incremental validation framework

Monthly geo-split holdout tests measure the actual incremental impact of each major channel. Results are fed back into the model as calibration signals, ensuring the Shapley estimates track real-world incrementality rather than drifting over time.

Explainability layer

Every attribution report includes a methodology note, channel-level confidence intervals, and a 'what changed' comparison to the previous model version - so marketing directors can defend the numbers to CFOs and media agencies.

Automated retraining pipeline

An Airflow DAG triggers weekly model retraining on a rolling 90-day conversion window. MLflow tracks every model version, enabling rollback if a retrain degrades accuracy on the validation dataset.

What it produced

The 35% wastage reduction was measured against actual client spend reallocation following the first 90 days of model output - not a theoretical estimate.

35% reduction in ad spend wastage in 90 days. Platform now processes 5M+ events per day. Used as a core differentiator in Pixis's client-facing product.

What we would tell the next team

L1

Explainability is a commercial requirement, not an engineering nice-to-have

Every technically accurate attribution model we'd seen in the market was a black box. Pixis's clients needed to walk into budget reviews and explain why they were reallocating spend away from channels that appeared to be 'working' under last-click. The Shapley value framing gave them a mathematical narrative: 'This channel's marginal contribution, when we account for what would have happened without it, is X.' That made the model commercially viable in a way that a higher-accuracy black box would not have been.

L2

Cross-platform event unification is underestimated

We scoped the event unification layer as two weeks of work. It took four. Every platform uses different attribution windows, different conversion event schemas, and different logic for view-through vs click-through. Building a truly unified event model - one where a conversion in Google and a conversion in Meta mean the same thing - required significantly more mapping work than expected. This is the unsexy part that makes everything else work.

L3

Weekly retraining is necessary, but needs guardrails

Campaign creative, audiences, and seasonality shift constantly. A model trained in January will be miscalibrated by March. But automated retraining without quality gates can also introduce degradation silently. We built an automated validation gate that compares new model performance on a held-out test set against the previous version - and blocks deployment if accuracy declines, alerting the team for manual review instead.

“We finally have an attribution model we can defend in a budget meeting. It changed how our clients think about performance marketing entirely - and it's now a core part of our product differentiation.”

Head of Data Science, Pixis

Vitals

  • Client: Pixis
  • Sector: MarTech / AI Marketing
  • Duration: 6 weeks

Disciplines exercised

  • Product and platform engineering
  • Evaluation and quality gates
  • Observability, cost and drift

Platform and tooling

  • Python
  • PyTorch
  • Apache Spark
  • Airflow
  • Next.js
  • PostgreSQL
  • Google Ads API
  • Meta Marketing API
Start a build

Model versions are deliberately not listed. The architecture treats the provider as a configuration decision, and a version printed on a page is out of date within the quarter.

$engineering / other engagements

Five more, and what each one cost to learn.

72%EY (Ernst & Young)A multi-agent AI system operating entirely within EY's Azure environment that ingests audit data, cross-references regulatory frameworks, and generates source-cited draft reports for human partner review.12 weeks · Professional Services68%Booking.comA LangGraph reasoning agent with live access to booking APIs, a RAG knowledge base over 500,000+ policy documents, and direct payment system integration - with confidence-based escalation that assembles full context for human agents before routing.10 weeks · Travel & eCommerce78%Global FinTech (Confidential)A multi-step LangGraph reconciliation agent that reasons over discrepancy reports, queries source systems via API, and drafts resolution actions for human review - with a full evaluation harness measuring accuracy and escalation rate weekly.10 weeks · Financial Services4.2minHindustan Unilever LimitedA unified AI knowledge assistant with RAG over 200,000+ internal documents, role-based access control tied to SSO, full audit logging, and citation-grounded answers - operating entirely within HUL's Azure environment.14 weeks · FMCG / Enterprise3×SAMCoA real-time portfolio intelligence platform with live market data feeds, AI risk modelling, and a natural language query interface - so managers get cited answers to risk exposure questions in seconds, not a day later.8 weeks · Financial Services

Is your constraint the same as this one?

Send the task, the data it runs on and the systems it has to touch. You get a written read from an engineer within a working day.

Start a build