Shopify API to inject HTML and JavaScript Code Snippets

6 0 1

Hello, I am developing a Shopify App with following requirements.

  1. User installs the Shopify App from the shopify app store.
  2. User clicks on the app in his/her store, then it displays a textarea.
  3. User enters html and JavaScript code snippets and clicks on Save button.
  4. The html code which is <link> tag get injected in the <head> section, and the JavaScript code snippets get appended at the end of <body> tag of the Storefront.

Is there such Shopify API to accomplish above task?

Thank you,