Skip to content

Add customer insights models: CLV and campaign funnel#1

Open
aboyalejandro wants to merge 1 commit into
mainfrom
feature/customer-insights-models
Open

Add customer insights models: CLV and campaign funnel#1
aboyalejandro wants to merge 1 commit into
mainfrom
feature/customer-insights-models

Conversation

@aboyalejandro
Copy link
Copy Markdown
Owner

Summary

  • 2 intermediate models: int_customer_lifetime_value (user-level conversion aggregation) and int_campaign_funnel (campaign-level funnel metrics across all dates)
  • 2 mart models: customer_lifetime_value (LTV tiers + acquisition channel via first-touch attribution) and campaign_funnel_analysis (stage-to-stage conversion rates + efficiency score)
  • Schema YAMLs with not_null/unique tests on primary keys, all 28 tests passing

Test plan

  • dbt build passes all 28 tests (10 models, 18 data tests)
  • Validated row counts via Postgres MCP (2,166 customers, 20 campaigns)
  • Fixed fan-out bug in CLV first-touch attribution using ROW_NUMBER() window function

🤖 Generated with Claude Code

New intermediate models (int_customer_lifetime_value, int_campaign_funnel) and
mart models (customer_lifetime_value, campaign_funnel_analysis) with schema docs
and tests. All 28 tests passing.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
aboyalejandro added a commit that referenced this pull request Feb 21, 2026
- Move miro-board-overview from modeling/ to design/ (step 8)
- Renumber modeling screenshots 08-10 → 07-09
- Update MODELING.md and DESIGN.md references
- README: replace claude mcp add with .mcp.json note, add intermediate/marts to sitemap, add PR #1 reference
- Gitignore .claude/settings.json

Co-Authored-By: Claude Opus 4.6 <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