A saved address such as Intake!A7:D7 describes a location, not a permanent inquiry identity. Insert rows above it and that address can refer to a different lead. A custom Contact Form 7 to Google Sheets connector can attach developer metadata to a row and locate that row again through the API. Use an opaque inquiry reference, verify match cardinality, and keep the reference in your own delivery record.

Separate the inquiry from its current coordinates
A spreadsheet ID identifies the document, a sheet ID identifies a tab, and a row index identifies a position at a particular moment. None substitutes for the inquiry’s own reference. Begin with our tab identity guide if the connector currently relies on a mutable tab title. Row metadata adds another layer within the correct spreadsheet.
Google’s developer metadata guide describes metadata associated with spreadsheet locations. The association follows structural changes such as inserting rows above the tagged row. This is useful when an integration revisits a record later. It does not turn arbitrary copying, partial-cell sorting or importing another workbook into a guaranteed identity-preserving operation. Test the actual editing actions your team permits.
Attach a reference to one known row
In a controlled staging sheet, first identify the row you intend to tag. Check that its visible inquiry reference matches your connector record. Then send a createDeveloperMetadata request through spreadsheets.batchUpdate. This illustrative body attaches a key-value pair to row seven of a tab whose numeric sheet ID is 123:
{
"requests": [{
"createDeveloperMetadata": {
"developerMetadata": {
"metadataKey": "cf7_inquiry_id",
"metadataValue": "demo-inquiry-a",
"visibility": "PROJECT",
"location": {
"dimensionRange": {
"sheetId": 123,
"dimension": "ROWS",
"startIndex": 6,
"endIndex": 7
}
}
}
}
}]
}
The indexes are zero-based and the end is exclusive. Let the API assign the metadataId and preserve the returned ID with the spreadsheet and inquiry references. The batch request reference defines the operation. This code is an API body for a custom integration, not a CF7 form-tag or a feature automatically supplied by a Sheets plugin.
Find the tag before reading the lead
Use developerMetadata.search with a DataFilter containing developerMetadataLookup. Search by the saved metadataId when you have it. Searching by your metadataKey and metadataValue can support reconciliation, but inspect every match and its location. Require exactly one appropriate row before treating the lookup as resolved.
Zero matches can mean the tag was deleted, the spreadsheet is wrong or the calling project cannot see it. Multiple matches can mean the connector created the tag twice or the key-value pair is being reused. A metadata key is not required to be unique. Neither is a key-value combination a database uniqueness constraint. Route ambiguous matches for review instead of choosing the first result.
To read values using the tag, call values.batchGetByDataFilter with the appropriate developerMetadataLookup. Inspect the returned range and values, then verify the inquiry reference in the row. Reading a metadata match is a location lookup; confirming the business record still requires checking the data you expected.
Make the initial attachment reliable
A row append followed by a metadata creation request leaves a gap in which someone can rearrange the sheet. Re-reading an inquiry column helps detect a mismatch but does not make two independent calls atomic. For a custom workflow with stronger requirements, design row insertion, value placement and metadata creation together under the batch API’s supported operations, or restrict raw-intake editing while the initial association is established.
Do not describe an ordinary connector as providing that guarantee unless its implementation documents it. Preserve the append receipt, the verified inquiry reference and the eventual metadata ID. If a response goes missing, reconcile before creating another tag. Our header mapping guide covers the separate problem of values landing under the wrong columns.
Understand visibility and retention
PROJECT metadata is visible to the Google Cloud project that created it. DOCUMENT metadata is available to other projects with document access. Choose deliberately when several services collaborate on the same spreadsheet, and account for visibility changes during credential or project migration. The visibility setting is not a security boundary for storing secrets.
Use a non-sensitive opaque reference rather than an email address, message body or token. Metadata consumes spreadsheet resources and should have a retention plan. If your workflow creates several tags per inquiry, estimate the ongoing growth and check current API limits before adopting it for a high-volume intake sheet. Keep authoritative inquiry records elsewhere when spreadsheet capacity or editing flexibility makes this unsuitable.
Run a focused acceptance check
Tag one synthetic row, save the returned metadata ID, and insert a blank row above it. Search again and verify that the located values still belong to the same inquiry. Repeat the exact full-row moves and sorts your team uses, then test row deletion and duplicate key-value tags. A deleted inquiry should become an explicit missing-record case, not a reason to silently attach its ID to a neighboring row.
Keep this responsibility in the connector that owns the sheet. We publish CF7 Analytics; the free Svetlik Analytics for Contact Form 7 provides submission statistics and trends, not row-metadata reconciliation. Review the official Google references linked here, checked November 19, 2026, before implementing the proposed workflow.
