To manage the Shopify cookies with the Shopify customer privacy api it is important that you enable the customer privacy settings for your Shopify website. You can also select in which regions the cookie banner will become visible. This will make sure that the shopify analytical cookies are only set if a user accepts them, it will change the expiry date of these cookies.
!important: this will impact your Shopify analytics for sessions etc. People who decline the use of cookies other than necessary will not show up in your analytics.
1. Go to App and Sales channel settings
Go to the Apps and sales channels overview and click on the Customer Privacy button
2. Open cookie banner settings
3. Select the option "Use customer cookie banner"
4. Select and confirm the countries where you want to show the cookie banner