How can I add a script to the Thank You page without modifying the order flow?

How can I add a script to the Thank You page without modifying the order flow?

NejcZdovc
Visitor
1 0 1

Hi all,

 

I would like to build an app that adds small snippet on Thank you page (Order status page). I see that you can do this kind of things with https://shopify.dev/apps/checkout/post-purchase, but the problem is that this adds steps in between payment and status page. This modifies customer order flow which I want to avoid.

 

So is there a simple way to create app/extension/script that user can install and adds js snippet in thank you page similar as you can add script to order page via settings?

 

Thank you

Replies 4 (4)

1080
Shopify Partner
301 9 66

@NejcZdovc   i was looking same if resolved then share it here

randomdude1
Shopify Partner
5 0 1

Did you get to know how to inject scripts on thank you page after shopify has stopped us to use scripttag and asset api? 

NejcB
Shopify Partner
3 0 3

I went with https://shopify.dev/docs/apps/marketing/pixels and worked really good for me.

1080
Shopify Partner
301 9 66

@NejcB  can you please share more detail how to use that ?