PrivacyQuick

All documentation pages ↓

Install PrivacyQuick on Webflow

Paste one tag into your site's head code, tag the scripts and embeds that should wait for consent, publish, and test on the live site.

Webflow lets you add code to the head of every page in the site settings. That's where the PrivacyQuick tag goes. Webflow moves its settings around occasionally; if a name below doesn't match, search Webflow's help for "custom code".

What you need: a PrivacyQuick account (the Free plan works) and a Webflow site that can use custom code. Webflow offers custom code on paid plans, so check your site or workspace plan first.

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 webflow.io staging address also runs the snippet once you publish there, and its page views count toward your plan.

2. Paste it into the head code

  1. Open Site settings and go to the Custom code tab.
  2. Paste the snippet at the top of the Head code box, above anything already there.
  3. Save, then publish the site. Custom code doesn't run in the Designer or its preview.

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 head code.

PrivacyQuick holds back a script only when its tag has type="text/plain" and a data-category of analytics, functional or marketing.

Code in site or page custom code, or in a Code Embed element

Edit the tag where you pasted it:

<!-- 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>

Tracking added through Webflow's integrations

If you entered a Google Analytics measurement ID or another tracking ID in Webflow's site settings, Webflow writes that tag and you can't change its type.

  • Google tags read the Consent Mode signals PrivacyQuick sends, so they don't set cookies before the visitor agrees. They still send Google's cookieless pings before consent.
  • To block a tag completely, remove the ID from the integration and paste the vendor's snippet into the head code yourself, with type="text/plain" and a category.

Videos and maps

Webflow's Video, YouTube and Map elements load from the provider as soon as the page opens, and they can't be tagged. To make an embed wait, use a Code Embed element 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>

See Blocking scripts for all the patterns and Cookie categories for which category to choose.

4. Add a "Cookie settings" link

Give a footer link the ID cookie-settings in the element settings panel, then add this to the Footer code box on the same Custom code tab:

<script>
document.addEventListener('click', function (e) {
  if (e.target.closest('#cookie-settings')) {
    e.preventDefault();
    if (window.PrivacyQuick) PrivacyQuick.open();
  }
});
</script>

5. Publish and test

  1. Publish, then open the live site in a private window. The banner should appear.
  2. In the browser's developer tools, open the Network tab and reload. Tagged scripts shouldn't load before you choose.
  3. Click Accept all. Tagged scripts load straight away, and the banner stays closed on the next page.
  4. Click your "Cookie settings" link. The preferences panel opens.
  5. In the PrivacyQuick dashboard, the site shows Installed within a minute or two.

Finish the setup

  • Create your policies with the policy generator. You can link to the hosted pages or embed a policy in a Webflow page with a Code Embed element.
  • For background, read the guide to cookie consent on Webflow.

Stuck? See Troubleshooting or email [email protected].