A visitor presses Get a quote and the form highlights an empty phone field. No enquiry reaches the business. If Analytics has already recorded a lead, every decision based on cost per enquiry is a little too optimistic. The button knows that someone tried. The application knows whether the business received anything.
The goal is one generate_lead for one accepted enquiry that your implementation can observe. First agree what “accepted” means. A stored request awaiting a staff reply, a confirmed appointment and a qualified sales lead are three different milestones.
Find the system that can vouch for the enquiry
Ask whoever maintains the form to show you the response that creates an entry in the form inbox or CRM. Record whether success means “the server accepted and saved the request”, “an email job was queued”, or “the CRM has assigned a record”. A form can save a good enquiry and subsequently fail to deliver its notification email. If your event represents the saved enquiry, losing the email is a delivery incident. Adding another analytics tag will make diagnosis harder.
Separate lead forms from other forms on the same domain. A service business may have a newsletter signup, vacancy application, support form, trade enquiry and quote form. A rule that marks every form_submit as a key event will put applications for jobs into the sales pipeline. Enhanced measurement can expose form_start and form_submit for diagnostic use, with coverage depending on implementation. They require verification against the actual application before being treated as completed enquiries. Google’s enhanced form measurement
Choose the signal that fits the form
Dedicated confirmation page. Follow one successful test and note where it lands. Open the same URL directly from a new tab, refresh it and use Back then Forward. If all of those qualify under a page-view rule, the rule measures views of a page anyone can reopen. Prefer an application-confirmed, one-time success signal. Where the provider offers only a destination page, document the proxy and its known repeat paths. Avoid advertising it to the business as an exact enquiry count.
Form that submits without navigation. Ask the developer or plugin vendor for the published event or callback that runs only after a successful response. Listen for that outcome and check the response semantics. An HTTP 200 can carry a validation error in a JSON body. Displaying a spinner proves that the browser sent something. A successful return code by itself can be equally inconclusive. Build a GTM trigger for an AJAX success event
Embedded form on a supplier's domain. The surrounding page may observe that the iframe loaded and nothing more about the submission. Look for a vendor-supported integration, documented parent notification or confirmation that you control. If it exposes none of those, report the handover click and reconcile accepted forms from the supplier's export. Calling the click a lead creates a reporting problem that no amount of dashboard polish can solve.
Specify what gets sent
Use the recommended generate_lead event for a qualifying enquiry. If one useful breakdown is the kind of enquiry, an allowlisted parameter such as form_type with values trade and quote keeps the report understandable. Register the custom parameter only if the business needs it as a reporting dimension. If you send a monetary value, document its basis and currency. A made-up value for a request is liable to reappear in a report as revenue. Google’s generate_lead event specification
An example data-layer message after application acceptance could be:
window.dataLayer = window.dataLayer || [];
window.dataLayer.push({
event: 'enquiry_accepted',
form_type: 'trade'
});
With GTM, create a Data Layer Variable for form_type, a Custom Event trigger for the exact name enquiry_accepted, and a GA4 Event tag sending generate_lead to the intended Google tag destination. Map the variable to the event parameter. Running the push in the browser console is a useful wiring check, but it says nothing about whether the form has the correct acceptance callback. Verify both halves before publishing.
Keep names, emails, phone numbers, addresses, message text and uploaded filenames out of the payload. Inspect the URL on the confirmation page as well. A fine-looking event can inherit a page location containing an email address in the query. If a page puts personal information into the URL, fix the application and review Google’s data controls with the implementation owner. Google’s guidance on keeping personally identifiable information out of Analytics
Follow a slow response all the way through
Imagine a trade customer asking a printer for a quote on 500 menus. The browser sends the request, the application validates it, the database saves the enquiry, the CRM sync starts and an acknowledgement email goes into a queue. Which of those steps should trigger the website lead?
If the sales desk works from the application’s enquiry list, saving the record establishes the outcome. The CRM and email steps can be monitored separately. If the application merely forwards the payload and retains nothing, success may require an accepted record in the CRM. Observe the response the form gives when the CRM is temporarily unavailable. Some forms invite the customer to try again even though a retry queue already holds the first request. A click trigger would count both attempts, while a delayed CRM response might ultimately produce one actual lead.
For the print shop, write an acceptance contract in ordinary language: “A trade quote exists once submissions are assigned an internal enquiry number and are available to sales. One accepted submission may trigger more than one notification, and retrying email delivery does not represent another enquiry.” The enquiry number can be useful inside the back-office test record. You do not need to send it as a unique report dimension or encode customer details into the event.
Run an explicit retry case in staging. Ask the developer to simulate the provider’s supported failure response or use the form's approved test facility. Note what the customer sees, whether a record exists and how many success events fire after recovery. If a retry can create a second business record, there is a form design problem as well as a measurement problem. Put the input and observed states in a ticket so the application owner can make retries safe.
Test the path mobile customers actually use
A desktop form may submit inside the site's own page. The mobile call to action may open a supplier widget in a separate tab. Both buttons can have the same label. Verify the storefront link, the document hosting the form, which destination receives the event and what happens if the customer returns to the original tab.
Repeat the validation with the consent state the implementation is expected to honour. An accepted form and no Analytics event under a restricted state may be the correct result. Keep that line in the test sheet. Someone investigating later should be able to tell an intentional collection boundary from a missing success hook. A backend record does not grant permission to reconstruct a visitor's analytics activity when their browser did not send it.
Look at saved-form behaviour too. A customer can begin an enquiry on Monday, close the tab, then send it on Wednesday. A time-on-page rule or view-of-form event will record interest on one day while the business gets the enquiry on another. The accepted-action event should represent the moment acceptance is observed. Choose reporting periods and reconciliation dates on that basis.
Reconcile a day with duplicates and missing measurements
The print shop’s demo inbox received eight accepted trade requests on a local Tuesday. Two were labelled staff tests and one was a support request sent through the wrong form. The business definition counts all eight accepted trade-form submissions at collection time, then reports five eligible sales enquiries after downstream review. GA4 was never told how sales later classified them. Eight at one stage and five at another are not evidence of a broken trigger.
Now suppose seven accepted submissions are eligible to produce a measured event in a controlled rehearsal, and the trace contains seven lead events. Sort them by the local test journeys, not by a visitor's personal details. One duplicate from a reloaded receipt and one missing event from an embedded form can cancel each other out. A figure that agrees with the CRM total by coincidence is less convincing than a test where one valid submission, one invalid attempt and one revisit each produce the expected result.
For a real property you may be unable to match a browser observation to an individual accepted record, and you should avoid creating a new identifying parameter just to force a join. Group the comparison by time interval, form type and template where the data permits. Make statements at the level of the evidence. “The mobile supplier widget received ten requests yesterday and our event did not fire in a controlled successful mobile test” justifies a supplier investigation, even without assigning all ten requests a probable acquisition source.
Assign one owner to the count of raw accepted enquiries and another, if needed, to the qualification process. If the owner asks for cost per qualified lead rather than cost per accepted website enquiry, the job now crosses into CRM attribution and spend data. Put that requirement in its own measurement brief. Renaming the website event “qualified” does not give the browser access to the salesperson's decision.
Run the form through five outcomes
Use a test endpoint and dummy records. On a production enquiry form, arrange an explicitly approved test with the team receiving the enquiry and identify how to remove it from sales follow-up. Record both whether the business system created an entry and whether GA4 received an event in the expected consent state.
| Test | Application result | Expected observable lead events |
|---|---|---|
| Required field left empty | No record | 0 |
| Server declines the submitted combination | No record | 0 |
| Valid details accepted | One record | 1 |
| Accepted receipt revisited | Same record | 0 additional |
| Separate valid request later | Second record | 1 additional |
Also try a double tap while waiting for the response. If the application creates two records, first establish how it handles duplicate submissions with the form owner. If the application creates one record and GTM sends two events, inspect overlapping triggers or a plugin sending the same event independently. For a modal form and an ordinary page form, repeat at least one success and one error on each. They can look identical and run different code.
After confirming the journey in DebugView, decide whether to mark the event as key. Use the selected event, date range and property time zone when reconciling. Count incoming, measured and qualified enquiries in separate columns. A spreadsheet showing 25 accepted records, 20 measured events and 12 qualified leads describes three stages. Check whether any record was spam, internal, received offline or sent from a template outside coverage before explaining the gap.
Keep the agreed event contract with the form, especially if a plugin changes hands. A future developer can then replace the form without accidentally changing “enquiry received” back into “somebody pressed a button”.