Do not count the second load of a Google Forms iframe as a saved enquiry in Google Analytics 4 (GA4). In our local one-page form test, a successful save and a failed save both produced the same second load. If you only need the number of responses your Google Form saved, keep the form and count its records. If you need to match a saved response to a specific tracked website session, keep the setup only if you can demonstrate that match within your analytics consent settings. Google Forms response records
What the second load tells you
An iframe displays a page inside your website. When the form page is on a different origin, the website can listen for the iframe’s load event while browser rules prevent the website from reading the embedded document directly. To find out whether an enquiry exists, you need evidence from the system that received it. HTML Standard on iframe load events, HTML Standard on access to the embedded document
A published Google Tag Manager recipe increments a counter each time the iframe loads and fires a lead signal at every count above one. It warns that a multipage form could fire a signal when a visitor clicks Next. We tested the counting rule with a single page and checked the receiver’s records alongside it. Datametrik’s embedded Google Forms method
One page, four different outcomes
We ran the test on 22 November 2026 using Chromium 149.0.7827.55 and Node.js 24.18.0 on macOS. Two local HTTP servers on different ports acted as the website and the form receiver. The website defined its handler before loading the iframe and attached it with the frame’s onload attribute. It counted each load after the first as one provisional lead. The one-field form posted the test code SYNTHETIC-01. The receiver wrote the code to an in-memory list for successful submissions and returned a confirmation. Failed submissions returned an error page without a write. Each row below starts with a fresh parent page. The retry in the last row stays on the same page.
| Action after the first load | Form receiver | Total iframe loads | Provisional leads | New saved responses |
|---|---|---|---|---|
| Submit and save | POST returned a confirmation (HTTP 200) | 2 | 1 | 1 |
| Submit and fail to save | POST returned an HTML error page (HTTP 500) | 2 | 1 | 0 |
| Open the same form URL again inside the iframe without submitting | GET returned the form (HTTP 200) | 2 | 1 | 0 |
| Fail, then retry successfully | First POST returned the error page, second POST saved the response | 3 | 2 | 1 |
In the retry case, the failed save counted as a lead before a record existed. The successful retry raised the count to two with one response saved. Capping the count at one per session would still leave a false lead in the case where the failed attempt was the only one. The local test reproduced the counting rule without a live Google Form, Tag Manager container or GA4 property. GA4’s key event counting options
Keep the form when you only need receipt totals
Have the form owner open Responses in Google Forms. Use the response records, or the linked spreadsheet, to count what that form received in the reporting period. If the same form also circulates by direct link, the total includes responses from people who never loaded your website. If the business wants a count of distinct enquiries, use the website lead tracking guide to handle test records, spam and repeat requests. Google Forms help on viewing and exporting responses
Change the setup when you need a match to a GA4 session
A Google Forms submit trigger supplies a form response to Apps Script. The documented trigger payload gives you the response and form, but no identifier for the session on your website. For a server-side GA4 integration that uses Measurement Protocol to match an event to a specific web session, the request needs the corresponding client and session identifiers and must meet Google’s timing rules. Google Forms submit event fields, GA4 web event requirements, GA4 session attribution requirements
On a staging copy, ask your developer to open two separate tracked browser sessions with different campaign labels and submit one fictional enquiry from each. For each saved response, ask them to show one confirmed-receipt event linked to the session that submitted it. Then have them reload the iframe without submitting and cause a save to fail in the test setup. Check the receiving records as well as the event output. Both controls should yield zero new saved responses and zero confirmed-receipt events. Repeat a valid submit with analytics consent declined. The response should still arrive, and any analytics output should follow your site’s consent settings. Keep form answers and contact details out of the analytics payload. Google’s consent overview, Google Analytics privacy guidance
If you need session attribution and the pairing test fails, change the setup. Keep the existing form if an integration can demonstrate the match. Otherwise, choose a form that passes the same test. Until then, keep counting saved responses and leave those without a verified session match unattributed.
Sources and further reading
Sources checked 22 November 2026.
- HTML Standard on the iframe element covers browser load events.
- Google Forms response management covers viewing and exporting responses.
- Google Apps Script trigger objects documents what a Forms submit event contains.
- GA4 Measurement Protocol use cases gives the requirements for matching an event to a session.