wp_ga_run_pivot_report is a Google Analytics 4 MCP tool inside Easy MCP AI — the WordPress plugin that connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin →wp_ga_run_pivot_report
Read-onlyRun a pivot-table GA4 report — e.g. countries × devices with sessions in each cell
Requires a Google service-account key configured in Easy MCP AI → External Data. Requires the manage_options capability and the mcp:ga:read OAuth scope. Only GA4 properties are supported — Universal Analytics was sunset July 2024.
Description
Cross-tabulation unlocks audience segment comparisons that flat reports can't show — wp_ga_run_pivot_report lets your AI generate GA4 pivot tables in natural language, like "sessions by country vs. device category" or "conversion rate by channel vs. user type." Easy MCP AI translates the request into a GA4 Data API pivot call and returns the structured result to Claude Desktop, Windsurf, or any MCP-compatible AI assistant, without opening the GA4 Explore interface. Only GA4 properties are supported; configure your Google service-account key in Easy MCP AI → External Data first.
See it in action
wp_ga_run_pivot_report Done. I've used wp_ga_run_pivot_report to complete that for you.
Example Use Cases & Sample Prompts
- Cross-tabulate countries by device category with session counts
- Prompt: “Run a pivot report for GA4 property 123456789 showing sessions by country (rows) and device category (columns) for the last 30 days.”
- Analyze traffic sources by browser with engagement rate
- Prompt: “Create a pivot report for GA4 property 123456789 with session source as rows, browser as columns, and engagement rate as the metric.”
- Compare conversion rates across channels and user types
- Prompt: “Run a pivot report on GA4 property 123456789 showing conversion rate by default channel group (rows) and new vs returning users (columns) for the last 90 days.”
Frequently Asked Questions
What does wp_ga_run_pivot_report do?
Cross-tabulation unlocks audience segment comparisons that flat reports can't show — wp_ga_run_pivot_report lets your AI generate GA4 pivot tables in natural language, like "sessions by country vs. device category" or "conversion rate by channel vs. user type." Easy MCP AI translates the request into a GA4 Data API pivot call and returns the structured result to Claude Desktop, Windsurf, or any MCP-compatible AI assistant, without opening the GA4 Explore interface. Only GA4 properties are supported; configure your Google service-account key in Easy MCP AI → External Data first.
How do I use wp_ga_run_pivot_report with my AI assistant?
Install Easy MCP AI and configure your Google Analytics 4 credentials in the dashboard. Then connect your AI client and describe what you want in natural language — for example: "Run a pivot report showing sessions broken down by country and device category for the last 30 days."
Do I need Easy MCP AI to use wp_ga_run_pivot_report?
Yes. wp_ga_run_pivot_report is bundled inside Easy MCP AI as part of the Google Analytics 4 data integration. Configure your credentials, connect your AI, and this tool is available immediately — no coding required.
More Google Analytics 4 Tools
Check which dimension/metric combinations are valid together before running a report
Get all available dimensions and metrics for a property — use to discover valid names before building reports
Get details for a single GA4 property — display name, time zone, currency, data retention
List all GA4 accounts and their properties — entry point for discovering a valid property_id
List conversion/key events configured on a property
List custom dimensions registered on a property
Step 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_ga_run_pivot_report and all Google Analytics 4 tools instantly.
Step 2
Connect Your AI Client
Already have the plugin? Step-by-step setup guides for Claude, ChatGPT, Cursor, and 10+ more.