jennySS
1
Hi Dear Sir/Madam
Previously to improve SEO, each website page will include a tag “keywords” apart of “description” “h1,h2,h3…” and “alt” for example…
But I have checked.. shopify doesn’t have any way to insert this information for pages/products/collections
So I did some research on web and seems “keywords” tag is not useful anymore for SEO?
https://www.semrush.com/blog/meta-keywords/
- Please can someone provide some information ?
- And would like to confirm: is is because “keyword” tags are irrelevant.. is this the reason that’s why shopify will not provide this functionality?
Many thanks!
J
Hi,
Shopify doesn’t have the option for meta keywords. But you can use metafield and liquid to add meta keywords.
Thank,
2 Likes
jennySS
4
Hi,
Could you please give me an example in liquid code how to add for each different product a different meta keyword please?
For example for the Product A:
For example for the Product B:
And need to be in between the head tag, that is located at theme.liquid?
Many Thanks !
J
jennySS
5
Hi,
Could you please give me an example in liquid code how to add for each different product a different meta keyword please?
And need to be in between the head tag, that is located at theme.liquid?
Many Thanks !
J
Hi,
For example:
{%- assign og_meta_keywords_prd = product.metafields.og_meta_keywords.content -%}
{%- if request.page_type == "product" and og_meta_keywords_prd != blank -%}
{{ og_meta_keywords_prd }}
{%- endif -%}
I hope this can help you.
Thank,
jennySS
7
Hi
- Where should I add this code? in which liquid file? at theme.liquid? between “head” tag?
{%- assign og_meta_keywords_prd = product.metafields.og_meta_keywords.content -%} {%- if request.page_type == “product” and og_meta_keywords_prd != blank -%} {{ og_meta_keywords_prd }} {%- endif -%}
-
Where should I add the VALUE of product.metafields,og_meta_keywords.content?
for example if I have Keyword_A1, Keyword_A2 for product A
-
Can I add this for Shopify1.0 and Shopify 2.0?
-
Can add it from each product from the shopify CMS?
Thank you so much for your time
J
Hi,
-
You can edit file theme.liquid and add the code between “head” tag.
-
Please follow document https://help.shopify.com/en/manual/metafields
You can use app: https://apps.shopify.com/metafields-editor-2
-
Support for Shopify1.0 and Shopify 2.0
-
Yes. If you use Shopify 2.0 https://help.shopify.com/en/manual/metafields
Thank,
jennySS
9
Hi
Thank you for your information
- I have added this code at theme.liquid in between
- If I want to show for
How should I add this information here? Please could you guide me a complete flow of an product to add the keywords? (ProductA)
Thank you so much for your help
J
Hi, Please follow my image: https://ibb.co/FKjC7nq
Then you can config in product.
I hope this can help you.
Thank,
2 Likes
jennySS
11
Thank you!
I understand now 
Appreciate your help!
J
1 Like
Thanks Kai for the details.
But by doing the steps the keywords are getting visible on the header.
Also will good be counting these keywords in terms of SEO ?
this will solve the issue on keywords that are visible on the header.
{%- assign og_meta_keywords_prd = product.metafields.og_meta_keywords.content -%}
{%- if request.page_type == "product" and og_meta_keywords_prd != blank -%}
{%- endif -%}