Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Extensibility Compatibility w/ Third Party Libraries

Solved

Extensibility Compatibility w/ Third Party Libraries

ecbLR
Excursionist
11 0 2

High-level question:
Our team is transitioning from `checkout.liquid` to checkout Extensibility, and we need to replicate our existing third-party analytics customizations with extensions using the new web pixel API. 

Our research suggests that some third-party browser-based tooling ( such as Amplitude JS ) may no longer be compatible with Extensibility, given that these tools expect access to the DOM and the usual suite of browser APIs, which Shopify no longer exposes through the sandbox environment. 

We want to understand if our general interpretation is accurate without going too deep into specifics. 

Screenshot 2024-01-02 at 4.04.09 PM.png

Screenshot 2024-01-08 at 12.24.42 PM.png

Accepted Solution (1)

Liam
Community Manager
3108 344 899

This is an accepted solution.

Hi, 

 

"third-party browser-based tooling ( such as Amplitude JS ) may no longer be compatible with Extensibility, given that these tools expect access to the DOM and the usual suite of browser APIs, which Shopify no longer exposes through the sandbox environment."

 

^This is correct - checkout extensions do not have access to window and document objects since they are loaded in a restricted environment. 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

View solution in original post

Replies 4 (4)

Liam
Community Manager
3108 344 899

This is an accepted solution.

Hi, 

 

"third-party browser-based tooling ( such as Amplitude JS ) may no longer be compatible with Extensibility, given that these tools expect access to the DOM and the usual suite of browser APIs, which Shopify no longer exposes through the sandbox environment."

 

^This is correct - checkout extensions do not have access to window and document objects since they are loaded in a restricted environment. 

Liam | Developer Advocate @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

ecbLR
Excursionist
11 0 2

Thanks for confirming this for us, @Liam. Appreciate it. 

dewain
Visitor
1 0 0

Hi Liam, 

 

Is there an alternative which can be leveraged to share checkout events with 3rd party analytics products. It would be extremely helpful for us to understand the complete funnel.

 

Thanks,

Dewain

ecbLR
Excursionist
11 0 2

@dewain We've been using Shopify's 'Customer Events' pannel, which is a lax sandbox Shopify has provided as an escape hatch for legacy pixels. All the code gets injected into an iframe. While not everything is guaranteed to be compatible, with a little refactoring seems to be okay for most pixels.