SEO + AEO on AutopilotFrom the team at Stackmatix
The Growth Library

Check GA4 Dimension and Metric Compatibility Before Scheduling a Report

Use GA4 Core report compatibility evidence with the same property, dimensions, metrics and filters before a changed dashboard request enters its schedule.

Check whether the fields in a proposed GA4 Core report can coexist before scheduling it. A valid metric name and a valid dimension name do not independently prove that their combination is supported. Save the exact base request and the compatibility evidence used for each proposed addition.

The deliverable is a compatibility preflight packet: property, report family, dimensions, metrics, both filter expressions, candidate additions, actual response or error, and a decision. It complements response decoding and pagination; neither can rescue a report definition the API cannot run.

Use the Method for Its Documented Scope

Google’s checkCompatibility reference says it lists dimensions and metrics that can be added to a report while maintaining compatibility. It checks Core reports; Realtime reports have different rules. The method itself fails if the supplied base dimensions and metrics are incompatible.

Preserve that distinction. An incompatible base may produce a method error, not a successful response containing a tidy incompatible label for every field. Do not catch that error and manufacture an empty list of approved additions.

The reference says property, dimensions, metrics, dimensionFilter and metricFilter should match the intended runReport values. Inspect those filters even when the visible columns did not change. A hidden filter can make a saved compatibility result irrelevant to a revised request.

Freeze the Base and Candidate Separately

For teaching, imagine a report owner with one compatible base request and a proposed additional dimension. The fixture below uses local labels for the saved base and the candidate. It is normalized synthetic evidence, not a captured API response and not a statement that a particular real field combination is compatible.

In an authorized implementation, map each response entry through its documented dimensionMetadata.apiName or metricMetadata.apiName and its compatibility enum. The actual API names belong in the packet. Do not match solely on a friendly display label.

The header-decoding contract starts after a report response exists. This preflight decides whether the selected fields are eligible to enter that request. A decoder’s ability to parse a number says nothing about field compatibility.

Review a Filled Decision Matrix

CaseSaved base evidenceCandidate evidenceDecision
C1Same base definitionCOMPATIBLEMay enter next approved validation stage
C2Same base definitionINCOMPATIBLEHold addition
C3Same base definitionCandidate absentUnestablished; hold
C4Base filter changedEarlier COMPATIBLEStale evidence; rerun preflight
C5Method failedNo valid responseHold; inspect actual failure
C6Same base definitionCOMPATIBILITY_UNSPECIFIEDUnestablished; hold

C1 is not a guarantee that an extraction will finish, have complete collection or answer the business question. It only clears the defined compatibility gate. Quota, authorization, supported date scope, reporting limits and semantic suitability remain separate checks.

If a response was filtered to compatible entries, a missing candidate is still not enough evidence to invent a returned INCOMPATIBLE status. Save the actual filter and report “not established by this response.” A different authorized diagnostic request may be appropriate, but it is a new observation.

Execute the Staleness and Missing-State Cases

This local Python checks the normalized matrix. It does not implement Google’s service or make any API request. In a real adapter, preserve transport errors and decode the official response before producing these local states.

base = {'property': 'fixture', 'family': 'Core',
        'dimensions': ['base_dimension'], 'metrics': ['base_metric'],
        'dimensionFilter': {'exact': 'guide'}, 'metricFilter': None}
def verdict(current, checked, statuses, candidate, request_ok=True):
    if not request_ok or current != checked:
        return 'hold'
    return 'continue' if statuses.get(candidate) == 'COMPATIBLE' else 'hold'
assert verdict(base, base, {'candidate': 'COMPATIBLE'}, 'candidate') == 'continue'
assert verdict(base, base, {'candidate': 'INCOMPATIBLE'}, 'candidate') == 'hold'
assert verdict(base, base, {}, 'candidate') == 'hold'
changed = dict(base, dimensionFilter={'exact': 'worksheet'})
assert verdict(changed, base, {'candidate': 'COMPATIBLE'}, 'candidate') == 'hold'
assert verdict(base, base, {'candidate': 'COMPATIBLE'}, 'candidate', False) == 'hold'
assert verdict(base, base, {'candidate': 'COMPATIBILITY_UNSPECIFIED'}, 'candidate') == 'hold'

The comparison is structural in this small fixture. A production packet should use a deliberate stable representation and preserve original requests as well as its fingerprint. Do not normalize away meaningful filter values, scope or casing to force an old check to match.

Repair the Request Without Changing Its Meaning Silently

When an addition is incompatible, return to the reader’s question. Removing the dimension may make a report run while eliminating the breakdown the decision requires. Splitting the job into separate compatible reports may be useful, but their results are not automatically joinable at the intended grain.

Keep the original requirement, rejected combination and selected alternative together. If the alternative changes population or granularity, rename the output and have the report owner accept that change. An empty cell should not become a made-up zero simply because the desired dimension cannot be requested.

The filter-order example helps check the semantic question after a compatible request is chosen. Platform acceptance and analytic meaning are separate conditions.

Retain Evidence Through Scheduled Release

Record the actual checked time, API reference revision where available, response state, report family and credential authority without storing secrets in the packet. A stale or unavailable check is a hold state under this proposed workflow, not a reason to retry indefinitely.

Recheck when the saved base fields or filters change. Maintain a small regression fixture for incompatible, absent, unspecified and failed-response cases so a future adapter refactor cannot turn them into approval. Do not assert that passing the fixture certifies the current property.

Use the release ledger to document the changed request definition. Approve scheduling only after compatibility, semantic scope and the normal reporting gates are satisfied. This is a reproducible preflight for an existing authorized report, not permission to enable another provider, change a property or spend on new extraction capacity.

Sources

Matt Pru

Co-founder and CEO of Stackmatix. Writing about growth, customer acquisition, and the decisions behind useful marketing. Connect on LinkedIn.

Developed with AI assistance under Matt's editorial direction. Our Editorial Approach