Platform guides
Cookie banners on HubSpot, Ghost, Google Sites and other site builders
Most site builders give you either a built-in cookie notice or a field for code in the page head, and some give you both. Here's where that field lives on popular builders, what the built-in options cover and how to handle scripts the platform adds itself.
- Plain English
- Written for website owners
- Free to read
On this page
On most site builders you add a cookie banner by pasting the consent tool's script into a site-wide "head code" or "code injection" field, then republishing. HubSpot and Google Sites also have built-in cookie notices, and on Google Sites the built-in notice is effectively your only option. Whichever route you take, check one thing: scripts the platform adds by itself often can't be held back by a third-party banner, so you need to control them through the platform's own settings.
This guide covers HubSpot, Ghost, Google Sites and Framer, then gives a method that works for any builder. Menu names change often, so if a label doesn't match what you see, search the platform's settings or help center for "head", "header HTML" or "code injection".
Three questions to ask about any builder
Before you install anything, work out what the platform lets you control:
- Does it have a built-in cookie notice, and what does that notice govern? Built-in banners usually control the platform's own tracking. They may not touch scripts you added yourself.
- Is there a site-wide field for code in the
<head>? This is where a third-party banner script must go. A page-level field or an "embed" block that renders inside the page body is not a substitute. - Which trackers does the platform add for you? Analytics IDs pasted into an "integrations" or "analytics" setting are injected by the platform. You can't add
type="text/plain"to code you can't see.
The answers decide your setup. If the builder has a head field and you can see every tracking tag, any standard consent tool works. If not, you're relying on the builder's own consent features.
HubSpot CMS
HubSpot has a native cookie consent banner that you configure in your account's privacy and consent settings. It governs the HubSpot tracking code, and HubSpot has offered options for its text, buttons and appearance. If HubSpot tracking is the only non-essential code on your pages, the native banner may be all you need.
Things get harder when your HubSpot pages also run Google Analytics, ad pixels, chat tools or video embeds that were added as custom code. To use a third-party consent tool instead:
- Find the site header HTML setting in HubSpot's website settings for your domain. In recent versions it sits with the page templates settings. You can usually set it for all domains or one domain, and a domain-specific value overrides the general one.
- Paste your consent script at the top of the site header HTML and save.
- Change any other tags in that header field to
type="text/plain"with adata-category, so they wait for consent. - Turn off HubSpot's own banner so visitors don't see two.
- Make HubSpot's tracking code respect the third-party choice. HubSpot's developer documentation describes how its tracking code can be told not to track or to wait for consent. Check the current docs for the method that fits your setup.
The fifth step is the one most often missed. Turning off HubSpot's banner without wiring up the tracking code can leave HubSpot analytics running before consent. If you also run the HubSpot tracking code, forms or chat on a site hosted elsewhere, check consent there too, because those pages have their own header and their own set of scripts.
Ghost
Ghost states that a default installation doesn't set non-essential cookies, so a plain Ghost blog may not need a banner at all. Cookies used for member logins are part of the service the member asked for. Things change once you add analytics, advertising or third-party embeds.
Ghost's site-wide head field is called code injection:
- In Ghost Admin, open Settings and find Code injection.
- Paste the consent script at the very top of the Site header box, above any analytics tags.
- Change the analytics and pixel tags in the same box to
type="text/plain"with the rightdata-category. - Save. Code injection applies to every page Ghost renders, on Ghost(Pro) and self-hosted installs alike.
Two places can still hide trackers. Some Ghost themes include analytics or font requests in their template files, so search your theme's default.hbs and partials for <script tags. Posts can contain embed cards for YouTube, X or other services, which load their own scripts and cookies. Run a scan across several post URLs, not just the home page.
Google Sites
Google Sites is the most limited of the four. It doesn't offer a field for code in the page head. HTML you add with the Embed option runs inside an embedded frame, separate from the page around it, so a consent script added that way can't control anything else on the site.
What Google Sites does provide is a built-in notice. According to Google's Sites help, when you connect Google Analytics in the site settings, visitors in EU locations that require notice of non-essential cookies see a consent dialog with Accept and Reject buttons. The dialog covers the Google cookies the site uses, including Analytics.
In practice, that leaves you with these options:
- Keep it simple. Use Google Analytics through the Sites settings, rely on the built-in notice, and avoid embedding third-party tools that set their own cookies.
- Audit your embeds. YouTube videos, maps, calendars and forms embedded from other services may set cookies that the built-in notice doesn't describe. Remove what you don't need.
- Move if you outgrow it. If you need marketing pixels, custom analytics or full control over consent, a builder with head code access is the better fit.
Framer
Framer has a custom code section in the site settings with separate fields for the start and end of the <head> and <body>. As of late 2026, custom code is a paid-plan feature, so check your plan first.
- Open Site Settings and find the custom code section.
- Paste the consent script into the field for the start of the head, so it runs before other tags.
- Tag any analytics or pixel code in the other fields with
type="text/plain"and adata-category. - Publish. Changes to site settings only reach the live site after you publish.
Framer also lets you add code components and embeds on individual pages. Treat those like any other embed: check what they load, and hold back the ones that set non-essential cookies.
Quick reference
| Platform | Built-in cookie notice | Where a third-party banner goes | Watch out for |
|---|---|---|---|
| HubSpot CMS | Yes, governs HubSpot tracking | Site header HTML in website settings | HubSpot tracking code still needs to respect the third-party choice |
| Ghost | No; Ghost says it sets no non-essential cookies by default | Settings → Code injection → Site header | Theme templates and embed cards |
| Google Sites | Yes, for EU visitors when Google Analytics is connected | Not supported: embeds run in a separate frame | Third-party embeds the notice doesn't cover |
| Framer | No | Site Settings → custom code → start of head (paid plans) | Code components and embeds on single pages |
| Wix | Yes | See the Wix guide | Apps added through the Wix App Market |
| Squarespace | Yes | See the Squarespace guide | Built-in integrations |
| Webflow | Check current options | See the Webflow guide | Integrations set in project settings |
Scripts the platform injects for you
This is the gap that catches most builder sites. When you paste a Google Analytics measurement ID or a Meta Pixel ID into a platform's integrations screen, the platform writes the tag into your pages. You never see that code, so you can't tag it for blocking. A third-party banner will show up, visitors will click Reject all, and the tracker will run anyway.
You have three ways to deal with it:
- Use the platform's consent link-up, if it has one. Some builders make their built-in integrations wait for their own banner, or for a supported consent tool. Check the platform's documentation for the integration in question.
- Remove the integration and add the tag yourself. Clear the ID from the integrations screen, then paste the vendor's snippet into your head code field with
type="text/plain"and a category. You keep the same tracking and gain control over it. - Use Google Tag Manager with Consent Mode. Load one GTM container through the head field and manage tags inside it. With a consent tool that supports Google Consent Mode v2, Google tags in the container respect the visitor's choice, and you can add consent checks to other tags.
The underlying techniques are covered in how to block cookies and scripts until consent.
Testing on a builder site
Builders add their own layers, so test the published site rather than the editor preview. Editor previews often load extra scripts and skip custom code. Open the live URL in a private window, check the Network tab for third-party requests before you click anything, then reject and browse a few pages. Repeat on a page built from a different template, a blog post and a landing page. If the platform has a staging or preview domain, the consent tool may treat it as a different site, so test on the domain your visitors use.
The generic, step-by-step test is in the guide to adding a cookie banner to any HTML website, and it applies to builder sites too.
Next steps
- Answer the three questions above for your platform.
- Decide between the built-in notice and a third-party tool, and don't run both.
- Move platform-injected trackers under your control, or confirm they respect consent.
- Paste the banner script at the top of the site-wide head field, tag other scripts and republish.
- Test the live site in a private window and rescan after every new integration.
To see what your site sets today, run a free cookie scan. If your builder has a head code field, PrivacyQuick's single script tag works on it the same way it does on a hand-built site, and the setup docs walk through the install.
Frequently asked questions
Can I use HubSpot's cookie banner on a site that isn't hosted on HubSpot?
HubSpot's banner is tied to its tracking code, so it can appear on external sites that run that code. It's mainly designed to govern HubSpot's own tracking, so check whether it can also hold back the other third-party scripts on your site before you rely on it alone.
Does a Ghost blog need a cookie banner?
Ghost states that it doesn't set non-essential cookies by default. You usually need a banner once you add analytics, advertising, embeds or other third-party code through code injection or your theme.
Why does my cookie banner only show on some pages of my site builder?
The code was probably added to a single page's settings instead of the site-wide head field, or some pages use a template that overrides the site-wide header. Move the snippet to the global setting and republish every page.
Will my builder's built-in analytics be blocked by a third-party banner?
Usually not. Analytics that the platform adds on its own runs outside the HTML you control, so a third-party banner can't tag it. Check whether the platform has its own consent setting for that feature, or turn the feature off and add an equivalent tag yourself.
Check your own website in 30 seconds
Our free scanner lists every cookie and tracker your site sets, sorted into categories, before you add a banner.
This guide is general information, not legal advice. Laws and regulator guidance change; check the current rules for your situation or ask a lawyer.