Skip to main content

Google Consent Settings

info

Starting from version 1.35.0 the Pixel Manager supports the Google Consent Mode v2

info

Google Consent Mode allows cookieless tracking of visitor traffic and conversions. Although it is less accurate than tracking with cookies, it is much better than not tracking traffic at all (until cookie consent is given by the visitor). According to Google the Consent Mode is a GDPR compliant way to measure the traffic. Therefore, this is an ideal way to measure traffic in regions where explicit cookie consent is required by law (such as the European Union).

If tracking is configured to only be measured after explicit cookie consent approx. 80% of the data is lost. As a consequence you will lack the proper data to analyze and optimize campaigns. It also has a severe negative impact on Google Ads smart bidding. The Google Consent Mode allows cookieless tracking of more than 70% of the traffic and all conversions. This puts performance marketers and shop owners into a much better position if their goal is to maximize profitable revenue.

  1. Browse to > Consent Management.

  2. Tick the checkbox to enable the Google Consent Mode.

  3. Save the settings.

Google Consent Mode 1

Default Settings

When enabled the default settings will be set to the maximum data privacy settings for all regions. Additional code allows consent management tools (cookie banners) to override settings according to visitor choice, and cookieless conversion tracking for Google Ads.

When the Google Consent Mode is enabled in explicit consent mode the plugin outputs the following default consent settings for the restricted regions you have specified:

gtag('consent', 'default', {
'analytics_storage': 'denied',
'ad_storage': 'denied',
'ad_user_data': 'denied',
'ad_personalization': 'denied',
'functionality_storage': 'denied',
'personalization_storage': 'denied',
'security_storage': 'granted',
'wait_for_update': 500
});

gtag('set', 'ads_data_redaction', false);
gtag('set', 'url_passthrough', true);

Head over to the Google consent mode information here or here and the developer documentation here to learn more.

url_passthrough

From version 1.11.5

The url_passthrough default setting true increases the tracking accuracy. But, as long as cookies have not been accepted by a visitor, it also creates URLs with very long tracking parameters while the visitor is browsing the shop. Not every shop owner likes this. It might lead to some confusion, usually more for the shop owner than for the visitor.

When url_passthrough can break site functionality

In rare cases, url_passthrough can break things on the front end when consent is denied. The feature appends a _gl=… parameter to outbound URLs (link clicks and form action URLs). Most themes and plugins handle this without issue, but some ship custom click or form handlers that don't tolerate the modified URL. The result is broken navigation, broken form submissions (the most visible case is add-to-cart silently failing), or broken AJAX flows. This only affects visitors who have denied consent. When consent is granted, _gl is not appended, so everything works normally and the issue stays hidden.

If a site behavior changes only between granted and denied consent, url_passthrough is a likely suspect. See the troubleshooting entry Add-to-cart (or other forms) silently fails when consent is denied for the diagnostic test and fix.

Disabling url_passthrough

The following filter turns url_passthrough off:

add_filter('pmw_google_url_passthrough', '__return_false');

There is a trade-off: tracking accuracy for consent-denied visitors decreases, and cross-domain session stitching is lost. For single-domain stores the practical impact is minimal. Weigh that against the alternative of a feature on your site silently failing for consent-denied visitors. Disabling url_passthrough is a legitimate workaround when a theme or plugin breaks on the appended _gl parameter and cannot be fixed at the source.

The Pixel Manager's Google Consent Mode features (url_passthrough, ads_data_redaction, wait_for_update) are pass-throughs to Google's gtag library. Behavior caused by these features is upstream Google behavior, not a Pixel Manager bug. The Pixel Manager is the visible surface, however, so issues will typically be reported here first.

Heuristic: if a site behavior changes only between granted and denied consent, the cause is almost always one of these consent-mode parameters.

Disable knobs:

  • url_passthrough: disable with the pmw_google_url_passthrough filter (see above). Most common cause of denied-consent-only breakage.

  • ads_data_redaction: adjust with the pmw_google_ads_data_redaction filter. Default is false. Set to true only if you understand the impact on conversion measurement.

    add_filter('pmw_google_ads_data_redaction', '__return_true');
  • wait_for_update: fixed at 500ms in the consent default block. This is the timeout gtag waits for a CMP to call gtag('consent', 'update', …) before proceeding with the default (denied) state. If a CMP loads slowly enough that consent updates arrive after the wait, beacons may be sent under the default state. Address this by ensuring the CMP loads early in the page, not by tuning this value.

When opening a support ticket about a behavior that changes between granted and denied consent, please indicate whether you have already tested with url_passthrough disabled. That single test resolves most reports.

Google TCF Support

info

This is a pro feature. Get the pro version here

info

Google's TCF specification. Read more and here

If you are showing ads on your website, you need to comply with the IAB Europe Transparency & Consent Framework. The framework is designed to help all parties in the digital advertising chain ensure that they comply with the EU’s General Data Protection Regulation (GDPR) and ePrivacy Directive when processing personal data or accessing and/or storing information on a user’s device, such as cookies, advertising identifiers, device identifiers and other tracking technologies.

The Pixel Manager allows you to configure the Google Consent Mode to be compatible with the IAB Europe Transparency & Consent Framework by enabling the Google TCF Support.

  1. Open the Pixel Manager Settings
  2. Open > Consent Management
  3. Enable the Google TCF Support

Google TCF Support

Make more money from your ads with high-precision tracking