Shopify theme extension

I have create an app where I use script tag for modify the merchant’s theme but in the review process I have been told that you have to use shopify theme extension but I have a dynamic script value. This is my script
https://app.closechat.ai/widget/closechat.js?id=abc”
so here value of id is dynamic so how can i do that in theme extension and also how to publish the shopify theme extension

Hi DevDelvadiya,

When you say the value of the id property is dynamic - how many different possible values could it be? Does it adjust at a specific frequency? For apps on the Shopify App Store, if you’re adding JS to a theme, you will need to add the full code to a JS file in the theme app extensions’ /assets directory. There is an intentional limitation here that you cannot load externally hosted JS or JS libraries into apps to ensure that merchants’ stores remain highly performant.

I’d also recommend reading our docs on how to deploy and release theme app extensions.

Hope this helps!