Products didn’t publish to Google

HeatherLoveLogs
New Member
2 0 1

Hi guys

I keep randomly getting the error message that some of my products didn't publish to Google because 'Product price doesn't match the price on your product landing page'. They're all products that come in different sizes so I wonder whether Google is getting confused with that. Has anyone else had this problem and how have you fixed it?

 

Thanks

Heather

ShahzadGohar
New Member
2 0 0

Hi, I am facing the same issue did you resolve it?

0 Likes
HeatherLoveLogs
New Member
2 0 1

No I haven't - it shows a different number of products not published daily

 

0 Likes
ESC
Shopify Partner
4 0 5

Hi @HeatherLoveLogs 

I had the same problem and I think it has to do with products that don't have an "SKU".

I assigned some internal SKUs today and the products are under review.

I think it has to do with this part of the templates/product.liquid code:

<script type="application/ld+json">
{
  "@context": "http://schema.org/",
  "@type": "Product",
  "name": {{ product.title | json }},
  "url": {{ shop.url | append: product.url | json }},
  {%- if product.featured_media -%}
    {%- assign media_size = product.featured_media.preview_image.width | append: 'x' -%}
    "image": [
      {{ product.featured_media | img_url: media_size | prepend: "https:" | json }}
    ],
  {%- endif -%}
  "description": {{ product.description | strip_html | json }},
  {%- if current_variant.sku != blank -%}
    "sku": {{ current_variant.sku | json }},
  {%- endif -%}
  "brand": {
    "@type": "Thing",
    "name": {{ product.vendor | json }}
  },
  "offers": [
    {%- for variant in product.variants -%}
      {
        "@type" : "Offer",
        {%- if variant.sku != blank -%}
          "sku": {{ variant.sku | json }},
        {%- endif -%}
        "availability" : "http://schema.org/{% if variant.available %}InStock{% else %}OutOfStock{% endif %}",
        "price" : {{ variant.price | divided_by: 100.00 | json }},
        "priceCurrency" : {{ cart.currency.iso_code | json }},
        "url" : {{ shop.url | append: variant.url | json }}
      }{% unless forloop.last %},{% endunless %}
    {%- endfor -%}
  ]
}
</script>

Notice how there are 2 IF statements arround the SKUs, making google confused about what variant it is crawling if there are no SKUs to match.

Could you check if your products have the same issue? (No SKU)

0 Likes