Skip to content

Latest commit

 

History

History
9 lines (5 loc) · 1.22 KB

gtag-consent-mode.md

File metadata and controls

9 lines (5 loc) · 1.22 KB

Googla Analytics (gtag) Consent Mode

Unless you're running the Google Analytics for WooCommerce extension for a more sophisticated configuration, Google Listings and Ads will add Google's gtag to help you track some customer behavior.

To respect your customers' privacy, we set up the default state of consent mode. We set it to deny all the parameters for visitors from the EEA region. You can add an extension or CMP that delivers a banner or any other UI to let visitors update their consent in runtime.

You can also customize your own default state configuration using the woocommerce_gla_gtag_consent filter providing any snippet that uses Google's gtag('consent', 'default', {…}) API .

After the page loads, the consent for particular parameters can be updated by other plugins or custom code implementing UI for customer-facing configuration using Google's consent API (gtag('consent', 'update', {…})).