Asset API Access Transition To Theme App Extensions

user072319
Shopify Partner
128 0 15

I have a live Shopify app. I am seeing the below message in the API Health section of the app.

 

Shopify Partners 2023-11-21 00-43-26.png

My app uses Assets API to insert Google meta tag and Google Tag Manager (GTM) script tag to the <head> section of client's website. In this case do I need to create a theme extension for the app?

 

The app is an SEO app. There is no UX blocks added by the app.

 

Thanks in advance.

Replies 3 (3)

Lee-Strong-SEO
Shopify Partner
127 19 26

Hi @user072319

 

Yes, you need to transition to an App Extension and set the target to "head". 

 

See: https://shopify.dev/docs/apps/online-store/theme-app-extensions/extensions-framework#app-embed-block...

 

Our Strong SEO app inserts JSON-LD code into websites and we've had to do this too. Once you understand how it works, it's not too hard and the experience for the merchants is improved.

 

Lee

Strong SEO

This simple trick can boost your store to the top of Google - Try it Now
user072319
Shopify Partner
128 0 15

Hi @Lee-Strong-SEO,

 

Thanks for the response. 

 

Still confused. The meta tags added by our app are static to all pages. Then what is the need for theme extension?

Do you know what will happen if we don't create theme extension by 2023 December 31st. Will the app stops working?

Lee-Strong-SEO
Shopify Partner
127 19 26

The theme extension prevents your code from remaining on merchants sites when they uninstall your app. Theme app extensions are automatically removed when the app is uninstalled.

 

Regardless of the reasons, this is the way Shopify are going, so we all need to adapt to it. If you don't update in time, I suspect that your API calls to change theme assets will fail, but you might want to check that with Shopify support.

Strong SEO

This simple trick can boost your store to the top of Google - Try it Now