Skip to content

Frameworks

Marketplace

Platform

Resources

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

Adding Asiri Consent to Squarespace

Paste the Asiri consent script into Squarespace code injection.

Updated

Squarespace has no app for this. You paste two lines into the site's code injection.

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. Code injection is not on every Squarespace plan, so check yours before you start.

Add it

  1. Open the source's Install tab and choose Squarespace. Copy the defaults block and the script line.
  2. In Squarespace, open Settings, then Advanced, then Code Injection.
  3. Paste the defaults block and then the script line into Header, and save.
  4. Open the live site in a private window. The banner should show.

Code injected here does not run in the editor preview. Squarespace sets some cookies itself and the banner cannot hold those back.

Can’t find what you need? Contact us.