Audience and prerequisites
Send generate_lead only after the backend confirms the submission, with a defined value and currency; verify failed, duplicate and bot submissions stay out. You need a GA4 web stream, a defined success response from the form backend or application, and access to the chosen Google tag or GTM setup. Skill level: intermediate. Reading time: six minutes.
1. Define what counts as a generated lead
Use generate_lead for initial lead acquisition when the action fits Google's recommended-event definition. Fire it after the application confirms the submission, such as a successful response that creates or accepts the lead. A click on Submit, validation attempt, or form-start event is not a generated lead. Decide whether confirmation page reloads, retries, or callbacks could emit the signal again.
2. Keep values controlled and optional
Google's reference lists lead_source as an optional parameter. It lists value as a monetary value and says to send currency in three-letter ISO 4217 format when sending value; define whether a value is meaningful for your lead and how it is calculated. Do not invent a monetary amount merely to populate the field. Use a controlled form_id or form_type only if it serves an agreed reporting purpose. Never send a person's name, email, phone number, or free-text form content.
Direct Google tag (gtag.js)
Call the Google tag after the success condition resolves:
gtag('event', 'generate_lead', {
form_id: 'contact_sales'
});This is a Google Analytics event call. Replace the example with a stable internal form identifier. Add value only when a defensible value is defined, and include matching currency whenever value is sent.
Google Tag Manager
For GTM, send an application event to the data layer after success, then configure a Custom Event trigger and a GA4 Event tag with the required mapping. The data-layer push is a queue message; by itself it does not send an event to GA4. Choose one sending path for the action rather than duplicating a direct gtag() call and GTM tag.
3. Validate positive and negative cases
In GTM Preview or Tag Assistant, complete one successful submission and confirm the event name, destination, parameters, and single tag firing. Then submit an invalid form and cancel or retry a request; those cases must not create a success event. Check GA4 DebugView in the intended property to confirm receipt. A fired tag or network request alone does not prove reporting or downstream processing.
If the event is missing, check the backend success callback, consent state, tag destination, and blockers. If it duplicates, inspect page reloads, retry handling, and multiple implementations. Document who owns the form event when the form behavior changes.
Privacy and limits
Apply the site's consent rules to Google tags. Do not include personal or sensitive information in parameters, URLs, or event names. A GA4 event records the defined client-side measurement signal; reconcile lead counts with the system of record when business reporting requires confirmed lead status.
Related work
Add the event definition to the measurement plan and follow GA4 event validation to record test evidence.
Official references
- GA4 recommended events: generate_lead Checked November 10, 2026
- Set up events Checked November 10, 2026
- Set up event parameters Checked November 10, 2026
What changed
- v1.0.0Initial bilingual guide drafted and checked against linked current Google documentation.