How to stop Apps from adding scripts unless their App Embed is enabled

My theme currently has 0 App embeds enabled and has never had any app add any code to any of its liquid files but whenever I load the theme preview there’s scripts for a bunch of apps that seems to come from nowhere and I need to figure out how to stop it.

There’s scripts for PX Add to Cart, Klaviyo, Bundler, Elfsight Reviews, Judge.Me, Printful, Instafeed, ReConvert, Trust Badges, GoAffPro, FormBuilder, Tabs and Facebook but I don’t have any of these apps enabled on this theme so I have absolutely no idea where this code is coming from or how to get rid of it without uninstalling the apps.

For example, Klaviyo is injecting a script for an old Klaviyo account that we haven’t used in months and is no longer connected to our Shopify store in any way.

Does anyone know where this scripts are coming from or how to stop them?

My tags on this post may not be applicable since I have no clue what is causing this issue, maybe it’s something to do with liquid maybe it’s something to do with Scripts API, I don’t know.

Hi,

We’ve seen your concern regarding the Judge.me app and have responded to you via our official email support. Please check your inbox, and feel free to reach out if you have any further questions.

Best regards,

Followup: I was able to get Klaviyo to stop adding old scripts by uninstalling the app and reinstalling it, now it’s only adding the correct script and only if the app embed is enabled as it should.

Haven’t had time to do testing on the other apps yet