Shop is not configured to block privacy regulation in online store settings

Dugen
Shopify Partner
11 2 0

I have been following the add a cookie consent guide https://shopify.dev/themes/trust-security/cookie-banner#include-the-snippet and get this error when trying to follow it.

Shop is not configured to block privacy regulation in online store settings.

  What does this mean, and how would I go about configuring it. The only thing I could find related to it was in the admin was Online store > Preferences > Customer privacy. But that did not seem to affect anything.

 

Am I looking in the wrong place?

Replies 4 (4)

abdullah_shah31
Shopify Partner
4 0 0

Have you figured it out. i am facing the same issue..

 

Dugen
Shopify Partner
11 2 0

Yes, for some reason you can not test this in the Shopify CLI environment. so if you want to test cookies, you need to do it from a non-published theme. 

KarlM1
Visitor
1 0 0

You're in the right place; be sure to choose a non-"Collected before consent" option.

valenstical
Visitor
1 0 0

Make sure the "Collected after consent" box is checked in the Online Store > Preferences

 

Screenshot 2024-01-10 at 6.25.05 PM.png