Do you need dbt for marketing analytics?

By Motabar Javaid · · 3 min read

Short answer: You don't need dbt if you have one or two data sources and a handful of reports. BigQuery scheduled queries are enough. dbt becomes worth it once you're combining several sources, like GA4, Google Ads, Meta and a CRM, and several people or dashboards depend on the same definitions of "lead", "revenue" or "channel". dbt Core is free. The real cost is the time to set it up properly.

I use dbt on most multi source projects, but I don't push it on clients who don't need it yet.

What dbt actually does

dbt lets you write your data transformations as SQL files, then runs them in the right order inside your warehouse. On top of that it gives you:

  1. Version control: every change to how "revenue" is calculated lives in Git.
  2. Dependencies: a model that builds sessions runs before the one that joins sessions to ad spend.
  3. Tests: automatic checks that IDs are unique, values aren't null and numbers stay in expected ranges.
  4. Documentation: a browsable guide to every table and column.

It doesn't move data into the warehouse. That's done by connectors like Fivetran, Airbyte or custom scripts. dbt works on the data once it's there.

When scheduled queries are enough

If your setup looks like this, skip dbt for now:

  1. GA4 export plus one ad platform
  2. Two to five summary tables
  3. One person maintaining it

BigQuery's scheduled queries can rebuild your summary tables every morning. My guide on GA4 sessions and source / medium in SQL is a good starting point for those.

When dbt starts paying off

  1. Several sources need joining: GA4, Google Ads, Meta, LinkedIn, HubSpot and Stripe, each with their own IDs and naming.
  2. Definitions keep drifting: marketing and finance report different revenue because their queries are slightly different.
  3. Things break silently: a source changes a column name and a dashboard shows zeros for a week. dbt tests catch that on the next run.
  4. More than one person writes SQL: Git and code review stop people overwriting each other's logic.

That's the setup behind the single source of truth case study, where five sources fed one consistent model, and reporting time dropped by 80 percent.

What it costs

  1. dbt Core is open source and free. You run it yourself, from a laptop, a scheduled job or a CI pipeline.
  2. dbt Cloud is the hosted version with a web editor and scheduler. It has a free tier for a single developer and paid plans for teams.
  3. Dataform is Google's own alternative built into BigQuery, and it's free to use apart from your BigQuery costs. If you're all in on Google Cloud, it's worth a look.

The bigger cost is time. A clean first version for a typical marketing stack usually takes a couple of weeks.

A sensible structure for marketing data

  1. Staging models: one per source. Rename columns, fix types and standardise channel names.
  2. Intermediate models: sessions from GA4, spend by campaign, deals from the CRM.
  3. Mart models: the final tables dashboards read, like daily performance by channel and campaign with spend, sessions, leads and revenue.

For GA4 specifically, there are open source dbt packages that handle a lot of the session building for you, so you don't start from zero.

The honest recommendation

Start with scheduled queries. When you catch yourself copying the same SQL into a third dashboard, or explaining why two reports disagree, that's the moment to move to dbt or Dataform.

If you'd like help deciding or setting it up, that's part of my marketing analytics consulting. My open source marketing data centralization repo shows the kind of structure I use.

Frequently asked questions

Is dbt free?

dbt Core is free and open source. dbt Cloud, the hosted version, has a free single developer tier and paid team plans.

Can I use dbt with GA4 data?

Yes. dbt runs on the GA4 BigQuery export like any other table, and there are open source dbt packages built specifically for GA4 data.

What is the difference between dbt and Dataform?

Both turn SQL into managed, tested transformations. Dataform is Google's tool built into BigQuery. dbt works across many warehouses and has a larger community.