Platforms

Webflow

Install allowedit on Webflow: paste the script into Head code in your site settings, publish, and block embeds and custom code until visitors consent.

On Webflow you add allowedit in your site settings, as head code. It then loads on every page of the published site. There is no allowedit app to install.

Before you start

  • Create a free account, add your site and copy your script tag from the dashboard (open the site; it's on the Overview).
  • Custom code in Webflow needs a paid site plan. On a free plan, the code field may be locked or the code may not publish.

1. Add the script to Head code

  1. In Webflow, open your site's Site settings.
  2. Go to Custom code.
  3. In Head code, paste your script tag at the very top, above any other code in the field:
<script src="https://allowedit.com/c/<siteId>.js"></script>
  1. Save changes.

If the field already holds Google Tag Manager, the Google tag or a pixel, keep allowedit above it. The script must run first to set Consent Mode defaults and block trackers before they load.

2. Publish

Custom code only appears on the published site. Publish to your Webflow subdomain and your custom domain.

The Designer preview doesn't run site-wide custom code, so test on the published site.

Page-level custom code

Webflow also lets you add code to a single page (in the page's settings) and embed code with the Embed element. Code there loads after the site-wide head code, so allowedit still runs first.

If you add a tracker in a page's code or an Embed element, either rely on auto-blocking for known trackers or mark it yourself:

<script type="text/plain" data-category="analytics" src="https://example.com/tracker.js"></script>

See Block scripts manually for inline scripts and iframes.

Videos and maps

Webflow's Video element and Embed elements with YouTube or Google Maps load third-party content. allowedit blocks YouTube and Google Maps embeds until the visitor allows marketing, and shows a placeholder with a button to load them.

For other embeds, use data-src and data-category on the iframe in an Embed element:

<iframe data-src="https://player.example.com/embed/123" data-category="marketing" width="560" height="315"></iframe>

Integrations in Webflow settings

Webflow can add Google Analytics and other tags from its Integrations settings. Google tags read the Consent Mode signals allowedit sets. If you'd rather control them yourself, remove them from Integrations and add them through Google Tag Manager below the allowedit script. See Google Tag Manager.

In your footer, add a Link Block or Text Link and set its URL to #cookie-settings. Clicking it opens the preferences panel.

Alternatively, add a custom attribute to any element: name data-allowedit, value settings.

4. Check it works

  1. Open the published site in a private window and check the banner shows.
  2. Choose Reject all and check your browser's developer tools for analytics or marketing cookies. There should be none.
  3. In your dashboard, run a scan to see every cookie on the site and anything set before consent.

Still stuck? Email support@allowedit.com with your site's address and what you see.