Docs / label.js

Install guide

Where to add the label.js line on your platform.

Create a Disclarion account, add your site, then copy your line from your dashboard. It looks like this, with your own site code:

<script src="https://cdn.disclarion.com/v1/label.js" data-site="site_YOUR_SITE_CODE" async></script>

Website content labeling opens to everyone soon. Questions: hello@disclarion.com

WordPress

  1. Install and activate the free plugin WPCode (Insert Headers and Footers).
  2. Go to Code Snippets → Header & Footer.
  3. Paste the line into the Header box and save your changes.

On WordPress.com, adding code to the header is only available on some paid plans. See WordPress.com help.

Shopify

  1. In your Shopify admin, go to Online Store → Themes.
  2. Duplicate your current theme first, so you have a backup copy.
  3. On your current theme, click … → Edit code.
  4. Open the theme.liquid file (usually in the Layout folder) and paste the line just before the closing </head> tag. Save.

The line belongs to this theme. If you switch to another theme later, add it to that theme too.

Wix

  1. In your site's dashboard, go to Settings → Custom Code (in the Development & integrations section).
  2. Click + Add Custom Code and paste the line. Name it Disclarion.
  3. Under Add Code to Pages, choose All pages and Load code on each new page.
  4. Under Place Code in, choose Head, then click Apply.

Wix needs your site to be published with a connected domain (your own domain, not a wixsite.com address). Custom code may require a paid plan, see Wix help.

Wix also asks what kind of code this is. label.js sets no cookies and stores nothing on your visitors' devices. If you put it in a category your cookie banner blocks, labels only show after a visitor accepts that category.

Webflow

  1. Open your site's settings and find Custom code.
  2. Paste the line into Head code and save your changes.
  3. Publish your site. Custom code only runs on the published site.

Menu names may differ slightly in your version. Custom code may require a paid plan, see Webflow help.

A webflow.io address can't be verified: use your own domain.

Squarespace

  1. Open the Code Injection panel in your site's settings (the exact menu may differ, see Squarespace help).
  2. Paste the line into the Header field and save.

Squarespace says code injection is available on its Core, Plus, Advanced and some older plans.

A squarespace.com address can't be verified: use your own domain.

Google Tag Manager

  1. Open the Google Tag Manager container that loads on your site.
  2. Go to Tags → New → Tag Configuration → Custom HTML, and paste the line.
  3. Under Triggering, choose Initialization - All Pages.
  4. Under Advanced Settings → Consent Settings, choose No additional consent required. label.js sets no cookies and stores nothing on your visitors' devices, so the labels don't wait for a cookie choice.
  5. Save the tag, then Submit and Publish the container. Changes only go live once the container is published.

If verification doesn't pass through Google Tag Manager, add the DNS TXT record in your dashboard, under Other ways to verify. The DNS record only proves the site is yours; your tag still shows the labels.

Plain HTML

  1. Paste the line into the <head> of every page, or into the shared template or layout all your pages use.
  2. Publish the change.

Other

  1. Most website builders have a setting called Custom code, Code injection or Header scripts. Paste the line there so it loads on every page.
  2. Publish the change.

If you can't find it, use Copy instructions in your dashboard to send this to whoever manages your website, or use Google Tag Manager.

This is an AI-powered assistant.