Integrations

Add CookieConsentHQ to Framer

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.

Get your install codeFree plan, no card needed.
Installation type
One script tag
Where in Framer
Site Settings, General, Custom Code, Start of <head> tag
Script loading
Synchronous; no async or defer
Reopen settings
Link or button calling CCHQ.showPreferences()
Cookie table
Embed component with <div data-cchq-cookie-table></div>
Verification
Verify installation in the dashboard; free checker at /check

How do I add CookieConsentHQ to a Framer site?

Open your project in Framer and go to Site Settings, General, Custom Code. Paste the CookieConsentHQ script tag from your dashboard's Install tab into the Start of <head> tag box:

<script src="https://cdn.cookieconsenthq.com/s/YOUR_SITE_KEY.js"></script>

Save the setting and publish your site. Placing the snippet in Start of <head> puts it ahead of scripts in End of <head> and <body>.

Do not add async or defer to the script tag. The banner needs to initialize first so it can register Google Consent Mode v2 defaults and block known trackers before other scripts execute.

Where should analytics and ad pixels go in Framer?

Put Google Analytics, Meta Pixel, LinkedIn Insight Tag or your Google Tag Manager container after the CookieConsentHQ loader, ideally in the End of <head> tag box or managed inside Google Tag Manager.

For any custom marketing or analytics script you paste directly into Framer Custom Code, you can hold the request completely until consent by marking it manually:

<script type="text/plain" data-cchq="marketing" src="..."></script>

If you also use Framer's built-in Google Analytics field in Site Settings, publish and inspect the live page right away. Check whether GA4 loads after our script and receives the denied Consent Mode defaults before a visitor accepts.

Framer's Embed component lets you render plain HTML inside a page or footer:

  • Cookie declaration table: drop an Embed component (HTML mode) on your cookie policy page containing <div data-cchq-cookie-table></div>. Your cookie scanner fills it automatically.
  • Reopen cookie choices: add a footer button or HTML Embed that calls window.CCHQ?.showPreferences() on click.

Every visitor choice is stored in your consent log and exportable as CSV.

How do I verify my Framer installation?

Custom Code changes in Framer only run on the published site, not inside the canvas preview. Publish first, then run Verify installation in your CookieConsentHQ dashboard or test the live URL in the free cookie checker.

The checker loads your published Framer page as a first-time EU visitor and flags any cookies set before consent, hardcoded tracker tags and missing Consent Mode v2 defaults. If the banner does not show after publishing, see Cookie banner not showing or the full installation documentation.

This page is technical installation guidance, not legal advice.

Questions

Which Custom Code box in Framer should I use?
Use Start of <head> tag in Site Settings, General, Custom Code. Avoid End of <head> or <body> boxes, because analytics and pixel scripts pasted earlier will run before the banner.
Do I need a paid Framer site plan to add custom code?
Framer restricts site-wide Custom Code in Site Settings to paid site plans. Check Framer's current plan table if the Custom Code section is locked on your project.
What about Framer's built-in Google Analytics field?
If you paste a GA measurement ID into Framer's built-in Google Analytics setting, test the published page with the free checker to confirm whether the tag fires before consent or respects Consent Mode v2 defaults.
How do I let visitors reopen cookie settings in Framer?
Add an Embed component or small code override in your footer that calls window.CCHQ && window.CCHQ.showPreferences() when clicked.