Consent behaviour
You paste the code once in Site Settings and it runs on every page.
The Consent Mode v2 stub sets denied before GA4, GTM or Google Ads load.
The banner only loads on the domain added in CookiePilot, so the published site's address must match it.
Setup steps
In the CookiePilot panel, add the domain your Framer site runs on (your custom domain or the .framer.website address). Copy the install code from the Installation tab.
In Framer, open Site Settings → General → Custom Code and paste the code into “Start of <head> tag”.
Put GA4, GTM and other tools in “End of <head> tag”, so they run after the CookiePilot stub.
Publish the site. Custom code only runs on the published site, not in the editor preview.
Open the published site in a private window and check the banner and dataLayer.
To remove the banner, delete the code from Custom Code and publish again.
Example snippet
<script src="https://cdn.cookiepilot.io/stub.js"></script>
<script async src="https://cdn.cookiepilot.io/cookiepilot.js" data-cpkey="YOUR_SITE_KEY"></script>Test checklist
The first dataLayer entry is consent default with denied values.
Before the visitor clicks, there are no _ga, _gcl or _fbp cookies.
After Accept, dataLayer contains consent update granted.
The banner shows on the published address that is added as a domain in CookiePilot.
Related integrations
See the setups that most often appear together with this integration.
Google Tag Manager
Consent Initialization, dataLayer and tag rules.
Google Analytics 4
Analytics consent, _ga and cookieless pings.
Webflow
Add the CookiePilot banner to a Webflow site with Custom code in Site settings. You paste the CookiePilot code at the top of the Head code field and Google Analytics and GTM below it, so Consent Mode v2 sets denied before the tags you paste below it run.
Meta Pixel
_fbp, facebook.com/tr and marketing events after consent.
Ready to configure it?
Start CookiePilot, choose the right integration and verify that tags wait for user consent before they run.