Skip to content

Integrations / Analytics

Avo and Google Analytics 4

Send type-safe events to Google Analytics 4 from code generated from your plan, and check what your app sends with Inspector.

AvoYour tracking plan
  • From Avo to Google Analytics 4: Generated tracking code
  • From Google Analytics 4 to Avo: Event shapes
  • Between Avo and Google Analytics 4: Your agent, through both MCPs
Google Analytics 4Analytics

World's leading teams trust Avo

Three ways to connect

What Avo does with Google Analytics 4

Codegen

Send events to Google Analytics 4 with Codegen

Avo generates a type-safe function for each event in your plan. You connect Google Analytics 4 through the destination interface: callbacks you fill in to pass each event on to Google Analytics 4.

The destination interface works with any event-based destination, so Google Analytics 4 can sit next to your other tools.

Docs: Destinations in Avo Codegen

Set it up

  1. In Avo, create a destination and set its mode to Destination Interface in your source’s Codegen setup.
  2. Pull the generated code with the Avo CLI.
  3. Initialize Avo with your destination and fill in the callbacks that send to Google Analytics 4.

Inspector

Check your Google Analytics 4 events with the Inspector SDK

The Inspector SDK sends Avo each event’s name and its property names and types, never the values. Avo compares them with your plan.

A one-time setup that takes 10 to 30 minutes and ships with your next app release. If your events go through a server-side Google Tag Manager container, Inspector can check them there instead.

Docs: Inspector SDK overview

Set it up

  1. In Avo, copy the Inspector API key from your source’s Inspector setup tab.
  2. Install the Inspector SDK for your platform and initialize it with the key.
  3. Call Inspector where you track events, so it sees each event’s name and shape.

Avo MCP

Analyze your Google Analytics 4 data with your agent

Pair the Avo MCP with Google’s Google Analytics MCP. Avo gives your agent what each event means and which events make up each metric, so it builds the right report query instead of guessing.

Your agent can also compare what Google Analytics 4 returns with your plan to find tracking gaps.

Docs: Avo MCP

Set it up

  1. Connect your agent to the Avo MCP.
  2. Connect it to your Google Analytics 4 data through the Google Analytics MCP.
  3. Ask your question. Your agent looks up the events and metric definitions in Avo before it queries Google Analytics 4.
At a glance

Google Analytics 4 and Avo, in short

Kind of tool
Analytics
Avo sends to Google Analytics 4
Nothing directly. Your app sends events through the generated code
Avo reads from Google Analytics 4
Nothing. Inspector reads event shapes in your app
Code change needed
Yes, in your app
With your agent
Avo MCP for meaning and metrics, the Google Analytics MCP for the data
Languages
The language of each of your sources
Keep going

Where to go next

Your stack

Every integration

The other tools Avo works with, and what it does with each.

All integrations
The product

How Avo works

Plan, build and monitor your event data from one tracking plan.

See how it works
Avo MCP

Let your agent do it

Connect your agent to your tracking plan, to design and review tracking with you.

Avo MCP

Your campaigns, dashboards and agents are only as good as your data.

One plan, checked at every step, for every person and agent in your stack.