Shopify APP programmatically add <noscript&gt; to shop active theme

Shopify Partner
8 1 1

Hey Shopify team and community! @Shopify 

We are a fraud and bot analytics app and in order to better analyze bots we need to be able to inject the 

<noscript> tag into the Shopify Theme of the shops that installed our app.


What is the most effective way to do it programmatically?



Reply 1 (1)

Shopify Partner
18 0 1


you can retrieve the theme code (GET) and modify it (PUT) by adding the noscript tag here or create a script tag (POST) and add the noscript tag (with javascript) when installing the application here