Custom App Consent

Hey,

I wondered if when selecting consents for a web pixel, does it need to be true or does it source the check from the result of the below?

window.Shopify.customerPrivacy.preferencesProcessingAllowed();
window.Shopify.customerPrivacy.analyticsProcessingAllowed();
window.Shopify.customerPrivacy.marketingAllowed();

Hello Chris,

The Web Pixels’ Customer Privacy API integrates with Shopify’s Customer Privacy API, so the values should match.

The reason for providing an additional API for Web Pixels is that the window.Shopify.customerPrivacy is not available inside the sandbox. The standard pixels API bridges that gap.

does it need to be true or does it source the check from the result of the below?

I’m not sure if my reply addresses this question though. Could you provide more details?

Sorry if I wasn’t clear.

For web pixels, the selections (the screenshot) for customer privacy? do they require that these are true or that each is set to true?

as in does it need

  • preferencesProcessingAllowed() - which could be either regional accepts (and customer hasnt opted out) or preferencesAllowed: true,
  • analyticsProcessingAllowed() - which could be either regional accepts (and customer hasnt opted out) or analyticsAllowed: true,
  • marketingAllowed() - which could be either regional accepts (and customer hasnt opted out) or marketingAllowed: true,

I think it would be calling these (preferencesProcessingAllowed, analyticsProcessingAllowed, marketingAllowed but just wanted to confirm.

I was reading the following and i guess i was looking for a table on the logic for those.

When talking about tracking consent, there are two sides:

  • Consent purposes (requirements)
  • Consent granted (permissions)

When applying consent settings to a custom Web Pixel, it is just saying that this pixel will only load if the customer grants consent for the selected purposes.

Then, when comes time to load Web Pixels, the Customer Privacy API is used to map the consent granted to the pixel’s required consent purposes.

So, for a custom pixel requiring “Marketing”, it would at least need marketingAllowed() method to return true for it to load.


A custom pixel should only be configure to require the minimum amount of consent purposes it needs to comply to tracking related laws and regulations. Then, the pixel will load if consent is granted for at least the required purposes.


Note that when using Shopify’s default cookie banner settings, explicit consent is only required in the regulated regions, and it is opt-out in other regions, so pixels should always load by default in the latter.