Skip to main content

Install OptSens

Add the OptSens banner to your site in a few minutes. Pick the method that matches your setup. The direct snippet works on every platform.

Your snippet with your Domain ID is on the Integration page in the dashboard, and in the Integration step of the guided onboarding.

Choose your installation method

The script must load first-party in <head>, before any Google or marketing tags. Consent defaults are then set before anything else runs.

Paste the snippet as the first script in <head>, on every page:

<script src="https://cdn.optsens.com/optsens.min.js/YOUR_DOMAIN_ID"></script>

Full guide: Direct snippet

Install first-party even when you use GTM

Safari Private Browsing blocks googletagmanager.com, and a banner delivered only through GTM never shows there. Use the direct snippet: the banner shows in every browser, and the tags inside GTM still fire according to the visitor's consent.

Other platforms: Webflow, Wix, Squarespace, Magento.

After installing

  1. Open your site in a private window. The banner shows on first visit.
  2. Run the implementation check. During first-time setup it runs as the onboarding Verify step, and you can run it at any time from the dashboard Integration page. It confirms the snippet, consent signals and Google Consent Mode v2.
  3. See Verify installation for the manual checklist.

If the banner does not show, start with Install troubleshooting.