Unified Multi-Touch Attribution Engine Architectural Specification
Specify an analytical data mesh architecture for deterministic and algorithmic marketing multi-touch attribution.
Use this specification when engineering a multi-touch attribution (MTA) platform that connects omnichannel marketing touchpoints to enterprise revenue outcomes. It establishes data warehouse modeling, attribution algorithms, and BI layer interfaces.
Role: Staff Revenue Infrastructure Architect specializing in analytical data mesh topologies and marketing attribution platforms.
Context
- Central analytical data warehouse: {{data_warehouse_target}}
- Omnichannel marketing touchpoint feeds: {{marketing_touchpoint_sources}}
- Core attribution models required: {{attribution_models}}
- Data refresh and computation latency budget: {{latency_requirements}}
- Data governance and privacy framework: {{governance_framework}}
- Downstream strategic reporting consumers: {{downstream_bi_consumers}}
Task
Deliver an end-to-end technical architecture specification for a scalable Multi-Touch Attribution (MTA) platform that ingests fragmented customer journeys, models conversion influence, and surfaces reliable return-on-ad-spend (ROAS) analytics to business leaders.
Method
- Define the extract, load, transform (ELT) architecture for ingesting touchpoint telemetry from {{marketing_touchpoint_sources}} into raw staging.
- Design the deterministic and probabilistic identity resolution engine to stitch anonymous visitor sessions into unified customer journey graphs.
- Model the dimensional warehouse schema in {{data_warehouse_target}}, optimizing for high-volume event joins and partition pruning.
- Specify the algorithmic compute engine implementing {{attribution_models}} (including Shapley value, Markov chains, or position-based weights).
- Define synthetic incrementality test harnesses to calibrate algorithmic attribution against real-world holdout test results.
- Architect semantic access layers and materialized view strategies that deliver sub-second queries to {{downstream_bi_consumers}}.
- Detail user consent tracking, cookie-less conversion modeling, and right-to-be-forgotten deletion workflows under {{governance_framework}}.
Constraints
- Raw touchpoint events MUST be preserved in immutable storage before identity resolution or modeling.
- The computation pipeline MUST complete within the bounds specified in {{latency_requirements}}.
- Attribution calculations MUST NOT produce unallocated revenue discrepancies exceeding 0.01% across reporting cycles.
- Storage and query access policies must strictly enforce {{governance_framework}} restrictions.
Output format
1. End-to-End Architectural Topology
- Ingestion tier, compute cluster, identity graph storage, and presentation layer definitions.
2. Data Modeling & Identity Resolution Contract
- Entity-relationship (ER) diagrams, staging schemas, identity stitching logic, and graph traversal edge definitions.
3. Attribution Compute Engine Specification
- Mathematical execution steps, dbt/SQL/Spark transform logic for {{attribution_models}}, and attribution weight distributions.
4. Semantic Layer & Downstream API Contracts
- Metric definitions (CAC, ROAS, pipeline velocity), materialized view definitions, and query protocols for {{downstream_bi_consumers}}.
5. Governance, Privacy & Compliance Controls
- Consent state filtering, anonymization transforms, deletion tombstone propagation, and audit logging.
Self-review
- Does the identity graph handle cross-device cookie expiration gracefully without creating orphan conversion records?
- Are compute costs in {{data_warehouse_target}} optimized using incremental modeling rather than full historical table scans?
- Do all metrics exposed to {{downstream_bi_consumers}} reconcile perfectly with core financial ledgers?
Explicit role, a named task, and discrete steps the model can follow.
Background, inputs and variables the model needs before it starts.
Hard boundaries — what the model must and must not do.
A named, field-level shape for the response.
Ordered work items that force analysis before an answer.
Length and structure that travel across frontier models.
Signal density — instruction weight without padding.
Documented variables so the scaffold adapts to new inputs.
Quality bar, assumptions and behaviour when inputs are thin.
How much real usage the template has behind it.