Development discussions around Shopify APIs
I'm trying to build a proper cookie consent form for our shop using the Customer Privacy API (https://shopify.dev/docs/themes/consent-tracking-api). I know this only works for Euopean customers so I'm using a VPN to obtain a European IP address and tunnel my traffic through the VPN. I'm located in Canada.
Every single time, no matter if I'm using a VPN or not, the shouldShowGDPRBanner() method always returns false (it should be true for European customers). The userCanBeTracked() method always returns true (this should be false for European customers). Essentially, it doesn't look like Shopify is properly detecting my location, therefore the GDPR banner would never load. This is always done using incognito/private browsing windows so that there are no prior cookies tracking our consent.
I have enabled the options for Limit tracking for customers in Europe and Limit the third-party sale of your California customers’ data in the shop's settings.
Has anyone had any success using a VPN to test out the GDPR tracking options outside of Europe? If so, could you provide me with a link to the VPN service that worked for you, or any alternative way you got this working?
Any help with this is greatly appreciated.
Not yet. I put this project on hold as we're completely revamping our codebase to use Shopify 2.0. When I revisit the cookie consent portion of the revamp, I'll post back if I have any updates.
I am having this problem also - seems like shouldShowGDPRBanner is always set to false and not behaving according to the Shopify documentation. Would appreciate some help!
User | RANK |
---|---|
49 | |
14 | |
9 | |
7 | |
5 |
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023