A person sends a project inquiry through Contact Form 7 on Monday and follows up through the same form on Friday. Your support queue has two inquiries to handle. Your lead report may show one identified contact for the week. Both numbers can be correct. A useful report shows the difference explicitly and accounts for submissions that could not be assigned a contact identity.

Decide what each row represents
Start with one row per accepted inquiry at the measurement boundary you control. Preserve the identifier for that inquiry. If a webhook delivery is retried, the repeated delivery of the same inquiry must map to its existing row. If the person intentionally completes the form again, the second accepted inquiry gets a new identifier. The duplicate submission guide helps distinguish repeated requests from actual form activity. Write down whether spam, test traffic, and rejected or incomplete submissions belong in a separate quality ledger or are excluded.
Choose a separate identity field for the lead calculation. A stable internal contact ID is usually a better reporting key than a display name. A shared mailbox can represent several people and a person may use different addresses; even a perfectly normalized email is evidence under your matching policy rather than certainty about an individual. If the match is missing or ambiguous, keep the inquiry in the report and leave the identity null. A guessed ID is harder to audit than an explicit unresolved row.
Use a fixture with a repeat and an unknown
Consider a synthetic batch with five inquiries: A01 and A02 map to contact C17, A03 maps to C24, and A04 and A05 are unresolved. The batch contains five accepted inquiries, two identified contacts, three identified inquiries, and two unresolved inquiries. There is one additional identified inquiry after the first inquiry for each identified contact in the window. The two unresolved rows could be the same person, different people, or someone in the identified group. Do not count them as two unique leads or collapse them to a single lead named Unknown.
With one row per accepted inquiry and a half-open time range, PostgreSQL can show the reconciliation in one query. Bind the range parameters through your database client. Here contact_id is a nullable, normalized reporting field; blank or untrusted identifiers must be normalized upstream.
SELECT
COUNT(*) AS accepted_inquiries,
COUNT(contact_id) AS identified_inquiries,
COUNT(DISTINCT contact_id) AS identified_contacts,
COUNT(contact_id) - COUNT(DISTINCT contact_id) AS additional_identified_inquiries,
COUNT(*) - COUNT(contact_id) AS unresolved_inquiries
FROM reportable_cf7_inquiries
WHERE accepted_at >= :period_start
AND accepted_at < :period_end;
Acceptance checks: identified and unresolved inquiries should sum to accepted inquiries. Identified contacts cannot exceed identified inquiries. Subtracting distinct contacts from identified inquiries measures additional occurrences among known identities; it does not say how many contacts were repeaters. To answer that question separately, group by non-null contact ID and count only groups with more than one row.
Document the period and the merge policy
Calculate the range from the business reporting calendar, then convert its boundaries to the time basis used by storage. The report time zone guide explains midnight and daylight saving boundaries. A contact can appear in both Monday and Friday’s distinct counts, so adding daily distinct counts does not produce the weekly result. Run the distinct count at the period you publish. The same rule applies to grouping by form or campaign: adding each form’s distinct count can count contacts multiple times.
Decide whether historical reports reflect the contact identity known when the inquiry was accepted or use the latest canonical contact mapping. Both are useful: the first preserves the published snapshot and the second usually makes more sense for deduplicating after CRM merges. Suppose C17 and C24 later merge. Your as-published fixture still has two identified contacts; a restated version could show one. Preserve the reporting version and mapping date, and follow a documented CRM merge reconciliation process. Never silently present a restatement as an unchanged result.
Show coverage beside the lead count
Give the owner the count and its coverage: “5 accepted inquiries, 3 identified inquiries linked to 2 distinct contacts, 2 inquiries unresolved.” If matching coverage drops, hold off on interpreting a lower identified-contact count as weaker demand. Check whether a connector stalled, a mapping shifted, or a delayed batch arrived. Keep a queue of unresolved inquiry IDs under access controls, and publish aggregate figures without personal data. Use a definition note that says whether the count means distinct known contacts in the period or contacts first acquired in the period. The latter needs a reliable first-inquiry history.
GA4 users are a separate analytics unit, with their own collection and definition. They should never be used as a stand-in for your identifiable CRM contacts. For a WordPress view of submission activity, see our free Svetlik Analytics for Contact Form 7 plugin. Pair its submission statistics with the private reconciliation above when leaders need to see both workload and identified leads.
