← All projects
Project — 08 / 09BI / Analytics · 2025

GA4 Paid Traffic Dashboard

An internal BI tool that cross-references GA4 event data with Google Ads spend, so the marketing team can see what paid campaigns actually deliver.

PythonSQLBigQueryGA4Google Ads APIPostgreSQLDjango RESTAPScheduler
Illustrative cover image for the GA4 Paid Traffic Dashboard case study

01The problem

Ad spend lived in Google Ads while conversions and user behaviour lived in GA4. Comparing the two meant manual exports and spreadsheets, so campaign decisions were slow and hard to trust.

02How it works

01

GA4 data in BigQuery

GA4 events are exported daily into date-partitioned BigQuery tables.

02

Pick the date range

Parameterised table IDs select the right partitions for any reporting window.

03

Pull ad spend

Campaign spend is fetched from the Google Ads API.

04

Join & compute

Events and spend are combined to measure performance per campaign.

05

Serve & schedule

Results are served via Django REST Framework and emailed on a schedule by APScheduler.

03What I built

  • Queried GA4 event data directly in Google BigQuery, with parameterised table IDs so date-partitioned tables can be selected for any reporting window.
  • Pulled campaign spend through the Google Ads API and joined it with GA4 events to measure performance per campaign.
  • Served the results through a Django REST Framework backend backed by PostgreSQL.
  • Scheduled automated report delivery by email using APScheduler.

04Key features

Date-partitioned queries

Efficient BigQuery access for any window.

Spend vs results

Google Ads cost matched to GA4 behaviour.

REST API

Django REST Framework + PostgreSQL.

Scheduled reports

Automatic email delivery.

05Challenges & solutions

ChallengeQuerying GA4's daily partitioned tables for any date range.
SolutionParameterised the GA4 table IDs so the right partitions are selected automatically.
ChallengeUnreliable tracking between ad clicks and GA4 sessions.
SolutionValidated GCLID and UTM tracking with statistical analysis and A/B testing, reaching 100% data accuracy.

06Impact

70%Faster time-to-insight across the BI dashboards
100%Data accuracy after GCLID & UTM tracking validation
AutoScheduled email reports — no manual pulls