Analytics & AI Consultancy

Analytics Infrastructure.
AI Integration.
Built Right.

We design and build the complete data stack — from tracking implementation and attribution engineering to AI-powered analytics agents — for agencies and ecommerce brands worldwide.

5+
Production AI agents
deployed
40k+
Records migrated
on first pipeline run
3
Attribution bugs fixed
nobody else caught
Scroll
What We Do

Full-Stack Analytics & AI Services

We cover every layer of the analytics stack — from the first data point captured to the AI agent that interprets it. Each service is built to production standard, not prototype.

Analytics Implementation

From GA4 event modeling to server-side tracking, we implement analytics that actually captures what matters. Consent-compliant, structured, and built for long-term reliability.

GA4 GTM Server-Side Consent Mode v2 Meta CAPI

Attribution Engineering

Most attribution pipelines are broken. We diagnose and rebuild them at the SQL level — fixing click-ID priority chains, session deduplication, and last-click logic directly in Dataform.

Dataform BigQuery Click-ID GA4

AI Agents & Automation

We build production RAG agents and autonomous analytics bots that query your data warehouse, detect anomalies, and surface insights — without manual intervention.

Claude API Gemini n8n RAG Python

Data Engineering

End-to-end pipelines from any source into BigQuery. Incremental loading, partitioning, deduplication, and scheduling — built for daily production use with zero manual maintenance.

BigQuery Cloud Functions Python Shopify API

Tracking & Tag Management

Client-side and server-side GTM implementation, Consent Mode v2 integration, and custom attribution scripts that go beyond what standard setups can capture — including first-click and last-click HTML tags.

GTM Stape.io Cookiebot Iubenda
Case Studies

Work That Went Into Production

Real projects, real infrastructure, real results. No prototypes, no proofs-of-concept — everything here is live and running for active clients.

01
Attribution Engineering

Rebuilding a Broken GA4 Attribution Environment for a European Ecommerce Brand

GA4 Dataform BigQuery Attribution
Challenge

A broken GA4 attribution environment with three silent bugs: Meta campaigns appearing under Google source, sessions duplicating and inflating counts, and a last-click cookie that never updated after the first visit — making "last-click" attribution identical to first-click.

Solution

Rebuilt the entire Dataform environment from scratch. Implemented a click-ID-first priority chain (gclid → google, fbclid → meta, before any UTM fallback), resolved attribution at event level before aggregation to eliminate duplication, and migrated last-click tracking to sessionStorage for true overwrite behaviour.

Result

Clean dual first-click and last-click attribution across four reporting tables. Session counts accurate. Revenue attribution now trusted by the client's marketing team for budget decisions.

02
AI Agent

Autonomous Weekly Analytics Agent for a Digital Agency

n8n BigQuery Gemini API Slack
Challenge

A digital agency needed weekly ecommerce performance reporting without analyst time. Reporting was manual, delayed by days, and provided no investigation capability — the team only knew something dropped, not why.

Solution

Built an autonomous n8n AI agent connected to BigQuery. Every Monday it queries week-over-week metrics, and — if revenue or purchases drop more than 10% — automatically calls a channel breakdown tool and then a device breakdown tool before writing its own structured Slack report. No human triggers the investigation; the agent decides when one is needed.

Result

Zero manual reporting. The agent runs autonomously every Monday, investigates anomalies without being asked, and delivers structured findings with channel and device breakdowns directly to the agency's Slack workspace.

03
AI Analytics Platform

Natural Language Analytics Agent for a Fashion Ecommerce Brand

RAG Python Streamlit BigQuery
Challenge

The client's team needed to query BigQuery analytics data daily without writing SQL. Off-the-shelf BI tools gave static dashboards with no ability to ask follow-up questions, and required heavy setup for each new analysis.

Solution

Deployed a production RAG agent — Python, Streamlit, and Claude/Gemini API — that translates plain-English questions into BigQuery SQL, executes them safely, and returns answers with Plotly charts and raw data tables. A BM25-based few-shot memory system auto-promotes successful queries via thumbs-up feedback, improving SQL accuracy with every session.

Result

A self-improving analytics interface, live at a private URL, used daily by the client team. The system gets more accurate over time without any engineering involvement — successful queries become future examples automatically.

Articles

Technical Writing From the Trenches

Practical, deep-dive articles written from real project work — not tutorials repackaging documentation, but the edge cases and lessons that only come from production implementations.

First articles publishing soon
Analytics Engineering

How We Fixed GA4 Session Duplication in Dataform

Why your session counts are lying to you, how to find the GROUP BY that's causing it, and the exact CTE pattern to fix it permanently.

Coming Soon
AI & Automation

Building a Natural Language Analytics Agent for Ecommerce

The full architecture of a production RAG agent: semantic layer YAML, BM25 few-shot retrieval, BigQuery safety validation, and Plotly charts.

Coming Soon
Attribution

Why Your Last-Click Attribution Is Lying to You

The 1000-day cookie with a guard check that never overwrites — and how to identify if this is affecting your attribution data right now.

Coming Soon
Data Engineering

PrestaShop to BigQuery: The Edge Cases Nobody Documents

The requests library that breaks bracket encoding, the date=1 parameter nobody mentions, and Cloudflare 403s that vanish with one header.

Coming Soon
AI & Automation

Building an Autonomous Slack Analytics Bot with n8n and BigQuery

How to build an AI agent that investigates its own anomalies — tools, system prompt design, and the decision logic that makes it autonomous.

Coming Soon
Get in Touch

Let's Talk About Your Data Stack

Whether you need to fix broken attribution, build a data pipeline, deploy an AI agent, or start from scratch — we want to hear about it. Tell us what you're working on.

webmetricsconsulting.com

We respond within 1 business day.

Message received.

We'll be in touch within 1 business day.