SEO, AdWords, affiliates, advertising, and promotions
Hello, all I am working on a website (https://perfumeplusoutlet.com/). I have questions related to Website Collection SEO. I am looking to add a custom Schema for the product, to improve the visibility but found no such option. I am using SEO Manager to make SEO-related changes. I have implemented the Local business structured data. But need to add Product schema for all the products. I have approximately 1400 products in my what will be efficient way to add product schema. Also please recommend what features to consider when creating product schema or anyone please provide scheme they have implemented on the store.
Hi @shahzaibahsan3,
I think the easiest way to add product schema is to add a piece of code:
1. In your Shopify admin, click Edit code. Then, create a new file under Snippets (Add a new snippet). Then, insert the following piece of code. Name it as product-schema.liquid and save it,
<script type=’application/ld+json’>
{
“@context”: “http://schema.org/”,
“@type”: “Product”,
“name”: “{{ product.title }}”,
“url”: “{{ shop.url }}{{ product.url }}”,
“image”: “{{ shop.url }}{{ product.featured_image }}”,
“description”: “{{ page_description }}”,
“offers”: {
“@type”: “Offer”,
“priceCurrency”: “{{ shop.currency }}”,
“price”: “{{ product.price | money_without_currency }}”,
“itemCondition”: “http://schema.org/NewCondition”,
“availability”: “http://schema.org/InStock”
}
}
</script>
2. Go to your main product file (something like product-template.liquid, product-main.liquid...) and paste at the end of the file this: {% include ‘product-schema’ %}
3. I would also double check with Google what are the compulsory fields – their documentation isn't updated!!! Plus, I would also test the products' URLs with this tool: https://validator.schema.org. It will tell you if there are any errors or fields missing.
Hope this helps!
Hi @Niki_K appreciate your insights. Can you however add ratings and reviews schema in the code above? It seems to be missing them.
Hey @marketingwiz,
you will probably need to add something like this:
"review": {
"@type": "Review",
"reviewRating": {
"@type": "Rating",
"ratingValue": "{{ product.rating }}",
"bestRating": 5
},
"author": {
"@type": "Person",
"name": "{{ product.author }}"
},
"reviewBody": "{{ product.review }}"
Hey Niki,
Sorry for such a stupid question, do i put the review code underneath the initial code you posted? I really need some help with this lol
Hey @GotheeCoffee,
The entire code block should look like this:
<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Product",
"name": "{{ product.title }}",
"url": "{{ shop.url }}{{ product.url }}",
"image": "{{ shop.url }}{{ product.featured_image | img_url }}",
"description": "{{ page_description }}",
"offers": {
"@type": "Offer",
"priceCurrency": "{{ shop.currency }}",
"price": "{{ product.price | money_without_currency }}",
"itemCondition": "http://schema.org/NewCondition",
"availability": "http://schema.org/InStock"
},
"review": {
"@type": "Review",
"reviewRating": {
"@type": "Rating",
"ratingValue": "{{ product.rating }}",
"bestRating": 5
},
"author": {
"@type": "Person",
"name": "{{ product.author }}"
},
"reviewBody": "{{ product.review }}"
}
}
</script>
Hope this helps!
Hi @Niki_K
Do we need to apply the same process to update multiple product schema, means everytime i need to press add a new snippet and paste the code for multiple products, or there is another process?
Hi @fuzailanwar,
Sorry for a bit later response. I'm not sure if I understand your question correctly – this piece of code is added to a product template, which means that it's applied to all of your products. Is this what you're looking for?
Hello,
Below I have mentioned some steps, it will help to add schema for all your products.
1. Login to your Shopify Store.
2 . Scroll down and go to themes > edit your theme
3. Go to snippets folder and add a new snippet and name it “product-schema.liquid”
Copy below code:
[code]
<script type=’application/ld+json’>
{
“@context”: “http://schema.org/”,
“@type”: “Product”,
“name”: “{{ product.title }}”,
“url”: “{{ shop.url }}{{ product.url }}”,
“image”: “{{ shop.url }}{{ product.featured_image }}”,
“description”: “{{ page_description }}”,
“offers”: {
“@type”: “Offer”,
“priceCurrency”: “{{ shop.currency }}”,
“price”: “{{ product.price | money_without_currency }}”,
“itemCondition”: “http://schema.org/NewCondition”,
“availability”: “http://schema.org/InStock”
}
}
</script>
[/code]
5. Go to the product.liquid file, scroll down to the end of the page and paste this code.
Also, you can install the below chrome extension to check your website pages schema optimization.
https://chrome.google.com/webstore/detail/schema-builder-tester-for/klohjdodjjeocpbpadmkcndjoadijgjg
Below, I have shared the screenshot for one of the product’s from your website, you can use the schema builder tool (download from the above link), it will help to check for the schema tag optimization.
Pro Tip - You can also test your product URLs with this tool - https://validator.schema.org/. It will tell you if there are any missing fields (including errors).
>>Points to consider when creating a product schema -
If you are willing to add schema through Shopify App, here is the link - https://apps.shopify.com/schema-plus
Thanks for the information!
It is very helpful,
I'm working on a project and have some issues combining the schemas with a plugin that inject their own schema, judge.me
the shop is https://alchemistabrew.com/
any suggestions on what to do when there is more then one source of the product schema?
Hi @SrStas ,
This is Gabriela from the Judge.me support team 🙂
Since the issue is quite specific depending on your current product schema, could you please reach out to us via email at support@judge.me or via our live chat? You can find the chat icon at the bottom right corner of your Judge.me admin. We can then provide you more specific assistance for the issues you are experiencing.
You can also check the guides below for more information about common rich snippet issues.
- Troubleshooting for SEO rich snippets
- Fixing rich snippet error and warnings
Please feel free to reach out to us at any time, our support team is available 24/7!
Hi,
Schema can indeed increase the attractiveness and visibility of your website.
I see that your product has a review star , which is attractive to users.
I checked your website and you currently have 3 schemas.
2 of them have warnings. You can pay attention to this.
Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024Hey Community! It’s time to share some appreciation and celebrate what we have accomplis...
By JasonH Nov 14, 2024