Google Analytics 4

Documentation pages

FormSignal documentation

This documentation applies to FormSignal 1.0.0.

What FormSignal sends to GA4

Only when the Google Analytics 4 destination is enabled with a measurement ID (G-…).

Action Event name (default) Parameters
Accepted form generate_lead lead_type=form, lead_page, lead_placement, form_id, form_name
Contact click contact_click contact_method (phone, email, whatsapp), lead_page, lead_placement
Contact click, with "Use the lead event for contact clicks" on generate_lead lead_type (phone, email, whatsapp), contact_method, lead_page, lead_placement

Contact clicks go to GA4 by default when GA4 is enabled. You can turn this off with Also send contact clicks on the Destinations screen.

Direct path. FormSignal calls gtag('event', <name>, {…, send_to: '<your measurement ID>'}). Google documents that an event with send_to is routed to that target only, and that an event without send_to goes to every target configured on the page. So other GA4 properties on the same page do not get this event.

Tag Manager path. FormSignal pushes one event to the dataLayer. The imported GA4 event tag sends it. See Google Tag Manager.

The two forms of the Google tag snippet

Google’s installation page gives, since 6 November 2026, a snippet that loads the tag from gtm.js and has no gtag('config') line:

<script async src="https://www.googletagmanager.com/gtm.js?id=TAG_ID"></script>
<script>
  window.dataLayer = window.dataLayer || [];
  function gtag(){dataLayer.push(arguments);}
  gtag('js', new Date());
</script>

The same page says that gtag('config') is deprecated, that settings and destinations are set in the Google tag screen, and that existing snippets with gtag('config') (loaded from gtag/js) continue to work. Source: https://developers.google.com/tag-platform/gtagjs/install and https://developers.google.com/tag-platform/gtagjs/reference#config .

FormSignal works with both forms. Tested with FormSignal 0.9.2 on a public test site with a real GA4 property on 17 November 2026, in Chromium and WebKit.

When the direct path passes the event

The direct path passes the event when gtag() exists and the page shows your measurement ID in one of these ways:

  • a gtag('config', '<your ID>') command (older snippet);
  • a gtag/js or gtm.js script with your ID in its address. Google documents that the ID in the script address loads the Google tag;
  • the loaded Google tag lists your ID in window.google_tag_manager. This is observed behaviour, not documented by Google. It does not count once FormSignal has itself passed an unconfirmed event to that ID on the page: the Google tag then adds the key because of FormSignal’s own event (observed, not documented, 17 November 2026);
  • the loaded Google tag lists your ID in its own registry of loaded IDs, window.google_tag_data.tidr.container. Also observed, not documented, with the same exception. This is how FormSignal confirms a GA4 ID behind a GT- tag, for example one added by Site Kit: see Google tags with a GT- ID, and Site Kit.

If no Google tag has loaded yet, the event waits in a queue for at most 30 minutes. See Consent.

If a Google tag has loaded but your ID is not shown on the page, FormSignal waits until 5 seconds after the page loaded, then passes the event with send_to set to your ID. The wait counts from the page load, not from the action: an action more than 5 seconds after the page loaded is passed at once. One exception: a form whose submission redirects at once is kept and passed on the next page of the same site, as soon as the Google tag is loaded there, without a second wait. This can happen when your GA4 property is a destination of a tag with another ID, for example a GT- tag, and the tag does not list your ID in its registry; Google documents that one tag can have several IDs and destinations. FormSignal reports this as "passed, ID not confirmed", not as "passed", because FormSignal passed the event with your ID and cannot see what the Google tag does with it. What the Google tag does with a send_to ID that is not one of its destinations is not documented by Google. Check the GA4 Realtime report, and compare the ID in Destinations with the one in your Google account.

What we saw with an ID that is not on the page (observed, not documented)

On 17 November 2026, on a public test site, in Chromium and WebKit, with consent given. The page had only the Google tag of one GA4 web stream (gtm.js?id=G-…); the FormSignal destination was a second web stream of the same property, whose ID was nowhere on the page.

  • When FormSignal passed the event, the Google tag loaded gtag/destination?id=<second ID> (150–250 ms), added that ID to window.google_tag_manager, and sent the event to it with all parameters, once.
  • It also sent a page_view to the second ID, and from then on the automatic events of that page (scroll, form_start, user_engagement) went to both IDs.
  • gtag('get', '<second ID>', 'client_id', callback) did the same: it answered (in 158–276 ms, against 1–3 ms for the ID on the page), loaded the ID and sent a page_view to it, with consent given and with consent refused (then without cookies, gcs=G100). So FormSignal does not use get to check an ID: the check itself would send data.
  • A form that redirects at once: passed on the redirecting page, the event went out before the navigation in Chromium but not in WebKit (the tag was still loading the ID). That is why FormSignal keeps such an event for the next page.

Whether GA4 then shows these events was not checked here.

Google tags with a GT- ID, and Site Kit

A Google tag can have an ID that starts with GT- instead of G-. The GA4 web stream is then a destination of that tag, set up in Google, and its measurement ID (G-…) is not in the page. Site Kit by Google adds this kind of tag.

What FormSignal sees on such a page

  • The home page check finds a Google tag with a GT- ID and no GA4 ID. The guided setup, Destinations and Diagnostics say so, and say that FormSignal cannot read the measurement ID from the page.
  • Copy the measurement ID from Google Analytics: Admin → Data collection and modification → Data streams → Web → your stream. It is in the first row of the stream details and starts with G-. Source: "Measurement ID", https://support.google.com/analytics/answer/12270356 .
  • In the visitor’s browser, the page has gtag/js?id=GT-… and a config command for the GT- ID only. window.google_tag_manager has only the GT- key.

How FormSignal confirms the ID

The loaded Google tag keeps a registry of the IDs it has loaded itself, window.google_tag_data.tidr.container, one key per ID. If your ID is there, FormSignal passes the event at once and reports "passed". Reading the registry sends nothing. If the registry has another shape, or reading it fails, FormSignal ignores it and the other rules apply. If your ID is not in the registry, the event is passed 5 seconds after page load, as "passed, ID not confirmed".

The registry is not counted for an ID to which FormSignal has already passed an unconfirmed event on the page, for the same reason as google_tag_manager: the tag adds the ID after loading it on demand.

What is observed and what is documented

  • Documented by Google: one tag can have several IDs and destinations, set up in the Google tag screen (https://developers.google.com/tag-platform/gtagjs/reference#config). Where to find the measurement ID (page above).
  • Not documented by Google: the registry window.google_tag_data.tidr, its keys and their meaning. FormSignal relies on what was seen:
    • 17 November 2026, on a live site with Site Kit and a connected Google account, read only: a gtag/js script with a GT- ID; in dataLayer, a config for that GT- ID only; the GA4 ID nowhere in the page. window.google_tag_manager had only the GT- key. tidr had the keys container, destination, destinationArray, canonical, pending, injectedFirstPartyContainers. tidr.container had the GT- ID and the GA4 ID, both with state 2; tidr.destination was empty. gtag('get', '<GA4 ID>', 'client_id', …) answered in 4 ms, so the ID was already loaded by the tag. The Site Kit version was not recorded. Nothing was sent from FormSignal on that site.
    • 17 November 2026, on the public test site, Chromium and WebKit (the setup described above, one stream’s ID on the page, the other one FormSignal’s destination): the ID on the page was in tidr.container with state 2 before the page finished loading. The other ID was absent until FormSignal passed it an event, and absent at the moment of passing. It appeared, with state 2 and with no intermediate state, 180–240 ms later, when the tag had loaded gtag/destination for it. tidr.destination stayed empty. The registry also listed two internal GTM- containers that the tag loaded by itself.
  • Not tested: Site Kit with a connected account on the test site; what GA4 then shows.

Parameter values

  • lead_page ("Page"): the page label you set in the FormSignal page label box of a page, or <post type>-<ID>-<slug>, for example page-42-contact. On pages that are not a single post: front-page, blog, search, 404, <taxonomy>-<term ID>-<slug> for category, tag and taxonomy archives, archive for other archives. Cut to 100 characters, the GA4 limit for parameter values.
  • lead_placement ("Placement"): header, footer, popup or content. For forms it comes from the type of the Elementor document the form is placed in. For clicks it comes from the Theme Builder header, footer or popup element around the link. Anything else is content.
  • form_id: the Elementor widget ID of the form.
  • form_name: the Form label from the widget’s FormSignal section, or the Form Name.

Google documents generate_lead as an event that "measures when a lead has been generated (for example, through a form)". FormSignal does not send its parameters currency, value and lead_source. Google marks currency and value as conditionally required: currency is required if you set value, and Google recommends setting value when the event is marked as a key event. Without them the event is still sent. Step 1 shows where GA4 lets you choose a default value when you create the key event.

Step 1. Mark generate_lead as a key event

  1. In GA4, go to Admin → Data display → Events.
  2. If generate_lead is listed under Recent events, click the star icon next to it.
  3. If it is not listed yet, click Create event, enter generate_lead, turn on Mark as key event, choose the default value and counting method, and click Create.

Google’s notes:

  • Marking an event as a key event affects reports from that moment. It does not change past data.
  • It can take up to 24 hours to show in standard reports. Realtime updates within minutes.
  • Roles: Google’s page gives two answers. Under "Before you begin" it asks for Marketer or above to mark an event as a key event. In the steps it asks for Editor or above for the star icon, and Marketer or above to create a new event as a key event. If you do not see the star or the button, your role on the property is too low.
  • A standard property can have up to 30 key events.

Do not mark contact_click as a key event. A click is not a confirmed lead. If you turned on "Use the lead event for contact clicks", clicks arrive as generate_lead too. Use lead_type to tell them apart (form, phone, email, whatsapp).

If you changed the form event name on the Destinations screen, mark that name instead.

Step 2. Register the custom dimensions

Create one event-scoped custom dimension for each of these six parameters:

lead_type
lead_page
lead_placement
form_id
form_name
contact_method

The guided setup has a Copy the parameter names button with this list. If the browser does not allow copying, the text is selected and a message says so: copy it with Ctrl+C or Cmd+C.

For each one:

  1. In GA4, go to Admin → Data display → Custom definitions.
  2. On the Custom dimensions tab, click Create custom dimension.
  3. Dimension name: any name. The parameter name works. Hyphens are not allowed in the name.
  4. Scope: Event. You cannot change this after saving.
  5. Event parameter: the parameter name exactly, for example lead_page. You cannot change this after saving.
  6. Click Save.

Google’s notes:

  • You need the Editor role or above on the property.
  • The dimension can be used in reports 24 to 48 hours after the data was sent and the dimension was created.
  • A standard property can have 50 event-scoped custom dimensions.

Why GA4 shows fewer leads than the Leads screen

The Leads screen counts successful form submissions on your site, inside the request Elementor Pro already handles. No browser step is involved. GA4 only gets what the visitor’s browser passes to the Google tag, and what the Google tag then sends. Each step below can remove a lead from GA4 but not from the Leads screen.

In the visitor’s browser, before FormSignal passes the event:

  • Consent. If a consent signal said "not granted" for statistics when the form was sent, and the Google tag cannot see that signal (for example it came from the WP Consent API), FormSignal does not pass the event to GA4, then or later. See Consent. Tested on a public test site with Complianz 7.5.7, both with the tag blocked until consent and with Google consent mode: with consent refused or withdrawn, nothing was passed and the form was still counted; with consent given, the browser sent exactly one generate_lead request to GA4 (what GA4 then shows was not checked). See Consent.
  • No Google tag on the page. The tag is blocked by a browser extension or setting, loaded only after consent, or not on that page. FormSignal waits for at most 30 minutes on that tab, then drops the event.
  • The visitor left. The tab was closed, the visitor went to another domain, or the connection was lost before the tag loaded.
  • No jQuery on the page. FormSignal reads the successful submission from Elementor Pro’s jQuery submit_success event. It does not add jQuery. Without jQuery on the page, the form is still counted on the server but not passed to any destination.
  • Old cached page. A page cached before you enabled GA4 does not carry the new settings.

The Delivery, last 30 days card in Diagnostics shows how many actions were passed to the tracking script, how many were not and why, and how many have no report. See Troubleshooting.

After FormSignal passes the event to the Google tag:

  • Google consent mode. Google documents that in basic consent mode, Google tags do not load until the visitor interacts with the consent banner, and no data is sent before consent. In advanced consent mode, while consent is denied, Google tags send measurements without cookies, and Google products use them to model key events.
  • Blocked requests. A browser extension or network filter can block the request the Google tag makes.
  • FormSignal cannot see this step. "Passed to the tracking script" is the last thing it knows.

In GA4 reports:

  • Key event marking applies from the moment you mark the event, not to earlier data.
  • Standard reports can take up to 24 hours. New custom dimensions take 24 to 48 hours.

What the Leads screen leaves out, and GA4 never gets either:

  • Submissions by logged-in users who can edit posts. In test mode, administrators’ submissions are counted apart, as tests, and are still passed to the enabled destinations. See Troubleshooting.
  • Submissions where a submit action failed. The visitor saw an error. They are listed in Diagnostics.

To compare numbers, compare the Leads screen with Elementor Pro’s Submissions for the same days, leaving out submissions with a failed action. Compare GA4 with the "passed to the tracking script" number under Accepted forms on the Leads screen, not with the total.

FormSignal uses the site’s time zone (Settings → General) for its daily totals.

Checking that GA4 gets the event

Use Diagnostics → Send test event. It sends the event formsignal_test, which is not marked as a key event unless you mark it. Then look for it in GA4:

  • Admin → Data display → DebugView, with debug mode on. Google documents that you turn on debug mode with Google Tag Assistant or preview mode, or with debug_mode in the tag configuration. Google also notes that events may not appear in debug mode when consent mode is used and the visitor has not given consent for analytics cookies.
  • The Realtime report. Google notes that Realtime updates within a few minutes.

See Troubleshooting.