To create a custom metric in GA4 with Claude or ChatGPT, connect your Google Analytics 4 account to PaidSync.ai and ask the assistant to create a custom metric for an event parameter, which lets reports total a number you send with events. It changes the property, so keep your approval prompt on.
Numbers sent with events, such as a lead score, only become reportable once registered. A write tool registers them:
list_ga4_custom_metrics lists the custom metrics already on the property.create_ga4_custom_metric registers a numeric parameter as a custom metric, with a display name, a unit and a scope.list_ga4_custom_metrics only reads your account. create_ga4_custom_metric changes it. That is the full set you need to create a custom metric.
| Tool | What it does |
|---|---|
| list_ga4_custom_metrics | Lists current metrics |
| create_ga4_custom_metric | Registers the metric |
Choose the unit that fits the number, such as standard, currency or seconds. Check that your tag sends a number and not text.
These steps use Claude to create a custom metric. PaidSync.ai also works in ChatGPT, and the prompts are the same.
Start at paidsync.ai, then link Google Analytics 4 through Google's own sign-in screen. No API key and no config file are involved. The login you choose must reach the property where you will create a custom metric.
Install PaidSync.ai from Claude's connector directory and sign in. Ask "list my GA4 properties" and select the one to create a custom metric in.
Ask for the custom metrics on the property.
Give the parameter name, display name and unit.
Approve the request and list the metrics again.
Run a report that includes the new metric after new events arrive.
Use these two prompts to create a custom metric, in this order.
list_ga4_custom_metrics only reads Google Analytics 4, so the lookup before you create a custom metric changes nothing.create_ga4_custom_metric applies on the first call without a dry run, so when you create a custom metric, your assistant's approval prompt is the check before it runs.create_ga4_custom_metric runs to create a custom metric.Every Google Analytics 4 tool PaidSync.ai offers is listed on the GA4 MCP server tools page, including the tools used to create a custom metric.
In GA4, open Admin, then Custom definitions, then Custom metrics. With PaidSync.ai the assistant does the registering after you describe it.
No. A custom metric is numeric. Use a custom dimension for text.
Yes. PaidSync.ai connects Google Analytics 4 to ChatGPT and to Claude, and the same tools run in both, so you can ask it to create a custom metric the same way you would in Claude.
The exact numeric parameter name sent by your tag.
PaidSync.ai is free for 15 tasks a month with no card, enough to create a custom metric and see the result. Pro starts at $99 a month. See pricing.
PaidSync.ai runs 630+ tools across 14 ad and analytics platforms. Connect your accounts once and use them in the AI assistant you already work in.
Get Started Free Book a Demo