NoBreakAdsBlogMCP Create an account

Query a custom GA4 dimension through MCP using property metadata

Find the dimension’s API name in the client’s GA4 property, then run a short report to check whether it works with your chosen metric.

One client labels a field “Form type” while another calls it “Inquiry source.” Copying a display label into a request can fail even when the field exists. GA4 exposes property-specific API names for registered custom definitions.

Step by step

  1. Select a linked GA4 property and an event that sends the parameter. Record the definition's registration date, scope and a test value the team recognizes.
  2. Read that property's metadata. Copy the API name of the field with the expected scope and query a short period after registration with eventCount. Save the response and filters.
  3. Check that the test value appears for the right event. Add one dimension at a time. If a combination fails, revert to the last working query and record which added field caused the incompatibility.
  4. If the API name is missing, check the property ID, scope and registration date in GA4 Admin. Retrieve that property's metadata again before building another query.

Put the NoBreakAds MCP to work

Ask NoBreakAds MCP for metadata from the linked GA4 property. Copy the dimension’s API name and test it with the intended metric in a short report. Save the returned header or compatibility error. Explore the NoBreakAds MCP · Create an account.

Related guide: Did GA4 count two leads per submission? Test your generate_lead event

Find the name the property recognizes

If GA4 is enabled and the property is linked in NoBreakAds, read ga4.metadata through apps_read. Match the label to its API name and confirm whether it is a dimension or metric. For example, customEvent:form_type is usable only if it matches a registered definition for that property. If the metadata response is truncated, verify the definition in the property.

Start with a minimal report

Request the confirmed dimension and eventCount over a few days of known traffic. Add eventName to identify which event supplies the field if the combination is accepted. An available dimension may be incompatible with other metrics. For missing values, check which events actually carry the parameter before concluding a form stopped working.

Find the API name for Form type. Show the recognized field and a small table of counts by value and event. Flag unavailable fields and rejected combinations.

Test the dimension using a known event

In a demo property, select a mock comparison event with the parameter offer_type. Copy the corresponding API name from metadata and query one date with known data. If you get “(not set)”, compare the parameter on the test event against the registered dimension and confirm the date includes data collected after registration.

Illustrative scenario

Imagine two sites with a dimension labeled “Plan.” One records the customer’s account plan. The other records the plan displayed in a form. The analyst checks how each dimension is scoped and sees why the same query would answer two different questions.

Frequently asked questions

Two fields have similar names. Which should I use?

Compare the scope, parameter and description in the property. Validate against an event with a known value and record the API name used in the report.

The field exists but every row has a missing value. What should I test?

Choose dates after registration and an event expected to send the parameter. Verify the value and its spelling in a test collection before investigating aggregation.

Sign up for NoBreakAds to organize GA4 queries for individual client properties.

Sources and documentation

Optional measurement

Choose whether we can measure visits and ad performance. Privacy policy.