Customer Privacy JS API integration requirements - Local Storage vs Cookies

Hi there!

We’ve received an email that we should integrate with Privacy JS API if we add a cookie in Storefront. The thing is that our app/extension is not adding any cookies, but we are using Local Storage to save user data.

On this FAQ page, I found the following information:

Any app, theme, app extension, or theme extension (collectively "apps and themes’') that collects cookie consent or inserts a cookie into a merchant storefront is required to integrate with the Shopify Customer Privacy JS API

In this case, are we also obliged to integrate with Privacy JS API? Could the Shopify team confirm that you consider “Cookies” the same as “Local Storage”?

I appreciate any help you can provide.

1 Like

Same question…can someone from the Shopify team help here please?

2 Likes

+1 Using local storage in themes, and not any personally identifiable information.

This is the reply that we received from Shopify:

The Privacy API is applicable if any user tracking information is stored in the browser - be it through cookies, local storage or other storage media.

1 Like