Chapter 2 of 6 · min 4:24 to 6:51
The architecture: Detrics, BigQuery, master table and Claude Code
How everything connects: Detrics feeds BigQuery with each platform's data, a master table consolidates attribution via UTMs, and Claude Code builds and deploys the dashboard on Vercel.
Watch on YouTube (from 4:24) · Spanish audio
The pieces and how they connect
The dashboard’s architecture goes like this:
- Detrics acts as the data source: it feeds BigQuery with all the data from each ad platform and from GA4.
- BigQuery holds the raw data, and that’s where a master table gets created to consolidate every platform’s information.
- Claude Code builds the dashboard that reads from that table.
- Vercel hosts the deployment.
The master table is what solves the attribution problem: it blends GA4’s purchases and revenue with each platform’s spend and campaigns, matching on the Campaign ID UTM.

All the code, in a public repo
The dashboard in the video is on GitHub: github.com/detrics/dashboard-marketing-digital-bigquery. You can clone the code directly, start playing with Claude Code and build your own version on that base. And the deployed result is live at dashboard-demo-playground.vercel.app.
The key insight
Once the raw data is consolidated in BigQuery, everything is ready to play: you hand Claude Code a BigQuery with all the information, it reads the tables, understands perfectly what you’re going for, and can create the master, build the dashboard and more with no trouble. The heavy lifting is the data; the rest is agentic AI.
The step by step for the rest of the series: create the transfers with Detrics, consolidate the master in BigQuery, build the dashboard with Claude Code, and deploy on Vercel.
Frequently asked questions
What role does each piece of the stack play?
Detrics acts as the data source and feeds BigQuery with each platform's and GA4's data. In BigQuery, a master table consolidates everything. Claude Code builds the dashboard that reads from that table, and deployment happens on Vercel.
Do I need to write the dashboard code from scratch?
No. The code is in a public GitHub repo: you can clone it directly, start playing with Claude Code and build on that base.
Why is the heavy lifting getting the raw data into BigQuery?
Because once Claude Code has access to a BigQuery with all the raw data, it reads the tables, understands the goal and can create the master, build the dashboard and more with agentic AI, frictionless.
All chapters in this series
- 0:00 1. A look at the final dashboard
- 4:24 2. Architecture and steps to build it
- 6:51 3. Step one: connect data sources and destinations with Detrics
- 8:52 4. Step two: create the tables and transfers to BigQuery
- 17:39 5. Step three: consolidate the tables and build the dashboard with Claude Code
- 31:46 6. Final step: deploy with Vercel
Want to build this with your own data?
