A GA4 export can use valid field names and still answer the wrong Contact Form 7 question. If the requirement is “successful form events on either of two pages,” placing the event and page rules in one OR group also admits unrelated events from those pages. Write the population in plain language, translate the parentheses deliberately, and review a small fixture before scheduling the report.

Start with a reporting sentence
Suppose your existing tracking sends an event named cf7_success. You want its event count on /contact/ or /request-quote/. This is an illustrative name, not a built-in CF7 event or a claim about your property. Verify the actual name and page values in your own authorized report. The intended rule is event equals cf7_success AND page belongs to the two-page set.
Keep the measurement boundary explicit. An analytics success event represents the signal your tagging implementation sends. It is not automatically a unique person, a CRM record or confirmed inbox delivery. Our GA4 tracking guide explains the initial event setup; this article deals with selecting already collected report data.
Use one expression type at each level
The Data API’s FilterExpression reference defines grouped, negated and primitive expressions. Each node uses one of those alternatives. Nest child expressions to represent parentheses. For this two-page case, an in-list filter avoids repeating two separate exact page filters. Explicit case sensitivity makes the review easier.
{
"dimensions": [{"name": "pagePath"}],
"metrics": [{"name": "eventCount"}],
"dateRanges": [{"startDate": "2026-11-01", "endDate": "2026-11-07"}],
"dimensionFilter": {
"andGroup": {
"expressions": [
{"filter": {
"fieldName": "eventName",
"stringFilter": {
"matchType": "EXACT",
"value": "cf7_success",
"caseSensitive": true
}
}},
{"filter": {
"fieldName": "pagePath",
"inListFilter": {
"values": ["/contact/", "/request-quote/"],
"caseSensitive": true
}
}}
]
}
}
}
This is an illustrative request body for properties.runReport, not a full authenticated client. Supply the correct property resource separately. Keep credentials in the connector’s existing protected configuration. The filter can use an event dimension without displaying it as a result column; inspect the API contract and compatibility for your chosen combination.
Choose exact matches before broad matches
Use the API schema to distinguish a path from a complete page URL and a query-string-bearing value. A path rule should not silently become a hostname rule. If several websites share a property and matching paths, add a reviewed hostname condition. If the actual path lacks a trailing slash, the example’s exact value will not select it.
Contains matching is useful when it is the intended rule, but a fragment such as contact can include more pages than expected. Regular expressions add another interpretation layer. Prefer a short reviewed list when the business question names a fixed set of pages. Record any case folding or path normalization so later readers can reproduce the population.
Check the parentheses with a tiny fixture
Before running against live analytics, sketch four synthetic records: the success event on contact, a page-view event on contact, the success event on request-quote, and the success event on an unrelated page. The example should include only the first and third records. Replacing the top-level AND with OR would incorrectly admit the second and fourth as well. This reasoning fixture tests your intended logic, not Google’s processing or the quality of collected data.
Then retrieve a narrow authorized report with enough dimensions to inspect the selected values. Keep the date range, timezone, property and metric identical between your control and filtered requests. Compare the two selected page rows to the relevant unfiltered breakdown. A smaller filtered count alone does not prove the expression is correct.
Keep metric thresholds separate
A request’s dimension filter selects dimension values before metric aggregation. A metric filter applies to aggregated metric values, as described in the runReport reference. “Only these form events” and “only result rows with more than five events” are different decisions. Put them in the appropriate request fields; do not mix dimension and metric field names in a single expression.
A threshold can hide a low-activity page entirely. It does not turn its count into zero, and it can make displayed row totals differ from an unfiltered report. Explain the threshold in the exported report. For small CF7 sites, retaining the low counts may be more useful than removing them.
Save the filter alongside the report
Keep the request body, inclusive date boundaries and a brief population definition with the exported artifact. Google’s report creation guide provides client examples; your operating note should additionally explain the business meaning. Recheck filters when an event is renamed, a page moves or a form appears on another host. A successful API response does not detect that editorial change for you.
Use the compatibility preflight for field combinations and the comparison guide when populations overlap. We publish CF7 Analytics. For a separate WordPress view of submission trends, review the free Svetlik Analytics for Contact Form 7 listing. It does not make the custom GA4 request above a native connector feature.
Sources and scope
Reviewed November 19, 2026: the official Google API references, schema and implementation guide linked above. Examples are synthetic and no property performance or firsthand benchmark is claimed.
