How to check if your Consent Management Platform (CMP) is connected with Shopify Consent API

Shopify Consent API controls the behavior of all Shopify apps including ProfitMetrics. Follow the steps below in order to check if your Consent Management Platform (CMP) is connected with the Shopify Consent API .

Part 1: Check "Customer privacy" settings in Shopify

Part 2: Connect your third-party Consent Management Platform (CMP) with the Shopify Consent API

Part 3: Confirm your Consent Management Platform (CMP) is connected with the Shopify Consent API



Part 1: Check "Customer privacy" settings in Shopify

  1. Login to admin.shopify.com for your website
  2. Click "Settings"
    Disable and Customize Cookie Banner on Shopify Store - Step 2
  3. Click "Customer privacy"
    Disable and Customize Cookie Banner on Shopify Store - Step 3
  4. Click "Cookie banner"
    Disable and Customize Cookie Banner on Shopify Store - Step 4
  5. Identify if the "Cookie banner" is enabled and how
    1.  If you see "Activate cookie banner" button - the Cookie banner is not enabled
      Skærmbillede 2024-03-21 kl. 10.20.38
    2. If you see the "Region visibility" and "Appearance" section - The native Shopify Cookie banner is enabled.
      Skærmbillede 2024-03-21 kl. 10.20.28
    3. If you only see the "Visibility" and "Region visibility" sections- A Third Party Cookie Banner is expected
      Skærmbillede 2024-03-21 kl. 10.20.47
  6. Ensure the settings are as desired.
    If you use the Shopify native Consent banner, then it should look like option "b" above. If you use a third-party app or Consent Management Platform like CookieInformation.com or cookiebot, it should look like option "c" above.

Part 2: Connect your third-party Consent Management Platform (CMP) with the Shopify Consent API


Cookieinformation.com
Click here to read the documentation provided by Cookieinformation.com


Cookiebot.com

Click here to read the documentation provided by Cookiebot.com

Part 3: Confirm your Consent Management Platform (CMP) is connected with the Shopify Consent API

  1. Visit your website and make sure you grant consent in your Consent Management Platform (CMP)
  2. Right-click and Inspect the page
    Myshopify Workflow - Step 3
  3. Click on "Console"
    Myshopify Workflow - Step 4
  4. Copy and paste the following code in the console and hit Enter
    window.Shopify.customerPrivacy.currentVisitorConsent();

    Depending on the result, you will know if everything is working or not.

    1. Uncaught TypeError
      Cookie banner is not enabled in Settings > Customer privacy > Consent banner.
      Click here to read Part 1 of this guide
      Screenshot 2024-03-21 at 10.48.54

    2. Empty values

      Your Consent Management Platform (CMP) is NOT connected to the Shopify Consent API. Click here to read Part 2 of this guide

      Screenshot 2024-03-21 at 10.49.52

    3. All show 'no'
      Your Consent Management Platform (CMP) is NOT connected to the Shopify Consent API. Click here to read Part 2 of this guide
      Screenshot 2024-03-21 at 10.50.03
    4. All or some show 'yes'
      Your Consent Management Platform (CMP) is connected to the Shopify Consent API.
      Screenshot 2024-03-21 at 10.51.01

back to top