wp_ga_get_metadata 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_get_metadata

Read-only

Get all available dimensions and metrics for a property β€” use to discover valid names before building reports

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

Before your AI can build a meaningful GA4 report, it needs to know the exact field names available on your property β€” that's what wp_ga_get_metadata delivers. Easy MCP AI bridges Claude Desktop, Cursor, Windsurf, and 12 other AI clients directly to your GA4 account, returning the full dimension and metric catalog without any dashboard visit required. Call this tool first; Easy MCP AI's 11-tool GA4 integration handles the GA4 Admin API lookup via your configured Google service-account key.

See it in action

Claude Desktop β€” MCP Connection
πŸ‘€
What dimensions and metrics are available for GA4 property 123456789?
πŸ€–
Tool called wp_ga_get_metadata

Done. I've used wp_ga_get_metadata to complete that for you.

Example Use Cases & Sample Prompts

  1. Discover valid dimension names before building a custom report
    • Prompt: β€œWhat dimensions are available for GA4 property 123456789? I want to build a report by city and device.”
  2. Find the correct metric name for a specific measurement
    • Prompt: β€œWhat is the correct metric name for bounce rate in GA4 property 123456789?”
  3. Check whether custom dimensions and metrics appear in the metadata
    • Prompt: β€œList all available dimensions and metrics for GA4 property 123456789, including any custom ones.”

Frequently Asked Questions

What does wp_ga_get_metadata do?

Before your AI can build a meaningful GA4 report, it needs to know the exact field names available on your property β€” that's what wp_ga_get_metadata delivers. Easy MCP AI bridges Claude Desktop, Cursor, Windsurf, and 12 other AI clients directly to your GA4 account, returning the full dimension and metric catalog without any dashboard visit required. Call this tool first; Easy MCP AI's 11-tool GA4 integration handles the GA4 Admin API lookup via your configured Google service-account key.

How do I use wp_ga_get_metadata 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: "What dimensions and metrics are available for GA4 property 123456789?"

Do I need Easy MCP AI to use wp_ga_get_metadata?

Yes. wp_ga_get_metadata 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.

Step 1

Get the Plugin

Install Easy MCP AI on your WordPress site to unlock wp_ga_get_metadata and all Google Analytics 4 tools instantly.

Download Free Plugin

Step 2

Connect Your AI Client

Already have the plugin? Step-by-step setup guides for Claude, ChatGPT, Cursor, and 10+ more.

View Setup Guides β†’

Newsletter

The AI + WordPress space moves fast. Keep up.

New tools, workflow ideas, and product updates β€” be the first to know what's next.

No spam, unsubscribe anytime.