consent-tracking-api callback not invoked in some cases

consent-tracking-api callback not invoked in some cases

emiltr
Shopify Partner
9 0 27

Hello,

We encountered an issue with the callback of initiating Consent Tracking API to not fire:

window.Shopify.loadFeatures([
            {
                name:   'consent-tracking-api',
                version: '0.1',
            },

            ], function(error: Error) {

            if (error) {
              loadCookieBar();
              throw error;
            }

            loadCookieBar();
        });

In certain cases, which we cannot reproduce, the customerPrivacy property of the main Shopify object is missing, and the API cannot be loaded along with it. 

Did anyone else experience any similar issue or is there a general fix for that? How do we ensure that the customerPrivacy will be loaded every time? Are there cases where this property will be omitted on purpose?

Replies 0 (0)