B2B marketing
A visitor knowledge graph over cookieless first-party analytics
Shipped for A B2B demand-generation company
~1,650 / ~2,700
01
The problem
The site collected cookieless first-party analytics, but nobody could see what a visitor or a lead had actually done across sessions.
THE MACHINE
02
The system
A standalone, auth-gated Next.js 16 app that syncs the site's analytics export with keyset cursors into landing tables (Drizzle on Postgres) with crash-safe resume, projects them into an Apache AGE graph of 9 node labels and 10 edge types, and serves SQL dashboards and a Cypher graph explorer: visitor journeys, leads with stitched attribution, campaign performance, and which AI crawlers read the site.
System diagram: 7 nodes and 6 directed flows.
SOURCE
- site analytics export
ACTION
- sync worker · cursors
- journeys, leads, campaigns
- graph explorer
- AI-crawler view
STORE
- landing tables
- graph · 9 labels, 10 edge types
FLOWS
- site analytics export to sync worker · cursors
- sync worker · cursors to landing tables
- landing tables to graph · 9 labels, 10 edge types
- landing tables to journeys, leads, campaigns
- graph · 9 labels, 10 edge types to graph explorer
- landing tables to AI-crawler view
MEASURED, NOT CLAIMED
03
The outcome
On its first sync against live data it projected a ~1,650-node, ~2,700-edge graph in about a second. The graph is fully derived, so it can be rebuilt at any time without refetching.