How ohitsmekatie/dbt-sample-project works
This is a dbt Core sample project that transforms public Google Analytics sample data in BigQuery into staging models and production-facing analytics marts. The documented workflow is to reference raw sources, clean and reshape them in staging, then publish final models. The README also describes schema customization and model documentation/testing configuration; the graph focuses on runtime data modeling. Source excerpts were not provided, so model-to-model dependencies are not asserted where the README does not identify them.
Main entry points: sessions.sql Session staging · daily_campaign_metrics.sql Campaign metrics · daily_site_metrics.sql Site metrics · daily_top_paths.sql Top paths
Components 7
Data inputs
- Google Analytics data
- BigQuery warehouse
Staging models
- Session staging
models/staging/sessions.sql
Analytics marts
- Campaign metrics
models/marts/daily_campaign_metrics.sql - Site metrics
models/marts/daily_site_metrics.sql - Top paths
models/marts/daily_top_paths.sql
dbt customization
- Schema naming macro
macros/generate_schema_name.sql
Connections 6
- Google Analytics data → Session staging: provides source
README.md - Session staging → BigQuery warehouse: writes staging
README.md - Campaign metrics → BigQuery warehouse: writes mart
README.md - Site metrics → BigQuery warehouse: writes mart
README.md - Top paths → BigQuery warehouse: writes mart
README.md - Schema naming macro → BigQuery warehouse: customizes schema
README.md