System 05

Spend Attribution Engine

Multi-channel attribution, anomaly detection, budget reallocation

The problem this solved

A compliance platform was spending into paid channels without a clear picture of what those dollars were producing. The dashboards all showed activity. The pipeline was harder to read. Somewhere between Google Ads, GA4, and Search Console, the story kept changing depending on which tab you were looking at. The question that nobody could answer cleanly: which channels are actually producing pipeline, and which are burning money?

The Spend Attribution Engine is the pattern that came out of that engagement. Built directly against GA4, Google Ads, and GSC APIs, it audits every dollar forensically, scores channel quality by engagement and volume together, connects spend to outcomes, and surfaces the anomalies that show up once you stop looking at each platform in isolation.

In the compliance platform’s case, the audit surfaced $81K a year in misdirected ad budget and showed that organic was outperforming paid by 2.5x — numbers that had been sitting in the data the whole time, just not connected. The measurement foundation had been accumulated, never engineered: GA4 was installed but not configured, ads were running but not linked to analytics, conversion events didn’t exist. Fixing the foundation was half the work.

Architecture

Four stages, each building on the last:

  1. Platform audit — each channel analyzed independently
  2. Cross-platform synthesis — where the individual stories conflict, the real story emerges
  3. Channel quality scoring — engagement rate × volume, not just traffic
  4. Ongoing measurement — dashboard, anomaly detection, reallocation tracking

This isn’t an 8-stage data pipeline. It’s a diagnostic methodology that becomes a monitoring system. The audit is the foundation. The dashboard is the ongoing product.

The methodology

Account structure, campaign performance over time, CPA trends, keyword alignment to ICP, negative keyword review, agency performance assessment. Not a dashboard glance — a forensic teardown of where every dollar went and why.

This means analyzing every campaign, every keyword, every ad variant, and every change log entry. It means reconstructing the decision timeline: when did the agency restructure the account? What did they pause and what did they keep? How did CPA trend before and after each major change?

The output isn’t a recommendation to “optimize your ads.” It’s a specific, quantified diagnosis: which campaigns are performing at what CPA, which keywords are wasting money on which audiences, and what the account would look like if budget followed performance instead of legacy structure.

GA4 audit

Configuration assessment first: are conversion events set up? Are channels properly defined? Is GA4 linked to your ad platforms? These aren’t advanced questions — but most companies haven’t answered them.

Then, channel quality analysis. The question isn’t “how much traffic does each channel produce?” — it’s “which traffic is worth having?” A channel quality index scores each source by engagement rate multiplied by volume, surfacing the channels that send the right visitors, not just the most visitors.

Content performance by page type reveals where your site actually engages your ICP versus where it bounces them. Platform pages, compliance content, and trust pages may drive 50% higher engagement than product marketing pages — but you won’t know unless you measure it.

Search Console audit

Impression-to-click gaps for ICP keywords: where Google is showing your pages but nobody’s clicking. Indexation health: how many pages Google knows about versus how many it considers worth indexing. Crawl coverage: what Google is deliberately choosing not to surface, and what that says about your content quality.

Zero ICP clicks despite hundreds of impressions means the content exists but isn’t compelling — or the titles and descriptions aren’t targeting the right intent. This is a different problem from having no content at all, and it requires a different fix.

Site audit

SEO metadata coverage: which pages are missing titles, descriptions, and OG tags. CMS structure: how content collections are organized and whether they support programmatic expansion. Content gaps mapped to keyword opportunities: which high-value searches have no corresponding page on your site.

Cross-platform synthesis

The value is in the integration. Individual audits find individual problems. Cross-platform synthesis finds the story.

The Google Ads audit shows CPA degradation. The GA4 audit shows organic outperforms paid. The GSC audit shows zero ICP keyword clicks. The site audit shows empty competitor comparison pages. Individually, these are separate findings. Together, they tell a story: the entire GTM is pointed at competitor names instead of the problems the ICP actually searches for, and the one channel that works (organic) receives no investment.

That kind of insight doesn’t come from a single-platform audit. It comes from looking at the same business from four angles and letting the contradictions surface.

Design principles

Channel quality over channel volume. 10,000 sessions at 20% engagement is worse than 3,000 at 60%. The Quality Index formula quantifies this — ranking channels by engagement-weighted volume, not raw traffic. This changes budget conversations from “which channel drives the most visits” to “which channel drives the most valuable visits.”

Forensic before prescriptive. Don’t reallocate spend until you understand why it’s allocated the way it is. The agency made decisions for reasons. A restructuring that destroyed performance may have been driven by a reasonable hypothesis that happened to be wrong. Understanding the decision history makes the reallocation plan defensible — not just different, but demonstrably better.

Measure what matters, flag what’s missing. If conversion events aren’t configured, don’t fake attribution. Report what you can measure and be explicit about what you can’t. A dashboard that honestly shows “we can measure engagement but not pipeline” is more useful than one that guesses. The measurement gaps are findings too — they tell you what to fix first.

Single source of truth. One dashboard pulling from all APIs, not three tools with three stories. When marketing, sales, and leadership look at the same dashboard and see the same numbers, budget conversations become data arguments instead of opinion arguments.

Tech approach

Key implementation choices for this build:

  • GA4 Data API for engagement metrics, channel quality, and content performance
  • Google Ads API for spend data, campaign performance, and keyword-level attribution
  • Google Search Console API for search visibility, indexation health, and impression-to-click analysis
  • Dashboard (Next.js) for ongoing channel quality monitoring — not a one-time report, but a living system

Channel quality scoring runs as a repeatable methodology. The initial audit establishes the baseline. The dashboard tracks whether reallocation decisions move the needle. The system proves itself over time.

This is one approach

Forensic multi-platform attribution is the right answer when the measurement foundation has drifted — when conversion events aren’t set up, when the ad account has been restructured by a departing agency, when the channels don’t agree with each other. For a company whose foundation is already solid, the work is different: better dashboards on top of an already-trustworthy data layer, or tighter instrumentation on the channels that still have blind spots. The diagnosis decides how deep the forensic work needs to go.

Where an engagement starts

This is the system that most often starts as an audit — because the audit usually is the engagement.

Start with an audit. Five independent channel audits — Ads, GA4, GSC, site, and content — each producing a standalone finding document, followed by a cross-platform synthesis that identifies the story the individual audits miss on their own. Sometimes that synthesis is the whole deliverable: a prioritized roadmap you can hand to your agency or your in-house team, and the engagement ends there.

When the audit points at a dashboard build, the engagement looks like this:

  1. Platform access setup — confirm API access to GA4, Google Ads, GSC, and CRM. Identify what’s configured, what’s missing, and what data is available.
  2. Dashboard build — channel quality scoring, content performance, anomaly detection. Connected to live API data.
  3. Reallocation roadmap — specific budget shifts with projected impact, grounded in audit findings.

Ongoing measurement is available as needed — dashboard monitoring, scoring calibration, and periodic re-audits as the data evolves.

The pain this solves

You can't tell which channel is actually working

Read about the problem →

Case study

GTM Audit and Content Engine for a Government Contracting Platform

A government contracting SaaS platform

Read the case study →

Want to see this built for your stack? Let's scope it.

Let's talk

Tell us what you're working on, or book a call directly.

Or book a call