BlogGuides · November 20, 2026 · 5 min read

Contact Form 7 GA4 Exports: Retrieve Every Ordered Report Page

Retrieve paginated GA4 form-event reports with fixed query settings, deliberate ordering, row-count checks and honest extraction limits.

A Contact Form 7 report can contain more grouped rows than one GA4 Data API response returns. Downloading the first page and calling it the complete export can hide form pages, dates or categories. Define the query once, retrieve every page in a deliberate order, and record the checks that justify calling the extraction complete.

Three report pages connect by arrows to a stack of pages inside a green folder.
Generated conceptual illustration.

This guide concerns a custom reporting script using Google’s Data API. It assumes your chosen submission event already exists and has been verified. It does not configure a native GA4 integration in CF7 Analytics or recover events that were never collected.

Define what a report row represents

A row is a combination of the requested dimensions with its aggregated metrics. A report grouped by date and page path is different from a list of individual submissions. Google’s report creation guide explains that tabular model. Write the property, fixed date interval, event filter, dimensions and metrics into an extraction specification before requesting page one.

For example, a team might request eventCount by date and pagePath for one configured submission event. The resulting row count measures dimension combinations, not leads. A single row can represent several events. Keep event counts separate from unique people, CRM contacts and confirmed inbox delivery.

Use fixed settings for every page

Prefer explicit start and end dates for a reproducible export. Relative dates can change meaning if a long-running or resumed extraction crosses midnight. Keep the property, filters, dimension order, metric order and date ranges identical across requests. Only the pagination offset should advance during one extraction.

Check dimension and metric compatibility first. For an illustrative October report, the request body below uses a hypothetical event named cf7_submission. Replace that exact value with the event your implementation actually records. The property ID belongs in the request endpoint.

{
  "dateRanges": [{"startDate": "2026-10-01", "endDate": "2026-10-31"}],
  "dimensions": [{"name": "date"}, {"name": "pagePath"}],
  "metrics": [{"name": "eventCount"}],
  "dimensionFilter": {
    "filter": {
      "fieldName": "eventName",
      "stringFilter": {"matchType": "EXACT", "value": "cf7_submission"}
    }
  },
  "orderBys": [
    {"dimension": {"dimensionName": "date", "orderType": "ALPHANUMERIC"}},
    {"dimension": {"dimensionName": "pagePath", "orderType": "ALPHANUMERIC"}}
  ],
  "limit": "10000",
  "offset": "0"
}

Order by the complete grouping key

Sorting only by eventCount can leave many equally ranked rows. For this two-dimension example, ordering by date and then pagePath makes the intended sequence explicit. If you add a dimension, revisit the ordering too. Google’s OrderBy reference distinguishes dimension and metric sorting and the available string order types.

This is an extraction design recommendation, not a promise that sorting freezes changing analytics data. Even consistent ordering cannot turn several separate requests into a transactional snapshot. Record extraction start and finish times and avoid interpreting a changing recent period as a final closed report.

Advance offsets using retained rows

The runReport reference documents a default of 10,000 rows and a maximum of 250,000 per request. A large limit is a page-size choice, not proof that the complete query fits in one response. The response reference defines rowCount independently of limit and offset.

Start at offset zero. Retain the returned page and its query identity, then advance by the number of rows retained. In a synthetic 23-row result with a ten-row page size, offsets are zero, ten and twenty. The pages contain ten, ten and three rows. The extraction is complete only when the retained coverage matches the expected result under the same query.

If a page is empty before the expected end, headers differ, rowCount changes, or a complete dimension key repeats unexpectedly, stop and mark the run incomplete. Investigate and restart a fresh extraction when appropriate. Do not silently remove duplicate rows and claim the original scan was complete.

Keep retries and report arithmetic honest

Persist a page before advancing its checkpoint. A retry should replace or recognize that same page rather than append it twice. Store a query fingerprint, requested offset, returned count and extraction status beside the output. A partially written file should never have the same completion marker as the approved report.

Handle documented errors with bounded retries and respect Data API quotas. Repeatedly polling an unchanged failed request is not a recovery strategy. Keep raw contact details out of diagnostic logs and out of GA4 dimensions.

After retrieval, do not sum every metric indiscriminately. User metrics can overlap between dimension groups. Pagination checks establish which aggregate rows were retrieved; they do not establish that arbitrary totals are meaningful or that privacy restrictions and aggregation effects disappeared.

Run a small acceptance exercise

First exercise the loop against synthetic rows with a small page size. Include zero rows, an exact page-size boundary, a partial final page and a simulated failure after saving page two. Verify that resuming does not duplicate that page and that an interrupted run remains incomplete. Then perform an authorized read against your chosen property and retain its report metadata.

Compare a closed interval with an independently requested aggregate using the same filters, while accounting for metric semantics. Investigate differences before sending the report to colleagues. An export receipt should state the interval, query version, number of grouped rows and any known limitations.

Keep WordPress reporting in context

This site publishes CF7 Analytics. Our free Svetlik Analytics for Contact Form 7 provides submission statistics in WordPress. A custom GA4 extraction is a separate reporting implementation. Review the filter-logic guide before comparing its totals with another system. Complete pagination is necessary evidence for an export, but it is only one part of a sound measurement definition.

Official documentation checked November 20, 2026. The request and pagination counts are illustrative; no live analytics-property extraction or comparative benchmark is claimed.