Install PrivacyQuick on Framer
Paste one tag into your site's custom code, tag the scripts and embeds that should wait for consent, publish, and test on the live site.
Framer lets you add code to the start of the head on every page, in the site settings. That's where the PrivacyQuick tag goes. Framer changes its interface often; if a name below doesn't match, search Framer's help for "custom code".
What you need: a PrivacyQuick account (the Free plan works) and a Framer plan that allows custom code. Framer's built-in analytics doesn't use cookies, so a plain Framer site may not need a banner at all. You need one when you add tools such as Google Analytics, ad pixels or video embeds. A free scan of your published site shows what it loads.
1. Add your site and copy the snippet
In the PrivacyQuick dashboard, add your domain and copy the snippet from the site's Overview tab:
<script src="https://cdn.privacyquick.com/v1/privacy.js" data-site-id="pq_xxxxxxxxxx" async></script>
Add the domain your visitors use. Your framer.app or framer.website address also runs the snippet once published, and its page views count toward your plan.
2. Paste it into the custom code
- Open Site Settings and go to General, then Custom Code.
- Paste the snippet into the box for the start of the <head> tag.
- Save and publish. Custom code doesn't run in the editor or preview.
Use one banner. If you added Framer's own Cookie Banner component, remove it. Two banners confuse visitors and record conflicting choices.
3. Tag the scripts that should wait
Rather not tag each script? Put the automatic blocker line directly above the snippet. It holds scripts from known analytics and advertising services, so you only tag what it doesn't cover. It has to load before those scripts, so it only helps if it comes before every tracking script in your custom code.
PrivacyQuick holds back a script only when its tag has type="text/plain" and a data-category of analytics, functional or marketing. Edit tracking tags you pasted into custom code:
<!-- before -->
<script src="https://example-analytics.com/tag.js" async></script>
<!-- after -->
<script type="text/plain" data-category="analytics" src="https://example-analytics.com/tag.js" async></script>
Videos, maps and other embeds
Framer's YouTube and similar components load from the provider when the page opens. To make an embed wait, use an Embed component set to HTML, with a tagged iframe:
<iframe data-src="https://www.youtube-nocookie.com/embed/VIDEO_ID" data-category="functional" width="560" height="315" title="Video"></iframe>
If your tracking runs through Google Tag Manager, tag nothing in Framer and follow the Google Tag Manager guide instead. See Blocking scripts for all the patterns.
4. Add a "Cookie settings" link
Add a text link in your footer with the link set to #cookie-settings. Then paste this into the custom code box for the end of the <body> tag:
<script>
document.addEventListener('click', function (e) {
var a = e.target.closest('a[href$="#cookie-settings"]');
if (a) { e.preventDefault(); if (window.PrivacyQuick) PrivacyQuick.open(); }
});
</script>
5. Publish and test
- Publish, then open the live site in a private window. The banner should appear.
- In the browser's developer tools, open the Network tab and reload. Tagged scripts and embeds shouldn't load before you choose.
- Click Accept all. They load straight away, and the banner stays closed on the next page.
- Click your "Cookie settings" link. The preferences panel opens.
Finish the setup
- Create your policies with the policy generator and link to them from your footer.
- For background, read the guide to cookie banners on Framer.
Stuck? See Troubleshooting or email [email protected].