> For the complete documentation index, see [llms.txt](https://help.littledata.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.littledata.io/partner-recipes/cookie-consent-integrations/integrating-consentmo-shopify.md).

# Integrating Consentmo with Shopify

Set up Consentmo, Shopify's customer privacy regions and Littledata's Consent mode so tracking waits for visitor consent.

[Consentmo](https://www.consentmo.com/) is a Shopify app that manages visitors' cookie preferences and helps you comply with GDPR. This guide shows you how to set up Consentmo, Shopify and Littledata so tracking only starts after a visitor gives consent.

{% hint style="warning" %}
Littledata supports Google Consent Mode v2 out of the box once you turn on **Consent mode** for a destination. If you use Consentmo, you don't need to turn on Consentmo's own Consent Mode v2 integration. Doing so may cause duplicate Google Analytics page views.
{% endhint %}

### Turn on Consent mode in Littledata

**Consent mode** is off by default. While it's off, Littledata tracks every visitor as if they had given consent. Turn it on for each destination that should respect consent.

{% stepper %}
{% step %}
**Open the destination settings**

In the Littledata app, find the destination you want to update, click the **⋯** menu on its card and choose **Settings**.
{% endstep %}

{% step %}
**Open the General tab**

Open the **General** tab.
{% endstep %}

{% step %}
**Turn on Consent mode**

Turn on **Consent mode**.
{% endstep %}

{% step %}
**Save**

Click **Save**. Repeat these steps for each destination. If [Shopify Markets](https://help.littledata.io/sources/shopify-markets/markets-settings) is enabled, check the setting for every market.
{% endstep %}
{% endstepper %}

With Consent mode on, Littledata waits for the visitor's consent before tracking them in the browser for that destination. Your settings in Shopify and in Consentmo need to match, as described below.

{% hint style="info" %}
The design of your [consent banner](https://help.littledata.io/advanced/troubleshooting/consent-banner-design-ga4) affects how much data you collect, not only the user experience.
{% endhint %}

### Set the consent regions in Consentmo

Consentmo connects to Shopify's Customer Privacy API. This lets you set the regions where consent is required directly in the Consentmo app.

{% stepper %}
{% step %}
**Open the cookie banner settings**

In the Consentmo app, open the **Cookie banner** tab.
{% endstep %}

{% step %}
**Open Geolocation**

Open the **Geolocation** section.
{% endstep %}

{% step %}
**Choose the regions**

Select the regions where the cookie banner should show and data should only be collected after consent. Then save your changes.

<div data-with-frame="true"><figure><img src="https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F1QhTbrMraNWciQeDvu1b%2Fuploads%2Fgit-blob-bce2dcba719e0603ee52608a8af20cd375848590%2Fgeolocation-consentmo.png?alt=media" alt="Consentmo cookie banner Geolocation tab with regions selected"><figcaption></figcaption></figure></div>
{% endstep %}
{% endstepper %}

### Check the customer privacy regions in Shopify

You can also check or set the regions in your Shopify admin.

{% stepper %}
{% step %}
**Open Customer privacy**

In your Shopify admin, go to **Settings** > **Customer privacy** > **Cookie banner**.
{% endstep %}

{% step %}
**Edit the regions**

Under **Regions and content**, click **Edit** next to **Regions**.
{% endstep %}

{% step %}
**Choose the regions**

Select the regions where data should only be collected after consent, then save. Shopify shows the steps in [this video](https://www.youtube.com/watch?v=6rX3xu4J8bg).
{% endstep %}
{% endstepper %}

### Set the initial state of cookie groups

Cookie groups should start unchecked, so nothing is tracked until the visitor chooses.

{% stepper %}
{% step %}
**Open the banner behavior settings**

In the Consentmo app, go to the **Cookie banner** tab > **Behavior** > **Cookie banner behavior** and click **Show more**.
{% endstep %}

{% step %}
**Uncheck all cookie groups**

Set all cookie groups to be unchecked initially, then save.
{% endstep %}
{% endstepper %}

Once this is done, Consentmo and Shopify share the same consent choices. Littledata then turns tracking on or keeps it off based on what each visitor picks in the cookie banner.

### Related articles

* [Using cookie consent banners for GDPR compliance](https://help.littledata.io/partner-recipes/cookie-consent-integrations/shopify-customer-consent-api)
* [Using Google Consent Mode v2 with Shopify](https://help.littledata.io/integrations/shopify-to-google-analytics/using-google-consent-modev2)
* [Changing the data pipeline settings](https://help.littledata.io/advanced/developer/data-pipeline-settings)
* [Integrating OneTrust with Shopify](https://help.littledata.io/partner-recipes/cookie-consent-integrations/integrating-onetrust-shopify)
