Unless you're running the Google Analytics for WooCommerce extension for a more sophisticated configuration, Google for WooCommerce 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 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', {…})
).
The extension does not provide any UI, like a cookie banner, to let your visitors grant consent for tracking. However, it's integrated with WP Consent API, so you can pick another extension that provides a banner that meets your needs.
Each of those extensions may require additional setup or registration. Usually, the basic default setup works out of the box, but there may be some integration caveats.