PaidSync>Blog>How to Create a Custom Metric in GA4 With AI

How to Create a Custom Metric in GA4 With AI

Founder written
Author: Ahmed Ashraf|4 min read|Updated October 24, 2026
$1B+ ad revenue generated $500M+ managed Ex-Scandiweb paid media lead 630+ MCP tools

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.

Which Tools Do the Work

Numbers sent with events, such as a lead score, only become reportable once registered. A write tool registers them:

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.

How the Workflow Is Built

ToolWhat it does
list_ga4_custom_metricsLists current metrics
create_ga4_custom_metricRegisters 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.

How to Create a Custom Metric in GA4 With Claude in 5 Steps

These steps use Claude to create a custom metric. PaidSync.ai also works in ChatGPT, and the prompts are the same.

1

Connect GA4 to PaidSync.ai

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.

2

Add PaidSync.ai to Claude

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.

3

List existing metrics

Ask for the custom metrics on the property.

4

Define the new one

Give the parameter name, display name and unit.

5

Create and check

Approve the request and list the metrics again.

How to Check the Result

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 the custom metrics on my GA4 property."
Reads your account and changes nothing.
"Create a custom metric for the parameter lead_score named Lead Score with a standard unit."
Applies when your assistant runs it, so approve it only after you read it.

How PaidSync.ai Protects You

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.

Frequently Asked Questions

How do I create a custom metric in GA4?

In GA4, open Admin, then Custom definitions, then Custom metrics. With PaidSync.ai the assistant does the registering after you describe it.

Can a metric hold text?

No. A custom metric is numeric. Use a custom dimension for text.

Can ChatGPT create a custom metric in GA4?

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.

What do I need before I create a custom metric?

The exact numeric parameter name sent by your tag.

How much does it cost?

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.

How to Create a Custom Dimension in GA4 With AI→ How to Review Custom Dimensions and Metrics in GA4 With AI→ How to Discover Dimensions and Metrics in GA4 With AI→ GA4 MCP server tools→

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