Skip to content

Frameworks

Marketplace

Platform

Resources

↑↓ to moveEnter to openHelp, news and every page are found here too

Adding Asiri Consent to Webflow

Add the Asiri consent script to a Webflow site with your source id and publishable key.

Updated

Webflow loads the Asiri banner from custom code in the site's head. The script is pinned to a version with a Subresource Integrity hash.

Who can do this

An Owner or Admin of your Asiri workspace. The secret key, where a step needs one, is visible to Owners and Admins only.

Before you start

You need a source and a publishable key. Open Consent, then Sources, choose your source and open its Install tab. Your source id is on that page. A publishable key starts with pk_live_ or pk_test_; make one on Consent's Keys page, opened by Keys beside the source on Sources, if you have not got one. A publishable key goes in the page and records choices against a visitor only. A secret key starts with sk_ and never goes in a page, a theme or a tag.

Add it

  1. Open the source's Install tab and choose Webflow. Copy the defaults block and the script line. The script line already holds your source id and publishable key.
  2. In Webflow, open Site settings, then Custom code, and paste the defaults block, then the script line, into Head code.
  3. Publish the site. Custom code only runs on the published site, not in the designer.
  4. Open the published site in a private window. The banner should show.

Paste the defaults block before the script line. It holds every Google Consent Mode type at denied until the visitor chooses.

Webflow's own cookies and any code you added by hand are not controlled by this. List them in your notice.

Can’t find what you need? Contact us.