1
{
  "@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"
  }
}
  1. Tested the JSON-LD code independently: When pasting the JSON-LD directly, Google's tool validates it and recognizes rich results.

  2. 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' %}.

  3. 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:

  1. I expected the JSON-LD code to be embedded successfully into my Shopify store, so that:

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

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.