A Contact Form 7 export can contain two correct GA4 counts and still produce a misleading total. If one date range covers the first week of a month and another covers the whole month, events from that week belong to both ranges. The API has answered two questions. Adding the answers does not produce a count for a longer, unique period.

Define the comparison before constructing the request
Write the outcome, metric and inclusive dates in ordinary language first. For example: compare recorded occurrences of cf7_submit_success during November 2 to November 8 with November 9 to November 15. That event name is an illustrative implementation choice, not an event GA4 automatically provides for CF7. Verify your actual collection with the DebugView and Realtime workflow before interpreting exports.
Use the same event restriction and compatible dimensions for both windows. A change in form selection or collection behavior can explain a difference even when the dates are equal in length. Keep the property time zone in the report receipt, and label unfinished periods as provisional. This article concerns aggregated GA4 reports, not individual inquiry records or confirmation that a CRM received them.
Use explicit dates and meaningful range names
The Data API permits up to four date ranges. Both endpoints of a range are inclusive. Relative expressions such as yesterday are interpreted using the property’s reporting time zone, so a saved request containing relative dates can produce a different period when rerun. Explicit dates make an archived comparison easier to reproduce. Google documents these rules in its DateRange reference.
This example is a request body for properties/PROPERTY_ID:runReport, with the property identifier and authorization supplied by your existing reporting client. Replace the event name deliberately; do not send names, email addresses or message content as analytics dimensions.
{
"dateRanges": [
{"startDate": "2026-11-02", "endDate": "2026-11-08", "name": "previous_week"},
{"startDate": "2026-11-09", "endDate": "2026-11-15", "name": "current_week"}
],
"dimensions": [{"name": "eventName"}],
"metrics": [{"name": "eventCount"}],
"dimensionFilter": {
"filter": {
"fieldName": "eventName",
"stringFilter": {"matchType": "EXACT", "value": "cf7_submit_success"}
}
}
}
Range names become values of the response’s dateRange dimension. Do not use the reserved name prefixes documented by Google. Without custom names, the API assigns names based on request order. Meaningful names reduce the chance that a later code change silently swaps the labels shown to a reader.
Decode the headers instead of assuming array positions
Read dimensionHeaders and metricHeaders from the response, then associate each row’s values with those names. For multiple date ranges, retain the range identifier together with the event dimension. A downstream map keyed only by event name could overwrite one period with the other. A CSV without a period column could make two valid rows appear to be duplicate records.
Use a composite identity such as range name plus every requested dimension value. Read the metric type and convert the returned string deliberately. Keep a label dictionary containing each range’s exact start and end dates. If your client library presents the response differently, inspect its decoded headers rather than copying an index from another language’s example. The response reference describes the header and row structure.
Check overlapping periods before combining results
Consider two synthetic windows: November 1 to November 7 and November 5 to November 11. Each contains seven days, but they share November 5, 6 and 7. Google’s runReport specification says overlapping days contribute to both ranges. Keep those results as a comparison. Request November 1 to November 11 separately when the question is the total over that continuous period.
Even disjoint ranges do not make every metric additive. A user who appears in two different weeks can contribute to each week’s user metric. Adding weekly users is not a deduplicated count for the fortnight. For event occurrences, also confirm identical filters, complete returned rows and the report’s data-quality limitations before reconciliation. Our submission and unique-lead guide explains the separate business identities involved.
Validate the export as a reporting artifact
Give the exported columns stable names such as period, event name and event count. Display the human-readable date boundaries alongside the period label in the finished report. A colleague opening the file next month should be able to identify both windows without finding the original script or relying on the order of two chart colors.
- Calculate each inclusive window’s length locally and list any shared dates.
- Confirm returned range labels match the requested names and appear in every exported row.
- Check dimension and metric compatibility before adding a form-specific dimension.
- Preserve response metadata and retrieve all pages using unchanged filters and dates.
- Display unavailable or withheld results explicitly instead of replacing missing rows with invented zeros.
A useful receipt includes the property, time zone, event definition, metric, dimensions, both date windows, extraction timestamp and any quality notices. Publish the counts beside those definitions. If your priority is aggregate submission activity inside WordPress, our free Svetlik Analytics for Contact Form 7 plugin provides a separate reporting option. Reconcile measurement definitions before expecting it to match GA4.
Official sources
Reviewed November 21, 2026: the Google references linked above, Data API reporting basics and the dimension and metric schema. Dates and scenarios here are synthetic examples, not this site’s measured performance.
