Add <head> code using assets endpoint

anurag5
New Member
3 0 0

Hi,

I want to add <meta> tags using my Shopify app by leveraging the assets API endpoint.

However, this seems super intrusive and I want to avoid modifying the theme.liquid file. 

I can't leverage ScriptTag because <meta> is SEO tag and Google won't necessarily execute it when fetched via GoogleBot.

Is there any other way to add the <meta> tag?

0 Likes
CalD
Shopify Staff
Shopify Staff
91 8 12

Hey @anurag5,

 

Similar post here (but with JS). It seems like you won't be able to only send in the bits and pieces of information that you need to add, you'll need to modify the theme.liquid file in the manner you mentioned, insert the <meta> tags, then PUT your updated file.

CalD | Developer Support @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog