{
"@context": "https://schema.org",
"@type": "Store",
"name": "Mosami",
"url": "https://mosami.in",
"priceRange": "₹₹₹",
"image": "https://mosami.in/images/store-image.jpg",
"telephone": "+91-9078529969",
"address": {
"@type": "PostalAddress",
"streetAddress": "BTM Layout 1st stage",
"addressLocality": "Bangalore",
"addressRegion": "Karnataka",
"postalCode": "567001",
"addressCountry": "IN"
},
"aggregateRating": {
"@type": "AggregateRating",
"ratingValue": "4.6",
"reviewCount": "2000"
},
"returnPolicy": {
"@type": "MerchantReturnPolicy",
"name": "7 Days Return",
"url": "https://mosami.in/pages/refund-policy"
}
}
Tested the JSON-LD code independently: When pasting the JSON-LD directly, Google's tool validates it and recognizes rich results.
Added the code to the Shopify theme: I tried pasting it in the theme.liquid file under the Layout folder, before the closing tag. Also added it in the homepage template file index.liquid under Templates. Created a custom section with the code and added it to theme.liquid using {% section 'json-ld-schema' %}.
After making these changes, I tested my website URL in Google's Rich Results Test tool, but it doesn't detect any structured data.
I expected:
I expected the JSON-LD code to be embedded successfully into my Shopify store, so that:
Google's Rich Results Test tool detects rich results when testing my store's URL. Rich snippets for ratings and return policies appear in Google search results for my store.