What API to use to either add a script tag to <header> on installation or create new page ?

Shopify Partner
24 2 1

I am looking to create an app that will add a simple form either as a widget to a page or as a new page to the store.

What API should I use to either:

1. add a script tag automatically to the <header> of all pages ?

2. automatically create a new page containing the form and add a main menu item linking to said page ?


Coding Shopify Apps. Don't hesitate to contact me through the forum or OPChoice