Duplicate Script Tags After App Reinstallation

Duplicate Script Tags After App Reinstallation

Deepaksharma023
Shopify Partner
5 0 0

I hope this message finds you well. I am reaching out regarding an issue we have encountered when uninstalling and reinstalling an app on our Shopify store.

After uninstalling the app, we noticed that the script tag added by the app does not get removed. Additionally, when we reinstall the app, the script tag is added again, resulting in duplicate script tags on our store.

Could you please assist us in resolving this issue? Specifically, we would like to ensure that the script tag is fully removed upon uninstall and that no duplicates are added when the app is reinstalled.

Any guidance or support you can provide would be greatly appreciated.

Thank you in advance for your help!

Replies 3 (3)

htmlBurger
Shopify Partner
83 7 20

Hello,

If the app modifies code during installation or uninstallation, you'll need to reach out to the app developers, as they are the only ones who can address and fix this process.

Regarding the duplication, if you know which file contains the added script, your best option is to manually remove it.

Found this helpful? Like and accept as solution to help others too!
htmlBurger – Founded in 2007, Shopify experts for 10+ years.
Custom themes, UI/UX design, ongoing maintenance & support.
Let's talk: ecom@htmlburger.com
Deepaksharma023
Shopify Partner
5 0 0

Yes, you're right. The issue on January 22nd and 23rd was that the script tag registered by the app token was not removed after uninstalling the app. After reinstalling, the script was registered again using the refresh token. This caused the front-end script to be added multiple times in the theme.

Now, this issue has been fixed. I believe it was related to Shopify, but everything is working smoothly now.

htmlBurger
Shopify Partner
83 7 20

Great! I'm happy I was able to help. I'd really appreciate it if you could accept the answer as a solution. 

Found this helpful? Like and accept as solution to help others too!
htmlBurger – Founded in 2007, Shopify experts for 10+ years.
Custom themes, UI/UX design, ongoing maintenance & support.
Let's talk: ecom@htmlburger.com