Articles on: Frequently Asked Questions (FAQ)

Shopify Customer Privacy API integration

Shopify currently has the options to limit the tracking of data for customers from different locations, which you can find in your Shopify Admin > Settings > Customer Privacy >and in Cookie banner section, you will be able to select which regions you wish the data for your visitors to be collected after they consent for this via the Cookie bar in your store.

Once you access the Cookie banner section you will have the option to Edit this list, and select the Recommended EU+EEA countries and add more locations there if needed, in which you want the data collection to be Collected after consent.

If these options are selected, customers must give consent before their data can be collected, and the following changes will occur:

The Facebook Pixel and Google Analytics will be blocked initially until the customer explicitly gives his consent. This is happening on Shopify's side, with the Consent Tracking API, which our app is integrated with. How it works is once the page is loaded and the cookies are initially blocked by Shopify, each customer has the option to opt-in or opt-out of the different cookie groups.
Once the customer presses one of the 'Accept' buttons, a flag containing each cookie group's consent will be sent to Shopify. Each of those consents will be set either to true or false, depending on how the customer has configured their preferences.
If he/she has accepted any of the cookie groups, then they will be set to true in the flag.
If not, then the they will be set to false and Shopify will continue to block the cookies the same way as they were blocked initially.
The blocking will also work with the cookies, set on the Checkout page.

The cookies, which are in regard to Shopify for example - _shopify_y, _shopify_s, _y, etc. will be set as session cookies, meaning that they will be deleted as soon as the customer closes their browser.
If the customer however has accepted the cookies, i.e. the cookie groups' consent in the flag mentioned above is set to true the cookies will be upgraded to persistent cookies, which are stored in the browser and will not be deleted when the customer closes their browser.

Updated on: 05/02/2024

Was this article helpful?

Share your feedback


Thank you!