Consent

Documentation pages

FormSignal documentation

This documentation applies to FormSignal 1.0.0.

FormSignal does not decide whether your site needs consent, and it does not exempt itself from consent. That depends on your setup and your local law. This page describes what FormSignal does with the consent signals it can read.

Consent rules apply only to passing events to destinations. The count of successful form submissions and contact clicks on your site does not use cookies and does not depend on consent. See Privacy.

FormSignal reads consent in the visitor’s browser, per destination, using two categories:

Destination Category
Google Analytics 4 statistics
Google Ads conversion marketing
Meta Pixel marketing

It checks, in this order:

  1. WP Consent API. Used when the WP Consent API is active and a consent type is set, by your consent plugin or by the API’s fallback. FormSignal calls wp_has_consent('statistics') or wp_has_consent('marketing'). With no consent type set, the API returns true for every category; FormSignal does not treat that as a signal and goes on to step 2.
  2. Google consent mode, from the gtag('consent', …) commands in the dataLayer:
    • an update command is the visitor’s choice and wins over any default; the latest update counts;
    • a default command without region is the value for every visitor;
    • a default command with region applies only to visitors in that region. FormSignal cannot know the visitor’s region. For a consent type with such a command and no update, the state is unknown (per region), even if a default for everyone exists, because Google applies the regional value in that region (Google, region-specific behavior);
    • statistics = analytics_storage;
    • marketing, in this order: ad_storage or ad_user_data denied: refused; otherwise, either of them with only a regional default: unknown (per region); otherwise ad_storage granted: granted; otherwise no signal. So ad_user_data alone counts too: ad_user_data: 'denied' without ad_storage is refused, and a regional default for ad_user_data alone is unknown (Meta gets nothing). ad_user_data: 'granted' alone is not a grant: it is no signal.
  3. Otherwise there is no signal.

Not read: the Meta Pixel’s own consent state (fbq('consent', …)), and consent set only inside Google Tag Manager templates (the consent APIs of custom templates), which does not appear in the dataLayer.

When the WP Consent API fires wp_listen_for_consent_change or wp_consent_type_defined, FormSignal checks waiting actions again.

The rule

One rule, in four cases. The same words are in the readme, on the Destinations screen and in Diagnostics.

  1. Consent refused (WP Consent API, or a Google consent mode command FormSignal can read): nothing is sent for that action, then or later. The named exception: for GA4 and Google Ads, when the Google tag is on the page and the signal comes from Google consent mode, the event is passed to the Google tag, and the tag applies consent mode.
  2. Consent given: the event is sent. If the tracking script is not on the page yet, the action waits up to 30 minutes in this browser tab.
  3. No consent signal, tracking script on the page at the time of the action: the event is sent. Having the script on the page is the site owner’s decision.
  4. No consent signal, no tracking script at the time of the action: the event goes only to a script that appears within 5 seconds of the action. Once 5 seconds have passed, the first check drops the action, before it looks at anything else, with the result "no consent signal and no tracking script at the time of the action". It is never sent, even if the script or a consent signal is there by then: after a tab that was in the background, on the next page of the tab, or when the script appeared just after the 5 seconds. FormSignal checks every half second, and once more 200 ms before the 5 seconds end, because a timer can fire a little late on a busy page. A script that appears in those last 200 ms can be missed.

What this means for a consent banner that adds the tracking script only after consent, and gives no signal FormSignal can read: an action from before consent is not sent later, unless the script loads within 5 seconds of the action. To close that window, use a consent tool that sets a WP Consent API consent type or a Google consent mode default.

Google consent mode set per region (case 2 of the reader above): GA4 and Google Ads events are passed to the Google tag, which applies the regional values itself. Meta, which does not apply Google consent mode, gets nothing: result "Google consent mode is set per region, which FormSignal cannot read". Diagnostics then recommends the WP Consent API.

"Tracking script on the page" means: direct GA4 or Google Ads, gtag() exists and a Google tag has loaded (the ID confirmed on the page, or a Google tag with the ID not confirmed: see Troubleshooting); for Google Ads, the tag of the conversion the form uses (its own conversion, when it has one). Direct Meta: fbq() exists. Tag Manager: a container is loaded, or its snippet pushed gtm.js.

Results

Case Result in the delivery report
Refused at the time of the action Not passed: consent not given at the time of the action
Refused while the action waited Not passed: consent withdrawn while waiting
Google consent mode per region, Meta Not passed: Google consent mode is set per region
No signal, no script within 5 seconds Not passed: no consent signal and no tracking script at the time of the action
Consent given, no script within 30 minutes Not passed: tracking script not on the page within 30 minutes
The destination ID or way of sending changed while the action waited Not passed: the destination changed after the action

Each result is final for that action and destination. Other destinations of the same action are not affected.

When FormSignal passes an event to a tracking script, the script applies its own consent rules.

  • Google tag (GA4, Google Ads). Google documents four consent types: ad_storage, ad_user_data, ad_personalization and analytics_storage. In basic consent mode, Google tags do not load until the visitor interacts with the consent banner. In advanced consent mode, Google tags load with consent denied by default and, while consent is denied, send measurements without cookies.
  • Google Tag Manager. The tags in your container apply their consent settings. The imported FormSignal tags require additional consent. See Google Tag Manager.
  • Meta Pixel. Meta documents fbq('consent', 'revoke') and fbq('consent', 'grant'). Meta’s page does not say whether events fired while revoked are sent later.

The queue

  • An action waits only in cases 2 and 4 above: up to 30 minutes with consent given, up to 5 seconds with no signal.
  • It waits on the same page, and on the next pages of the same browser tab on the same site, in sessionStorage under the key formsignal_queue_v2.
  • It keeps the destination ID and the way of sending it was created with. If they changed before it is sent, it is dropped ("destination changed").
  • FormSignal checks waiting actions every half second while the page is open, and on each new page of the tab.
  • If the browser refuses sessionStorage, FormSignal works on the current page only.
  • Once sending the result of an action to your site was tried (not necessarily arrived or saved), only its ID, time and states stay in sessionStorage, for at most 24 hours, so the same action is not sent twice. When a page of the site loads, entries older than 24 hours are removed and the storage is written again, even if nothing else changed.

Tested on a public test site

Repeated with FormSignal 0.9.9 on 18 November 2026 (17:40–17:50 UTC), installed from the release archive: the same two setups, four scenarios and two browsers, and the same results in all 16 runs. Only a real GA4 property received events; nothing went to Meta.

Repeated with FormSignal 0.9.10 on 18 November 2026 (21:01–21:10 UTC), installed from the release archive: the same two setups, four scenarios and two browsers, the same results in all 16 runs. Only a real GA4 property received events; nothing went to Meta.

Repeated with FormSignal 0.9.7 on 18 November 2026 (09:41–09:50 UTC): the same two setups, four scenarios and two browsers as below, and the same results in all 16 runs. Complianz sets a WP Consent API consent type, so these are cases 1 and 2 of the rule; the "no signal" cases are covered by the automated tests. Only a real GA4 property received events; nothing went to Meta.

Tested on 17 November 2026 with FormSignal 0.9.3, on a public test site with a real GA4 property, Complianz 7.5.7 (free) and WP Consent API 2.1.0. Complianz was set for the EU (opt-in), with its cookie and script blocker on. Each case ran in Chromium (Pixel 7 profile) and WebKit (iPhone 13 profile), with an anonymous visitor sending the Elementor Pro form on the home page.

Two ways of putting the Google tag under consent were tested:

  1. Tag blocked until consent. Complianz adds the Google tag (gtag.js) itself and keeps it blocked until the visitor accepts statistics. The home page check showed "Present, but blocked until consent".
  2. Google consent mode. The Google tag loads from the start. Before it, the site sets the consent defaults to "denied", as shown in Google’s documentation (https://developers.google.com/tag-platform/security/guides/consent). It then sends gtag('consent', 'update', …) when Complianz reports the visitor’s choice. In the free version 7.5.7, Complianz’s own consent mode setting is marked premium and cannot be turned on. So the update was linked to the JavaScript event Complianz fires when categories change (cmplz_fire_categories). The home page check showed the Google tag as active.
Visitor Tag blocked until consent Google consent mode
Refused in the banner, then sent the form Not passed ("consent not granted at the time of the action"). Form counted on the server. No request to GA4. Not passed, same result. Form counted. The Google tag sent its own measurements with consent denied (gcs=G100).
Accepted, then sent the form Passed once. One generate_lead request to GA4 with all parameters. Passed once. One generate_lead request, with consent granted (gcs=G111).
Sent the form, then accepted Not passed, then or later. Not passed, then or later.
Accepted, withdrew consent, then sent the form Not passed. Complianz reloads the page when consent is withdrawn. Not passed.

In both setups FormSignal read consent from the WP Consent API, which Complianz sets. The WP Consent API is read before Google consent mode commands.

Not tested on the public site:

  • Google consent mode without the WP Consent API. In that case FormSignal passes GA4 and Ads events to the Google tag even with consent denied, and the tag applies consent mode itself (table above). This was tested with simulated libraries only.
  • Google Ads.
  • Consent tools other than Complianz.

Meta Pixel (FormSignal 0.9.4, 17 November 2026)

Same site, a real Meta Pixel. The Pixel base code from Meta’s documentation (https://developers.facebook.com/docs/meta-pixel/get-started) was printed unchanged, but marked type="text/plain" data-category="marketing", the way Complianz prints its own blocked scripts; Complianz ran it only after the visitor accepted marketing. Chromium and WebKit, one run each.

Visitor Direct path Tag Manager path ("FS - Meta Pixel trackSingle" tag from the import file)
Accepted, then sent the form One request to Meta: Lead, the Pixel ID, eventID equal to the action ID, lead_page, lead_placement (and lead_type). Reported "passed". One push, then one Lead request with eventID equal to the action ID, lead_page and lead_placement. Reported "passed".
Accepted, clicked the phone link (clicks on for Meta) One Contact request with eventID, contact_method, lead_page, lead_placement. Not run.
Refused, then sent the form No Lead. The Pixel never loaded, so nothing at all went to Meta. Reported "consent not granted at the time of the action". Form counted on the server. Not run.

Meta’s Pixel also sent, by itself, a SubscribedButtonClick request when the visitor pressed the form’s Send button (its automatic events, with the button’s text and classes). FormSignal does not cause or control it.

Whether the events then appear in Meta Events Manager was not checked here.

With Complianz’s cookie and script blocker off, Complianz printed the gtag.js script unblocked. The Google tag then sent page_view before any consent. FormSignal still passed nothing while consent was not granted. Check that your consent tool really blocks the tag: the home page check in Diagnostics → Environment should say "Present, but blocked until consent".

Contact clicks

The same rules apply to contact clicks. A click never waits for anything before the browser follows the link. FormSignal counts the click on your server with navigator.sendBeacon (or fetch with keepalive), which does not delay navigation. Delivery reports for forms, and for clicks passed later, wait for your site’s answer while the page is open (see Troubleshooting); the click count does not.

The Diagnostics test event

The test event is sent only from an administrator’s browser, on a page opened from Diagnostics. It calls the libraries directly and does not apply FormSignal’s consent rules. The libraries still apply their own. If your browser has not granted consent, the test may show "Not seen" in the second column.

The WP Consent API is a separate plugin. Its page states that it does not handle consent itself and needs a cookie banner plugin. It defines the categories functional, statistics-anonymous, statistics, preferences and marketing. FormSignal uses statistics and marketing.

Diagnostics → Environment shows whether the WP Consent API is active.