API Reference

Google Analytics 4 / API Reference

ga4_create_custom_dimension

GA4 analytics tool. Create a new custom dimension in GA4. Args: parameter_name: The event parameter name to track (e.g. 'product_category'). display_name: Human-readable name shown in the GA4 UI. scope: EVENT | USER | ITEM. Default EVENT. description: Optional description. property_id: GA4 property ID. Leave blank to use default.

This is a write tool: it creates custom dimension in your Google Analytics 4 account. Claude asks you to confirm before it runs.

Ask Claude

You do not call this tool yourself. Ask for the outcome and the client picks the tool:

Create custom dimension in my Google Analytics 4 account for [parameter name], [display name].

It takes 2 required and 3 optional parameters.

Parameters

ParameterTypeRequiredDescription
parameter_namestringYesParameter Name
display_namestringYesDisplay Name
scopestringNoScope
descriptionstringNoDescription
property_idstringNoProperty Id

Related Google Analytics 4 tools

Before you can call it

This tool needs a connected Google Analytics 4 account. The Google Analytics 4 connect guide covers the OAuth flow and the permissions it asks for, and the quickstart gets a client talking to the server in about five minutes.

Workflows that use this

Rather than calling tools one at a time, these skills run a whole procedure against the same account:

Start using MCP Ads