Setting the tracking consent on subdomain only

Shopify Partner
1 0 0

How to set the tracking consent on the subdomain, not on the domain itself.


Let's say we have the following 4 subdomains, If we give the consent on, the cookies are correctly released on that subdomain. However, the cookies are released on the subdomain. So my question is: is it possible to limit the tracking consent on the subdomain not on the entire domain (


JS command:
window.Shopify.customerPrivacy.setTrackingConsent(true, function () {})

Reply 1 (1)
Shopify Staff
Shopify Staff
402 65 92

Hey @MoustafaG 

Thanks for raising this! I don't see a way that the Customer Privacy API can be configurable in this way natively for specific sub domains on Shopify at present. 

It will definitely be something I've made our internal teams aware of though!



| Shopify |
- Was my reply helpful? Click Like to let me know!
- Was your question answered? Mark it as an Accepted Solution!