Structured data / Rich Snippets Automation Help.

Derek09
New Member
9 0 0

Hello everyone, I would like to make my Json-LD
code automatic.
That is to say that instead of rewriting it for all the products 1 by 1, I would like them to do the job for all of them.

The code is for structured data from google/Rich Snippets.
Here is the code I'm using for now:

{% if product.handle contains "The product name after the section: product/Product name" %}
<script type="application/ld+json">
{
"@context": "https://schema.org/",
"@type": "Product",
"name": "Name of the product",
"image": [
"Image1",
"Image2"
],
"description": "The Product Description",
"brand": "The Brand",
"sku": "The Sku",
"gtin13": "None",
"offers": {
"@type": "Offer",
"url": "The Url",
"priceCurrency": "CAD",
"price": "The Price",
"priceValidUntil": "2030-12-30",
"availability": "https://schema.org/InStock",
"itemCondition": "https://schema.org/NewCondition"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "5",
"bestRating": "5",
"worstRating": "1",
"ratingCount": "1",
"reviewCount": "1"
},
"review": {
"@type": "Review",
"name": "The Title",
"reviewBody": "The Description",
"reviewRating": {
"@type": "Rating",
"ratingValue": "5",
"bestRating": "5",
"worstRating": "1"
},
"datePublished": "2021-07-01",
"author": {"@type": "Person", "name": "Person Name"}
}
}
</script>

I would like to put a single code that would say what to do, a template/mode of use in fact.
I know it's not very clear unfortunately.
Thank you for your help!

0 Likes
Derek09
New Member
9 0 0

Up!

Thank you!

0 Likes

Hi @Derek09 ,

If you want to add JSON-LD to all of your pages automatically, you can give a try to our SEO Booster app. With just one click, we will help you add JSON-LD code (also with all the schema code you need like price, reviews, etc.).

SEOBooster_0-1625546310273.png

Please refer to our app in Shopify App Store for more details: https://apps.shopify.com/seo-booster 

If you have any further queries, please feel free to contact us anytime. Have a good day!

SEO Booster - The best Shopify SEO App
- Was our reply helpful? Click Like to let us know!
- Was your question answered? Mark it as an Accepted Solution
Thank you!!!
LovepreetSharma
Shopify Expert
8 1 4

Hello @Derek09 

We can surely make it dynamic, it will automatically render data according to specific product.

Here is the example that how we did it for other merchants.

Skype : preetlove92

lovepreetsharma_0-1625546901912.png

 

Serving eCommerce industry from Last 10+ years
For FREE Guidance, Advice, Strategy, please email at: love @ dcodehq.com
Making eCommerce better with Shopify
0 Likes