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.
How do I add a cookie table and preferences link in Framer?
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.