Cookie banner install guides by platform
Every platform below runs the same CookieConsentHQ banner, loaded before your analytics and ad tags. What changes from one platform to the next is where the script goes, what the platform's own banner or tracking does, and which pages the platform keeps to itself, such as the Shopify and Squarespace checkouts.
Which guide do you need?
| Platform | How it installs | Guide |
|---|---|---|
| WordPress | Plugin with the WP Consent API | WordPress guide |
| WooCommerce | WordPress plugin with cart cookies kept | WooCommerce guide |
| Google Tag Manager | Consent Mode template | Google Tag Manager guide |
| Shopify | Shopify App Store app | Shopify guide |
| Webflow | One script tag | Webflow guide |
| Wix | One script tag | Wix guide |
| Squarespace | Header code injection | Squarespace guide |
| Framer | Custom code at start of head | Framer guide |
| Next.js | Synchronous head tag in layout | Next.js guide |
| Any HTML site | One script tag | Any HTML site guide |
Not on the list? Any site that lets you edit the page head can use the HTML install. The install guides page has the full setup steps in one place.
WordPress
The CookieConsentHQ WordPress cookie consent plugin loads your banner early in the page head and connects with the WP Consent API. Install it from the WordPress.org plugin directory, enter your site key or script URL, and save the settings.
Install CookieConsentHQ on WordPressWooCommerce
Install the CookieConsentHQ plugin from WordPress.org, enter your site key and publish your banner. It loads first in wp_head, passes visitor choices through the WP Consent API so WooCommerce and compatible extensions read them, and leaves essential cart and checkout cookies working.
Add CookieConsentHQ to WooCommerceGoogle Tag Manager
The CookieConsentHQ GTM Consent Mode template sets Google consent defaults using setDefaultConsentState and then loads the banner. Import its template file, create a tag and use Consent Initialization - All Pages.
Install CookieConsentHQ with Google Tag ManagerShopify
Install the CookieConsentHQ app from the Shopify App Store, click Set up the banner, then switch on the Cookie banner app embed and save. You edit no theme code, and each visitor's choice is passed to Shopify's Customer Privacy API.
Add a cookie banner to your Shopify storeWebflow
Install the CookieConsentHQ Webflow cookie banner through Site settings, Custom code, Head code. Paste the script at the top, save, publish the site and verify its position and blocking behavior.
Add CookieConsentHQ to your Webflow siteWix
Install the CookieConsentHQ Wix cookie banner through Settings, Custom Code, Add Custom Code. Place the snippet in Head on All pages and apply. Wix's own marketing integrations stay outside its control.
Install CookieConsentHQ on WixSquarespace
Paste the CookieConsentHQ script into the Header field of Squarespace's Code Injection panel and save. Code injection is on the Core, Plus and Advanced plans and some legacy plans; checkout pages don't run custom code.
Add CookieConsentHQ to your Squarespace siteFramer
Paste your CookieConsentHQ script into Framer under Site Settings, General, Custom Code, in the Start of head tag box, then publish. Placing it at the start of head lets the banner set Consent Mode v2 defaults and hold known trackers before analytics or ad scripts run.
Add CookieConsentHQ to FramerNext.js
Put the CookieConsentHQ script tag directly inside the root layout head in Next.js App Router (or _document.tsx in Pages Router), before any analytics or tag manager scripts. Avoid deferring it with afterInteractive so trackers and Consent Mode v2 defaults are set before tags run.
Add CookieConsentHQ to Next.jsAny HTML site
Paste the CookieConsentHQ script as the first tag after the opening head on every page, or once in the shared template every page uses, then publish. It must load without async or defer, before analytics and ad tags.
Add CookieConsentHQ to any HTML websiteHow do I check the banner works after installing?
Publish the change, then run the free cookie checker on a public page. It loads the page in a browser before anyone clicks Accept and lists the cookies already set, tracker tags hardcoded into the theme, and the Google Consent Mode v2 defaults it finds.
Platform features you switch on in the platform's own settings, such as Wix's built-in marketing integrations, can run outside the banner's control. The Wix guide lists the ones that apply there, and the Webflow and Google Tag Manager guides explain how to check what your own code loads.