Cart.js API and cookies being set on every XHR call

emiltr
Shopify Partner
3 0 8

Hello,

Recently we have noticed that default cookies for Shopify Analytics are being set on every page load from the request call with the CartJS AJAX API. For more information as to which cookies are set exactly, you can check the screenshot below:

alexcoolshop - Google Chrome 2021-11-10 16.55.12.png

 



Particularly here, in our case, this is an issue since we are developing an app for GDPR compliance, which is blocking the cookies that are for Shopify Analytics if the customer has refused them. However with these cookies being set on every page load, it is an issue since we are blocking the cookies once, and after this, they are being set again via the request headers of the cart.js.

An example cookie that we are blocking is _y, which according to the Shopify Cookie Policy is part of the Reporting and Analytics cookie suite. However once the cookie is deleted by our service, it is immediately being set again from this API.

Does anyone have more information in regard to this and why these cookies are set on every XHR request? Also, is there any way to configure or stop the cookies from being set? 

Thank you in advance.

 

Replies 2 (2)
iSenseLabs
Shopify Partner
77 6 31

@Shopify check this issue! 

iSenseLabs
Shopify Partner
77 6 31

Can you please check this issue as well?