Pick the cookie banner install guide for your website platform
Every TermsFeed Privacy Consent cookie banner starts from the same 3-line snippet in the head of every page, and each guide shows where that head sits on one platform. A guide names the field or file for the snippet and the consent tool the platform ships. It then covers the tracking the platform adds by itself and the check that proves the installation works.
Copy the Privacy Consent snippet before you open your platform
Open your consent banner in the TermsFeed app and copy the snippet from "Install link" on its Overview page. The Install page shows the same snippet, with a tile each for Shopify, WordPress, Wix, Squarespace, and Webflow. Create a consent banner first with Create a Consent Banner.
Your snippet looks like this, with your own token in place of YOUR_TOKEN.
<!-- Privacy Consent by TermsFeed (https://www.termsfeed.com) -->
<script type="text/javascript" src="https://cdn.termsfeedtag.com/plugins/pc/v1/YOUR_TOKEN/plugin.js" async></script>
<!-- End Privacy Consent by TermsFeed (https://www.termsfeed.com) -->
The rules for installing Privacy Consent on any platform
Put the snippet in a site-wide head field or template, load it from the address the app gives, and remove each vendor snippet you move into Privacy Consent. A field on one page loads the script on that page only. A copy you serve yourself does not get updates. A vendor snippet left in the page runs before the visitor answers.
Google tags you add from their templates need no Consent Mode code in the head. Read why the script stays out of Google Tag Manager, and the order for your own Consent Mode code, in Install the Script.
Where the Privacy Consent snippet goes on each platform
Each platform has one site-wide place for head code, and its guide gives the menu path and any plan the platform asks for.
| Platform | Where the head code goes |
|---|---|
| Hand-Coded Site | Before the closing head tag of every page |
| Shopify | layout/theme.liquid in the theme code editor |
| WordPress | A header snippet plugin, header.php of a child theme, or a wp_head action |
| Wix | Custom Code in the site settings, placed in the head of all pages |
| Squarespace | The Header field of Code Injection |
| Webflow | Head code on the Custom code tab of the site settings |
| Framer | A custom code script in Project Settings, at the start or end of the head |
| Drupal | The theme template, a library, or a header script module |
| Ghost | Site header in Code Injection |
| HubSpot CMS | Site header HTML in the website settings |
| Ecommerce Platforms | The head settings or theme template of the store |
| Next.js | The root layout, or the custom document with the Pages Router |
| SPA Frameworks | The HTML shell of React, Vue, Angular, or SvelteKit |
| Static Site | The base layout of Hugo, Jekyll, Eleventy, or Astro |
| Netlify and Vercel | The layout of the site you deploy |
| Cloudflare Pages | The layout of the site you deploy |
| Unsupported Environments | Nowhere: these environments give the script no page to run on |
Install guides for site builders
Site builders keep the page code behind a settings field, and each one adds tracking or leaves room for a consent tool of its own.
| Guide | What it adds to the placement |
|---|---|
| Install TermsFeed Privacy Consent on Wix | The Wix consent banner, Marketing Integrations, and the connected domain |
| Install TermsFeed Privacy Consent on Squarespace | The Squarespace consent banner, Squarespace Analytics, and the built-in domain |
| Install TermsFeed Privacy Consent on Webflow | Consent apps, Webflow integrations, Embed elements, and the webflow.io address |
| Install TermsFeed Privacy Consent on Framer | The Framer "Cookie Banner" component, integrations, and Embed components |
Install guides for content management systems
Plugins, modules, and themes load the tracking on these systems, so each guide moves that tracking into vendors.
| Guide | What it adds to the placement |
|---|---|
| Install TermsFeed Privacy Consent on WordPress | Consent plugins, Site Kit, the WordPress Consent API, and caching plugins |
| Install TermsFeed Privacy Consent on Drupal | Consent modules, module tracking, and the Drupal cache |
| Install TermsFeed Privacy Consent on Ghost | Built-in analytics, members, newsletter signup, and embeds in posts |
| Install TermsFeed Privacy Consent on HubSpot CMS | The HubSpot consent banner and the HubSpot tracking code |
Install guides for online stores
Online stores add payment scripts and conversion tracking, and their checkout pages follow rules of their own.
| Guide | What it adds to the placement |
|---|---|
| Install TermsFeed Privacy Consent on Shopify | The Shopify consent banner, the Customer Privacy API, checkout, and Hydrogen |
| Install TermsFeed Privacy Consent on Ecommerce Platforms | Built-in consent features, payment scripts, and order confirmation pages |
Install guides for JavaScript frameworks
The snippet stays in the HTML shell of a JavaScript framework, out of the bundle and the components.
| Guide | What it adds to the placement |
|---|---|
| Install TermsFeed Privacy Consent on Next.js | Both routers, the Consent Mode block, and preview deployments |
| Install TermsFeed Privacy Consent on React, Vue, or Angular | Opening the Preferences Center from a component, and late-mounted embeds |
Install guides for hosting platforms
A hosting platform gives every deployment its own hostname, which changes what you add to the consent banner.
| Guide | What it adds to the placement |
|---|---|
| Install TermsFeed Privacy Consent on Netlify and Vercel | Preview hostnames, an environment variable for the address, and security headers |
| Install TermsFeed Privacy Consent on Cloudflare Pages | Preview hostnames, an environment variable for the address, and a _headers file |
Install guides for static and hand-coded sites
A site you build from files takes the snippet in a base layout or in each page, which every other guide follows in its own way.
| Guide | What it adds to the placement |
|---|---|
| Install TermsFeed Privacy Consent on a Static Site | Base layouts and preview hostnames |
| Install TermsFeed Privacy Consent on a Hand-Coded Site | The order with Google Consent Mode v2 and the Content Security Policy entries |
Where Privacy Consent does not run
Some environments offer the script no page to run on, such as a checkout the platform locks or a native app.
| Guide | What it adds to the placement |
|---|---|
| Unsupported Environments | Each environment and the alternative for it |
What to do after installing Privacy Consent
An installed snippet shows the consent banner, but it holds back only the tracking you move into vendors. Run the browser checks first, then add each tracking tool as a vendor and remove its snippet from the page. Check the script with Verify Your Installation, add your tools with Add From a Template, and review the whole setup with the Go-Live Checklist.