Sub topic 5
Designing the Lead Event
Assume you already have a GA4 property with a web data stream installed and can edit the site or its Google Tag Manager container. You should also know how your form reports a successful submission.
A lead event records a meaningful business inquiry, such as a quote request, demo request, application, or phone consultation. Design the event around the completed outcome, not around an interface action. A click on Submit is not necessarily a lead if validation fails or the server rejects the form.
Choose the event name
Use the recommended generate_lead event when a successful form submission represents a lead. Recommended events have standard meanings, so GA4 and connected products can interpret them more consistently.
Use a custom event when the outcome does not fit generate_lead, or when you need a separate event for an internal workflow. For example, application_started describes an attempt, while generate_lead describes a qualified inquiry that your business accepts.
| Situation | Suitable event | Why |
|---|---|---|
| A visitor successfully submits a contact form | `generate_lead` | The action creates a business inquiry |
| A visitor opens a contact form | `form_start` or another descriptive event | No lead exists yet |
| A visitor submits an application that still requires review | `application_submitted` | The event describes the actual workflow |
| A visitor submits a quote request that your business accepts | `generate_lead` | The request is a lead |
Use one event name consistently for the same business outcome. Add a non-sensitive parameter such as form_name or lead_type when you need to distinguish forms.
Send the event after success
Fire generate_lead only after the site confirms that the submission succeeded. A thank-you page, a successful API response, or a confirmed form callback can provide this signal.
// Run this only after the lead form is successfully submitted.
gtag('event', 'generate_lead', {
currency: 'USD',
value: 25.00,
lead_type: 'demo_request'
});The value is your estimated economic value for one lead. It does not have to equal immediate revenue. If a demo request is worth $25 on average, send 25.00. The currency parameter identifies the currency used for that value.
If every lead has the same value, use a fixed value. If different lead types have different expected values, calculate the value from a controlled business rule:
function recordLead(leadType, leadValue) {
gtag('event', 'generate_lead', {
currency: 'USD',
value: leadValue,
lead_type: leadType
});
}
// Call this after the server confirms the submission.
recordLead('enterprise_demo', 150.00);Keep the rule stable enough that reports remain comparable. Do not send an arbitrary value merely to make the event appear more important.
Common errors
- Tracking the submit-button click instead of the confirmed submission.
- Sending both a thank-you-page event and an API-response event for one lead.
- Using different event names for the same outcome across forms.
- Omitting
currencywhen sendingvalue. - Treating every form submission as a qualified lead without defining the business rule.
- Putting personal data into
lead_type,form_name, or another parameter.
The event path should contain one clear success point:
After implementation, test the event in DebugView before marking it as a key event. Confirm that one successful submission produces one event and that the parameters contain no personal information.
Exercise
A website sends generate_lead when the visitor clicks Submit, even when the server later rejects the form. What should change?
Show answer
Move the event call to the confirmed-success callback, response handler, or thank-you page so GA4 records only accepted submissions.