Java Script on order confirmation page

Highlighted
New Member
2 0 0

Hi

I am building an app that needs to track referel info add the info to shopify cookie 

 

and retrieve the info on the order "thank you" page.

 

This is not for shopify plus.

 

I know Js can be added to Settings > Checkout > Order processing > Additional scripts

 

but this is for an app.

 

It seems that shopify does have some capability to do this, since google and Facebook conversion tracking works. 

 

any help on how to have my app add a tracking pixel to the order confirmation page?

 

or have it added to the order meta and retrieve it?

 

Thanks

0 Likes
Highlighted
Shopify Staff
Shopify Staff
587 71 128

Hey @KnowZero,

 

You can use the order status javascript asset with a scriptTag to render your own Javascript on the order status page. This doc has more information about the order status js asset, and this doc shows how you can use a ScriptTag to render this on only the order status page.

JB | Developer Support @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Click Accept as Solution 

0 Likes