Skip to main content

Shopify

The OptSens CMP app connects your Shopify store to your OptSens account. It loads the banner from the OptSens CDN and forwards each visitor's consent decision to Shopify's Customer Privacy API.

Install the app

  1. In the Shopify App Store, search for OptSens CMP and open the listing.
  2. Click Install and approve the install for your store.

The app requests no store-data access scopes. After install, the app's admin screen shows two setup steps.

Get your Domain ID

  1. Open your OptSens dashboard and add this store's domain.
  2. Copy its Domain ID from the Integration step of the guided onboarding, or later from the dashboard Integration page.

Enable the app embed

  1. In Shopify, open your theme editor and go to App embeds.
  2. Turn on OptSens CMP.
  3. Paste your Domain ID into the OptSens Domain ID field.
  4. Save the theme.

The Open theme app embeds button on the app's admin screen takes you straight to this panel.

What the app does

The app embed loads the OptSens script through Shopify's compliance head, the dedicated injection point for consent apps, which Shopify places in <head> ahead of other scripts:

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

A bridge maps each consent decision onto Shopify's Customer Privacy API. Consent is forwarded only after a real visitor choice, never automatically, and the stored choice is replayed on return visits:

OptSens categoryCustomer Privacy API
Analyticsanalytics
Advertisingmarketing and sale_of_data
Functionalpreferences

Banner design, languages, geo rules and consent records are managed in your OptSens dashboard, not in the app.

After installing

  1. Open your storefront 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.
  3. Work through Verify installation.

If the banner does not show, confirm the app embed is turned on, then see Install troubleshooting.