How to add <meta> tags dynamically?

How to add <meta> tags dynamically?

sam1905
New Member
4 0 0

I have an app and for it to work as I want to, I need to add <meta> tags to the customer's website. How do I do that? I have only found metafields, but it doesn't seem to be the right thing. Is there an API that I can use to edit a customer's head?

 

Edit: I know how to edit my own website's meta tags, but I want my app to be able to add meta tags dynamically. For example: someone installs my app. my app then should add 

<meta name="description" content="somethig.">

to their shopify website. How can I add that meta tag into their head?

Replies 2 (2)

yogesh95
Shopify Partner
2 0 0

Hi there

 

follow this article, this will help you

 

https://www.hostpapa.in/knowledgebase/add-meta-tags-website/

 

Thanks

sam1905
New Member
4 0 0

This is how I can change my own meta tags, but I want my app to be able to change the meta tags of the store it was installed on.