Skip to content

docs(plans): AI engagement attribution design doc#612

Draft
arberx wants to merge 1 commit into
mainfrom
arberx/ai-engagement-attribution-doc
Draft

docs(plans): AI engagement attribution design doc#612
arberx wants to merge 1 commit into
mainfrom
arberx/ai-engagement-attribution-doc

Conversation

@arberx
Copy link
Copy Markdown
Member

@arberx arberx commented May 20, 2026

Summary

  • Adds plans/ai-engagement-attribution.mddesign doc only, no code.
  • Specifies the layer that joins the now-distinct AI traffic channels (post feat(traffic): split AI user-fetch UAs into their own hourly rollup #611) + the answer-visibility sweep + GA4 into one per-engine engagement funnel: indexed → fetched-live → cited → referred → converted.
  • Phase A — read-side reconciliation endpoint (GET .../traffic/engagement), no schema change, ~500–700 LOC follow-up.
  • Phase B — GA4 outcome attribution (revenue), deferred; specified now so Phase A's DTO is forward-compatible (converted nullable from day one).

Context

PR #611 made the three traffic channels clean, but nothing joins them — they are five numbers on three or four separate screens. This doc specifies the reconciliation layer that server-side-ai-traffic-ingestion.md (rollout step 8 — "Intelligence correlations") and ai-attribution-research.md (Steps 2C/2D) both gestured at but never specified.

It respects the earlier findings rather than re-litigating them: no T0-anchored lift model, the ~3k-sessions/month volume floor for the conversion tail, and Gemini's domain-only citations.

Also records a follow-up surfaced in the #611 review: report.ts buildServerActivity does not read ai_user_fetch_events_hourly, so the report will undercount server activity after migration 64 unless fixed.

Status

Draft — open for review of the design before any implementation. Depends on #611 (in review) and #598 (merged).

Test plan

  • Docs-only change — no tests. Review for technical accuracy and alignment with the two existing plans docs.

🤖 Generated with Claude Code

Specifies the correlation layer that joins the post-#611 traffic
channels (bulk crawl, AI user-fetch, AI referral) with the
answer-visibility sweep and GA4 into one per-engine engagement
funnel: indexed -> fetched-live -> cited -> referred -> converted.

Phase A is a read-side reconciliation endpoint (no schema change);
Phase B adds GA4 outcome attribution. Picks up the layer that
server-side-ai-traffic-ingestion.md (step 8) and
ai-attribution-research.md (steps 2C/2D) gestured at but never
specified, and respects their findings (no T0 anchoring, volume
floor).

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant