consent-tracking-api never loads - callback never invoked

Andrew20
Shopify Partner
6 0 2

Hi. We have a Shopify app that installs a script which uses the consent-tracking-api, as below. This works for all of our customers except 1...

 

When I debug the script on their site, I can see we execute the call to `window.Shopify.loadFeatures` but the callback is never invoked (I would expect it to be called at least with an error)

window.Shopify.loadFeatures(
  [{ name: 'consent-tracking-api', version: '0.1' }],
  function(error) {
    // THIS CALLBACK IS NEVER CALLED!

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

 

What could be the reason that the API does not load or initialize correctly? Has anyone else seen this?

Replies 0 (0)