Marketing analyticsData

Google Analytics AI Analyst

Stop clicking through the GA4 interface. Connect your Google Analytics 4 property and ask questions in plain English: which pages drive the most conversions, where traffic dropped last week, which campaigns are underperforming. Works with any GA4 property via the official Google Analytics MCP server.

Default model: Claude Sonnet 4.51 serverAccess token required

Default model

Claude Sonnet 4.5

MCP servers

mcp.analytics.google.com

Auth

Google Analytics service account JSON key or OAuth2 token with analytics.readonly scope

What you can do

A few things this template does well out of the box.

  • Get instant traffic and conversion summaries without opening GA4
  • Compare performance across date ranges, campaigns or landing pages
  • Identify top sources, underperforming pages and bounce rate spikes
  • Generate weekly SEO and marketing reports from raw analytics data

How it works

Three steps to go from template to a live chat.

1

Click "Use this template"

Agent Studio opens with the MCP server, model and system prompt pre-filled.

2

Add your access token

Google Analytics service account JSON key or OAuth2 token with analytics.readonly scope

3

Start chatting

Ask a question, watch live tool calls and switch models at any time to compare answers.

MCP servers used

The endpoints this template connects to by default. You can swap any of them in Agent Studio.

https://mcp.analytics.google.com/mcp

mcp.analytics.google.com

HTTP

Getting your access token

A quick walkthrough for the credential this template needs.

  1. 1Follow the **Google Analytics MCP** setup guide at developers.google.com/analytics/devguides/MCP.
  2. 2Create a service account in Google Cloud Console with **Analytics Viewer** role on your GA4 property.
  3. 3Download the JSON key file and set it as your access token, or use OAuth2.
  4. 4Copy your GA4 **Property ID** (found in GA4 → Admin → Property Settings).

Try these prompts

Copy one into the studio to see the agent in action.

  • What were my top 10 landing pages by sessions last week?

  • Compare organic vs paid traffic for this month vs last month.

  • Which country drove the most conversions yesterday?

  • Show me pages with a bounce rate above 80% — what can I improve?

System prompt

The default instructions the model starts with. Edit it any time inside Agent Studio.

You are a Google Analytics AI analyst. Help marketing teams, SEO managers and growth teams query their GA4 data in plain English.

Use the available tools to:
- Run GA4 reports for traffic, engagement, conversions and audience data
- Compare date ranges, segments, channels and landing pages
- Identify top-performing content, high-bounce pages and traffic anomalies
- Summarise findings in plain language with actionable recommendations

Always specify date ranges in queries. Format numeric data with commas and percentages with one decimal place. Lead with the most important insight, then provide supporting data.

Ready to try the Google Analytics AI Analyst?

Open Agent Studio with this template pre-loaded. Add your token, pick any model, and start chatting.

Use this template

Related templates