Google Search Console

Solved

Google Search Console

YoavC
New Member
13 0 0

Hello Shopify Community,

 

Google Search Console has identified some issues with my item appearance:

- Missing field "hasMerchantReturn Policy" in ("offers")

- Missing field "shippingDetails" (in "offers")

- Missing field "availabiltiy" (in "offers")

- Missing field "descripition"

 

I suspect these are issues that can be fixed by providing structure data but I don't how to include it in my code and where to include it. Can anyone advise? Thank you in advance.

 

 

Accepted Solution (1)

Yvonne_Yoast
Shopify Partner
80 2 4

This is an accepted solution.

Hi @YoavC

 

Our Yoast Shopify app helps you output some of the missing schemas on your products such as: product description and availability. It offers a 14 day trial period that you can test on your store and see the difference. You can read more about it here: Yoast SEO Shopify: Schema output

 

For other missing schemas, you might want to consult Shopify's documentation or seek help from a developer experienced with Shopify and structured data for detailed guidance on how to implement it on your products. 

 

Here are some steps to address the issues identified by Google Search Console regarding your product structured data in your Shopify store. Please keep in mind that below are just example codes of how the schema looks like.

 

Missing field 'availability'

The availability field is crucial for informing Google about the stock status of your product. You can add this field using the following values:

  • InStock
  • OutOfStock
  • PreOrder

For example, you can add the following structured data to your product pages:

{
  "@context": "https://yoast.com/app/uploads/2021/05/fender_mustang_jmj_bass_rich_result-600x126.png",
  "@type": "Product",
  "name": "Your Product Name",
  "offers": {
    "@type": "Offer",
    "availability": "https://yoast.com/app/uploads/2021/05/fender_mustang_jmj_bass_rich_result-600x126.pngInStock"
  }
}

 

Missing field 'hasMerchantReturnPolicy'

The hasMerchantReturnPolicy field provides information about your return policy. You can include it as follows:

{
  "@context": "https://yoast.com/app/uploads/2021/05/fender_mustang_jmj_bass_rich_result-600x126.png",
  "@type": "Product",
  "name": "Your Product Name",
  "offers": {
    "@type": "Offer",
    "hasMerchantReturnPolicy": {
      "@type": "MerchantReturnPolicy",
      "url": "https://yoast.com/app/uploads/2021/05/fender_mustang_jmj_bass_rich_result-600x126.png"
    }
  }
}

 

Missing field 'shippingDetails'

The shippingDetails field provides information about shipping options. You can include it as follows:

{
  "@context": "https://yoast.com/app/uploads/2021/05/fender_mustang_jmj_bass_rich_result-600x126.png",
  "@type": "Product",
  "name": "Your Product Name",
  "offers": {
    "@type": "Offer",
    "shippingDetails": {
      "@type": "OfferShippingDetails",
      "shippingRate": {
        "@type": "MonetaryAmount",
        "value": "5.00",
        "currency": "USD"
      },
      "deliveryTime": {
        "@type": "ShippingDeliveryTime",
        "businessDays": {
          "@type": "OpeningHoursSpecification",
          "dayOfWeek": [
            "https://yoast.com/app/uploads/2021/05/fender_mustang_jmj_bass_rich_result-600x126.pngMonday",
            "https://yoast.com/app/uploads/2021/05/fender_mustang_jmj_bass_rich_result-600x126.pngTuesday"
          ],
          "opens": "08:00",
          "closes": "18:00"
        }
      }
    }
  }
}

 

Missing field 'description'

The description field provides a textual description of your product. You can include it as follows:

{
  "@context": "https://yoast.com/app/uploads/2021/05/fender_mustang_jmj_bass_rich_result-600x126.png",
  "@type": "Product",
  "name": "Your Product Name",
  "description": "A detailed description of your product."
}

 

Where to Include This Code in Shopify

  1. Edit Theme Code: Go to your Shopify admin panel, navigate to Online Store > Themes, and click on Actions > Edit code.
  2. Locate Product Template: Find the product template file, usually named product.liquid or similar, under the Templates or Sections folder.
  3. Insert Structured Data: Add the structured data JSON-LD script within the <head> section or just before the closing </body> tag of your product template file.
  4. Save Changes: Save the changes and test your product pages using Google's Rich Results Test tool to ensure the structured data is correctly implemented.

 

Again, I strongly recommend to seek help from a developer experienced with Shopify and structured data before implementing this to your store. 

View solution in original post

Replies 5 (5)

Yvonne_Yoast
Shopify Partner
80 2 4

This is an accepted solution.

Hi @YoavC

 

Our Yoast Shopify app helps you output some of the missing schemas on your products such as: product description and availability. It offers a 14 day trial period that you can test on your store and see the difference. You can read more about it here: Yoast SEO Shopify: Schema output

 

For other missing schemas, you might want to consult Shopify's documentation or seek help from a developer experienced with Shopify and structured data for detailed guidance on how to implement it on your products. 

 

Here are some steps to address the issues identified by Google Search Console regarding your product structured data in your Shopify store. Please keep in mind that below are just example codes of how the schema looks like.

 

Missing field 'availability'

The availability field is crucial for informing Google about the stock status of your product. You can add this field using the following values:

  • InStock
  • OutOfStock
  • PreOrder

For example, you can add the following structured data to your product pages:

{
  "@context": "https://yoast.com/app/uploads/2021/05/fender_mustang_jmj_bass_rich_result-600x126.png",
  "@type": "Product",
  "name": "Your Product Name",
  "offers": {
    "@type": "Offer",
    "availability": "https://yoast.com/app/uploads/2021/05/fender_mustang_jmj_bass_rich_result-600x126.pngInStock"
  }
}

 

Missing field 'hasMerchantReturnPolicy'

The hasMerchantReturnPolicy field provides information about your return policy. You can include it as follows:

{
  "@context": "https://yoast.com/app/uploads/2021/05/fender_mustang_jmj_bass_rich_result-600x126.png",
  "@type": "Product",
  "name": "Your Product Name",
  "offers": {
    "@type": "Offer",
    "hasMerchantReturnPolicy": {
      "@type": "MerchantReturnPolicy",
      "url": "https://yoast.com/app/uploads/2021/05/fender_mustang_jmj_bass_rich_result-600x126.png"
    }
  }
}

 

Missing field 'shippingDetails'

The shippingDetails field provides information about shipping options. You can include it as follows:

{
  "@context": "https://yoast.com/app/uploads/2021/05/fender_mustang_jmj_bass_rich_result-600x126.png",
  "@type": "Product",
  "name": "Your Product Name",
  "offers": {
    "@type": "Offer",
    "shippingDetails": {
      "@type": "OfferShippingDetails",
      "shippingRate": {
        "@type": "MonetaryAmount",
        "value": "5.00",
        "currency": "USD"
      },
      "deliveryTime": {
        "@type": "ShippingDeliveryTime",
        "businessDays": {
          "@type": "OpeningHoursSpecification",
          "dayOfWeek": [
            "https://yoast.com/app/uploads/2021/05/fender_mustang_jmj_bass_rich_result-600x126.pngMonday",
            "https://yoast.com/app/uploads/2021/05/fender_mustang_jmj_bass_rich_result-600x126.pngTuesday"
          ],
          "opens": "08:00",
          "closes": "18:00"
        }
      }
    }
  }
}

 

Missing field 'description'

The description field provides a textual description of your product. You can include it as follows:

{
  "@context": "https://yoast.com/app/uploads/2021/05/fender_mustang_jmj_bass_rich_result-600x126.png",
  "@type": "Product",
  "name": "Your Product Name",
  "description": "A detailed description of your product."
}

 

Where to Include This Code in Shopify

  1. Edit Theme Code: Go to your Shopify admin panel, navigate to Online Store > Themes, and click on Actions > Edit code.
  2. Locate Product Template: Find the product template file, usually named product.liquid or similar, under the Templates or Sections folder.
  3. Insert Structured Data: Add the structured data JSON-LD script within the <head> section or just before the closing </body> tag of your product template file.
  4. Save Changes: Save the changes and test your product pages using Google's Rich Results Test tool to ensure the structured data is correctly implemented.

 

Again, I strongly recommend to seek help from a developer experienced with Shopify and structured data before implementing this to your store. 

YoavC
New Member
13 0 0

Thank you for the detailed response Yvonne. I can't seem to find the <head> section or the closing </body> tag within my product JSONs scripts (both template product and specific product JSON scripts). The only body I could find is about the text styles. Please see attached. Can you please clarify where these codes should be inserted? I will look at Yoast as well. Thank you in advance.

 

Capture.JPG

Yvonne_Yoast
Shopify Partner
80 2 4

Hi @YoavC

 

I'm sorry, I'm not familiar with your theme or your store so I recommend you reach out to your Theme developer of Shopify expert to help you how to add the schemas to your products. 

I want to point out that even with our Yoast Shopify app, we are aware of this update by Google about the shippingDetails and hasMerchantReturnPolicy but there are still some unanswered questions about this specification, so after careful consideration, we have decided not to support Google’s new returns policy schema at this time. This is mainly because Shopify lack structured inputs for defining returns policies, and creating and managing an entire interface solely for this purpose would be resource-intensive for us.

You or your developer can use this feature to add the required/missing details to the Product Schema . You can also use a different app (if one is available) that supports these schema property types.


Also, these warnings are optional, and though they can be beneficial in addressing them, they are not errors that will penalize your SEO. You can find more details on this topic in this article.

YoavC
New Member
13 0 0

Thank you Yvonne.

Yvonne_Yoast
Shopify Partner
80 2 4

I'm that I can be of help!