Adding a script after install

Chris_Evans
Shopify Partner
2 0 0

Hi all,

I'm building an affiliate tracking app and I was wondering if there's anyway through the API to automate adding a script to the additional scripts section in the checkout settings?  I'm just playing around at the moment and maybe I've got the wrong end of the stick but I'm hoping that when a merchant installs my app, I don't need for them to manually have to go and add scripts - any advice would be really welcomed.

 

Thanks in advance,

 

Chris

0 Likes
smozgur
Excursionist
17 0 6

Yes, you can use ScriptTag for this:

This is only for web storefront and/or order status page. Since you are referring to Additional Scripts section, you can use order_status scope to do that.

0 Likes