Structured data / Rich Snippets Automation Help.

16 0 4

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": "",
"@type": "Product",
"name": "Name of the product",
"image": [
"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": "",
"itemCondition": ""
"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"}

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!

16 0 4


Thank you!


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.).


Please refer to our app in Shopify App Store for more details: 

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!!!
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



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

You can use a SEO app (like mine) to generate the JSON LD snippet for you. 

If you want to the no-app way, you'll need to change the product liquid file. 

1. Find out the product detail page liquid file of your theme.

2. Add your JSON LD code snippet into the <head> tag

3. Replace the content value with the liquid code, e.g {{ product.title }} to replace product name

4. Add the liquid filter if necessary, e.g. you may want to strip the product description to remove html

SPO - SEO App to research keywords & edit social link preview
BYOB - Build Your Own Bundles
16 0 4

I already have the code, the problem is that I have to write the code for each of my products and update it etc....
I would love to have a code that automates this.