Repository navigation
feat(marketing): Visitor Intelligence funnel dashboard (backlog #23) - #315
Merged
Merged
Conversation
Caps the visitor-intelligence lane with a dedicated admin dashboard that ties together everything the lane now collects: the acquisition funnel end-to-end (anonymous visitors → identified → profiled → scored → hot/qualified) with safe step + share-of-top conversion rates, plus consent posture (analytics grants, marketing opt-ins) and the lead-score band distribution. - lib/marketing/visitor-funnel.ts: pure funnel math (buildFunnel + safe pct), 6 tests. - /admin/marketing/visitor-intelligence (super-admin, via the admin layout gate): funnel bars, lead-band distribution, consent posture card. All counts are best-effort (a not-yet-applied table degrades to 0, never a crash). - Added "Visitor Funnel" to the marketing sub-nav under Audience & Intelligence. No schema/seed change — pure aggregation of existing tables (mkt_visitors, crm_contact_profile, crm_lead_scores, mkt_consent_events). tsc/eslint/build green; full suite 2446 passing. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01VJBpzPzPrBbMzYFSVCQaTM
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
NewWorldVenture
marked this pull request as ready for review
July 12, 2026 19:58
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What & why
Backlog #23 — Dedicated
/admin/visitor-intelligence/*dashboard (Agent, ★☆☆☆☆). This caps the visitor-intelligence lane (#4 consent → #6 identity → #13 profiling → #14 scoring, all merged) with one owner-facing view that ties them together: the acquisition funnel end-to-end.Changes
lib/marketing/visitor-funnel.ts(pure, 6 tests):buildFunnel(counts)→ the five stages with safe conversion percentages (share-of-top and step-over-step; 0 when the denominator is 0, negatives clamped)./admin/marketing/visitor-intelligence(super-admin, via the existing admin-layout gate):Verification
tsc0 ·eslint0 ·npm run buildgreen (/admin/marketing/visitor-intelligencebuilds) · fullvitest2446 passed (6 new).mkt_visitors,crm_contact_profile,crm_lead_scores,mkt_consent_events); nothing new to apply to prod.🤖 Generated with Claude Code
Generated by Claude Code