The issue with scriptTag not being removed from Online Store

Hello all,

I am encountering a serious problem and would greatly appreciate your support.

My app uses scriptTag to provide features for the online stores. Everything was functioning normally until today, when I accidentally discovered that after performing the delete operation scriptTag, but the scriptTag still appears in the store’s code, despite the delete command being successfully executed.

I verified that the delete operation worked, as I checked the existing ScriptTags, and they have indeed been removed.

I am using the GraphQL Admin API for interaction and have set cache = true with displayScope = "ONLINE_STORE".

I really hope to receive assistance with this issue. Thank you!

4 Likes

We too have discovered this problem. We opened a support ticket with Shopify and hope to hear back by tomorrow.

+1 we are facing similar issue too

Tried both GraphQL and rest API and the issue persists in both

Hey folks - thanks for flagging this, is it only scriptTags that were active on the online store (and not checkout) that are experiencing this?

I’m uncertain about the checkout. I exclusively work with the Online Store. Many developers have also reported the issue that even after uninstalling the app, the Scripttag remains on the store.

Are you using the scriptTagDelete mutation?

Yes, I used it. I also tried using the REST API, but it still had no effect.

Yes it is only script tag API. As others mentioned both graphql and rest seems to have this issue.

Same noticed here, when deleting script tags via GraphQL or Rest they appear deleted but on the Store they are still there

2 Likes

Thanks for the extra details - have connected with the relevant product team on this.

2 Likes

Hi @Liam-Shopify,

I wanted to add that we’ve currently dealing with stores where our script tags (and other apps script tags) are not being purged from their store after the app is uninstalled.

A merchant who is experiencing this has been told by Shopify Support that our app modified their theme and is leaving code in their theme after uninstall, which is not the case, and it’s causing a lot of confusion.

(Our app is BFS and only uses theme app embed and script tags on a number of legacy installs).

I believe these two issues may be related?

Update: our devs has identified the issue that’s preventing script tags from being fully removed and are working on a fix currently.

2 Likes

@Liam-Shopify, thanks for the update. On a side note, is this the official channel to report these kinds of issues now?

We have a ticket open with Partner Support for 30 hours now and not a word yet. Between the community forum, Partner Support and Slack the process is unclear and we spend a lot of time trying to get proper attention to a high-severity issue with merchant impact.

I understand triaging stuff is tough and there’s a lot of spam everywhere but there are times when several Partners are sure that there’s an important ongoing issue and spent many hours debugging it. It would be in both favor of Shopify and Partners if there was a clear way to get attention on those cases.

We have received numerous complaints from customers regarding these issues. Some features in our applications are not functioning as expected because the old scriptTag was not removed. This could lead to negative reviews, which would be detrimental to us :cold_sweat:

I believe that a fix has been or is being deployed now. We are no longer seeing old scripts for most affected merchants.

1 Like

Yes! It seems to be working well now.

Update: A fix for this was shipped on Thursday.

Hi @nunof

You can flag API bugs on this community or to our direct Partner Support team via your partner dashboard. I wouldn’t recommend flagging bugs on the Partner Slack, as it’s not used very much by product teams or support.