On this page
What this issue is
GA4 events can carry extra details called parameters. A generate_lead event might carry form_id and form_name. A sign_up or login event is meant to carry method, such as google or email. When the event fires but the parameter is missing, the hit still counts as a conversion. You just lose the detail that explains it.
- Visitor submits formForm submit succeeds
- Tag fires generate_leadEvent name is correct
- Parameter value readform_id variable returns nothing
- GA4 reportCannot split leads by form
The event arrives, but the detail you need to segment it does not.
Why it costs you leads or sales
Example: with form_id missing, none of the leads can be assigned to a form. After the fix, all of them can.
How to check if your site has it
Open GA4 DebugView
In GA4 go to Admin > Data display > DebugView. Turn on debug mode with Google Tag Assistant or the GA debugger browser extension, or use GTM Preview mode.
Complete the action yourself
Submit the form or sign up on your site while DebugView is open.
Click the event
Select the event (for example generate_lead) in the stream and look at its parameters list. Check that form_id or method is there and has a real value.
Compare to the network request
In browser DevTools > Network, filter for
collect. Open the request for your event and look in the payload forep.form_id(text parameter) orepn.(number parameter).Check every form and method
Repeat for each form and each sign-up or login option. One form often works while another does not.
How to fix it
Open the GA4 event tag
In Tags, open the GA4 Event tag for generate_lead, sign_up or login.
Add an event parameter
Under Event Parameters, click Add row. Name: form_id (or method). Value: a variable such as {{Form ID}} or a fixed text like quote_form.
Fix an empty variable
If the value is blank in Preview mode, check the variable. Built-in Form ID reads the HTML id attribute, so the form needs one. Otherwise use a Data Layer Variable or a Custom JavaScript variable.
Test and publish
Use Preview mode, confirm the parameter has a value on the tag, then submit the container.
Check how events are sent
Events may come from a GA plugin, your form plugin or GTM. Find which one sends the event before changing anything.
Give each form an ID
In your form plugin (for example Gravity Forms, WPForms, Contact Form 7, Elementor Forms), note the form ID or set a custom ID or CSS ID so a tag can read it.
Add the parameter in the sender
If a plugin has an event or parameter mapping screen, add form_id there. If you use GTM, follow the Google Tag Manager tab.
Find the event source
Check Settings > Customer events for custom pixels, and the Google & YouTube app or GTM for GA4 events.
Add the parameter
In a custom pixel, pass the parameter in the gtag call (see the code example). For sign_up on customer accounts, set method where the event is built.
Set a form identifier
Select the form block and give it a clear name in Settings. Webflow form names are readable by GTM through the Form Text or a data-attribute you add under Custom attributes.
Pass it to the tag
Read that attribute in GTM with a variable and add it as the form_id parameter on the GA4 event tag.
Use the funnel or website tracking code
In Sites > Funnels or Websites > Settings > Tracking Code, add a gtag or GTM snippet.
Send the event with the parameter
On the form submit, push the event with form_id set to the form name. Use the code example as a base and adapt the selector to your form.
Find where the event is defined
Check Marketing & SEO > Marketing Integrations (Google Analytics) and Tag Manager or Custom Code in Settings.
Add the parameter
For custom events, use Custom Code to send gtag('event', ...) with the parameter, or add it on the GA4 tag in GTM.
Open Code Injection
Go to Settings > Advanced > Code Injection, or use GTM if it is installed.
Send the event with the parameter
Add a submit listener that sends the event with form_id, or add the parameter on your GTM GA4 tag.
Add the parameter to the call
Include the parameter object in gtag('event', ...) or push it to the dataLayer, using the exact names GA4 expects.
Guard against empty values
Only send values you have. Fall back to a fixed label rather than undefined.
document.querySelectorAll('form').forEach(function (form) {
form.addEventListener('submit', function () {
gtag('event', 'generate_lead', {
form_id: form.id || 'unknown_form',
form_name: form.getAttribute('name') || ''
});
});
});
// sign_up with method
gtag('event', 'sign_up', { method: 'google' });Register a custom dimension
In GA4 go to Admin > Data display > Custom definitions > Create custom dimension. Scope: Event. Event parameter: form_id (exact match, case sensitive).
Wait for data
New dimensions only populate from the time they are created, and can take up to a day to appear in standard reports.
Before
- generate_lead arrives with no parameters
- All forms look the same in GA4
- sign_up has no method
After
- generate_lead carries form_id and form_name
- Leads split by form in Explorations
- sign_up carries method such as google or email
How to confirm it's fixed
- DebugView shows the event with the parameter and a real value
- The collect request contains ep.form_id (or ep.method)
- Every form and sign-up method has been tested, not just one
- The value is not undefined, null or a template placeholder
- The parameter is registered as a custom dimension in GA4
- After a day, the dimension shows values in a report or Exploration
How to prevent it happening again
- Keep a spec: event name, required parameters, allowed values
- Give every form a stable ID or name that does not change with redesigns
- Use GTM Preview and DebugView before publishing tag changes
- Re-test events after form, theme or plugin updates
- Use consistent snake_case parameter names across tools
How FunnelGuard handles this
Questions people ask
Why is my GA4 event missing the form_id parameter?
Usually the tag never adds it, or the variable that supplies it returns nothing, for example because the form has no id attribute. Check the event in GA4 DebugView and the tag in GTM Preview mode to see which one it is.
How do I add a parameter to a GA4 event in Google Tag Manager?
Open the GA4 Event tag, go to Event Parameters and add a row. Enter the parameter name, such as form_id, and a variable or fixed value. Test in Preview mode, then publish the container.
What is the method parameter on sign_up and login events?
It is the recommended parameter GA4 uses to record how the user signed up or logged in, such as google, email or facebook. Without it you can count sign-ups but not compare the routes.
Why does my parameter show in DebugView but not in GA4 reports?
Custom parameters need to be registered as custom dimensions before they appear in standard reports. Go to Admin > Data display > Custom definitions, create an event-scoped dimension with the exact parameter name, and wait for new data.
Do parameter names in GA4 have to match exactly?
Yes. Names are case sensitive, so form_id and formId are different parameters. Pick one snake_case name and use it everywhere, including the custom dimension.
Does a missing parameter stop the conversion from counting?
No. The event still counts. You lose the detail used to segment it, and any audience or condition that depends on the parameter will not match.
How can I be alerted when an event parameter goes missing?
A synthetic monitor can run your form on a schedule and check the GA4 hit for required parameters. FunnelGuard does this and sends one alert after a second-region re-check.
Related issues
- TRK-043generate_lead not sent on form submitFix guide
- TRK-050Parameter value is undefined, null or '(not set)'Fix guide
- TRK-051Parameter values contain template placeholders ({{Click Text}})Fix guide
- TRK-053Custom dimensions sent but not registered in GA4Fix guide
- TRK-061sign_up / login events missing on SaaS signup funnelFix guide
- TRK-047Event name typo (Generate_Lead vs generate_lead)Fix guide