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.
- Direct snippet
- Google Tag Manager
- WordPress
- Shopify
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
- Import the OptSens CMP template into your GTM container.
- Set your Domain ID and the CDN base URL from your dashboard.
- Set the trigger to Consent Initialization - All Pages.
- Publish the container.
Full guide: Google Tag Manager
- Install the OptSens plugin from the WordPress plugin directory.
- Open the OptSens menu in the admin sidebar and connect your Domain ID.
- Save. The plugin injects the snippet site-wide.
Full guide: WordPress
- Install the OptSens CMP app from the Shopify App Store.
- In the theme editor, enable the OptSens CMP app embed.
- Paste your Domain ID into the embed settings and save.
Full guide: Shopify
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
- Open your site in a private window. The banner shows on first visit.
- 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.
- See Verify installation for the manual checklist.
If the banner does not show, start with Install troubleshooting.