In my app, I've implemented Consent tracking API as in the documentation example. It doesn't work.
When calling Shopify.trackingConsent.setTrackingConsent method, there is a 400 error when requesting /set_tracking_consent.json . The error message is: cookie_not_present "cookie not present". I've found it is related to the Shopify's '_tracking_consent' cookie. When should this cookie be created? Should my app set it? If so, can you point me to a manual on how to set it?
Can you give a detailed instructions how to deal with this problem? The documentation is minimal and does not address it.
@brant Thank you so much for your answer!!! That's it! Unfortunately, the beeclever GDPR Cookie consent tool i'm using is not yet using this new shopify cookie API, so if I activate this option you mentioned in preferences, the error is gone, but also my cookie tool is not showing up anymore and I have no possibility to run the tag manager and analytics. I guess beeclever is already working on a solution, I'll get into contact with them.