Skip to content
FunnelGuard

Fix guide by FunnelsGuard

GA4 event parameter missing (form_id, method): how to fix it

TRK-049Medium impactDetectedBy FunnelGuardPublished Updated
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.

Where the parameter goes missing
  1. Visitor submits formForm submit succeeds
  2. Tag fires generate_leadEvent name is correct
  3. Parameter value readform_id variable returns nothing
  4. 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

What you can see in reportsExample numbers
What you can see in reports (example)Before fix: 0 % of leads attributed to a specific form; After fix: 100 % of leads attributed to a specific form038770100Before fixAfter fix% of leads attributed to a specific form

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

Check the parameters on a live event
  1. 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.

  2. Complete the action yourself

    Submit the form or sign up on your site while DebugView is open.

  3. 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.

  4. Compare to the network request

    In browser DevTools > Network, filter for collect. Open the request for your event and look in the payload for ep.form_id (text parameter) or epn. (number parameter).

  5. 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

Add the missing parameter
  1. Open the GA4 event tag

    In Tags, open the GA4 Event tag for generate_lead, sign_up or login.

  2. 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.

  3. 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.

  4. Test and publish

    Use Preview mode, confirm the parameter has a value on the tag, then submit the container.

gtag event with form_id and methodjavascript
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' });
Then make it visible in reports
  1. 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).

  2. 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.

The same event, before and after

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

Fix verification
  • 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

Prevention habits
  • 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.

Does FunnelGuard catch this?

Detected

FunnelGuard checks for this today.

How: params rules.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.