WooCommerce
WooCommerce runs on WordPress, so use the BerryCookie WordPress plugin:
- Install and activate the plugin (Plugins → Add New → Upload Plugin, with the zip from the WordPress section).
- Settings → BerryCookie → paste the website key → Save.
- Use Check installation.
The plugin prints the tag first in <head> (through wp_head, before other plugins), marks it so caching and optimisation plugins do not defer it, and with the WP Consent API plugin active, WooCommerce extensions that follow that API respect the choice. If Check installation says the tag is not first, your theme probably prints scripts before wp_head(): ask the theme's author.
Need help? [email protected]
Ready to put it on your website?
Install it with one line of code, the Google Tag Manager template or the WordPress plugin.