Skip to main content

Json-LD for Google shopping

Guideline for SEO apps and SEO customizations. Effortlessly Optimize Your Product Data for Google Shopping with LAI's Json-LD Integration

This document provides a clear instruction for using Json-LD from LAI to deliver data from websites to search crawlers like Google bot.

Use this Json-LD code to deliver products’ rating value and reviews information to promote search results:

{% assign countAverage = product.metafields.scm_review_importer.reviewsData.reviewCountInfo.average | plus: 0 %}     {%- if countAverage > 0 %}      "review": {{ product.metafields.scm_review_importer.reviewsData['seoReviews'] }},                "aggregateRating": {                  "@type": "AggregateRating",                  "ratingValue": "{{ product.metafields.scm_review_importer.reviewsData.reviewCountInfo.average }}",                  "ratingCount": "{{ product.metafields.scm_review_importer.reviewsData.reviewCountInfo.total }}"                },          {%- endif -%} 

This code can be used to integrate LAI Product Reviews with SEO apps or to customize SEO in accordance with current themes.

caution

When you use our Json-LD, Google may warn you that there are 2 Json-LD codes about reviews, one of which has been provided by LAI Product Reviews.

To avoid this warning, LAI Product Reviews has an option to remove auto-filling Json-LD. Please following the below instruction.

Please log in to LAI Product Reviews, go to Settings -> Display -> Deselect “Use JsonLD”

img1

If you have any troubles following the instruction, please contact us via [email protected]