add js on the checkout page

does anyone know how to add js code for accessibility on the checkout page?

we are using Checkout Extensibility
we are on shopify plus, and succeed to add the js code on the rest of the pages via gtm

1 Like

the only 2 things you can do is add “functions” and “pixels”. depending on what you’re looking for, i would like into these 2.

1 Like

isn’t Shopify Functions are being phased out soon?

Shopify scripts is being phased out and its replaced by Functions.

1 Like

Hi David,

Did you try to use ‘Customer Events’ ?
I’m using it for DataLayers and Pixels
https://shopify.dev/docs/api/web-pixels-api/standard-events

Yes, if by accessibility you mean modifying HTML attributes in the DOM (such as adding events to elements or create new elements) on the checkout page with JavaScript, this isn’t possible due to restrictions.

If you want to add JavaScript to capture custom events during interactions with the checkout, you can use custom pixels or other limited JavaScript configurations.

Please provide more details about your use case so I can better understand what you’re trying to achieve.

This is how you want to add GTM in the checkout:

https://help.shopify.com/en/manual/promoting-marketing/pixels/custom-pixels/gtm-tutorial