No global identifier provided (e.g., gtin, mpn, isbn)

Solved
Irena
Explorer
76 1 13

Hello,

 

Do anyone know how to resolve this issue in the Google Search Console: "No global identifier provided (e.g., gtin, mpn, isbn)"? We use Debut theme.

 

Thanks!

Accepted Solution (1)

Accepted Solutions
Irena
Explorer
76 1 13

This is an accepted solution.

@EmmanuelFlossie, I found your article: https://feedarmy.com/kb/shopify-microdata-for-google-shopping/

Can you please advice? If I'll add the line (colored in red) shown below in the code to the Debut theme product.liquid template will it solve the issue? Thanks!

<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Product",
"@id": {{ canonical_url | append: '#product' | json }},
"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 }},

"gtin12": {{ current_variant.barcode | json }},
{%- if current_variant.sku != blank -%}
"sku": {{ current_variant.sku | json }},
{%- endif -%}
"brand": {
"@type": "Brand",
"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>

View solution in original post

Replies 6 (6)
JonWright
Shopify Partner
772 112 332

@Irenagtin, mpn, isbn are different barcode formats, so it's telling you that it can't find barcodes for those products. Have you added barcodes to the barcode field?

It is just a warning, not an error as such, so if your products don't have barcodes then that's fine. This only really comes into play if you intend on using Google Shopping, Amazon, eBay etc.

If helpful then please Like and Accept Solution

Owner of Neuralcandy Shopify Agency
Irena
Explorer
76 1 13

@JonWright,

 

Yes, we added barcodes (UPC's) to the barcode fields. That's why I am curious why we are getting this error. We were manage to fix other errors in Google Search Console like "Brand" just by fixing the code, however we still haven't found the solution for the "No global identifier provided (e.g., gtin, mpn, isbn)" error. Shopify support also doesn't know how to do that.

JonWright
Shopify Partner
772 112 332

@Irena  Just checked a Debut based site with this tool https://search.google.com/test/rich-results and looks like debut doesn't output the GTIN field as structured data by default, so more code changes are required if it bothers you (as I said it's a warning, not an error).

There is an article here that talks you through how to fix it https://feedarmy.com/kb/shopify-microdata-for-google-shopping/ 

If helpful then please Like and Accept Solution

Owner of Neuralcandy Shopify Agency
Irena
Explorer
76 1 13

This is an accepted solution.

@EmmanuelFlossie, I found your article: https://feedarmy.com/kb/shopify-microdata-for-google-shopping/

Can you please advice? If I'll add the line (colored in red) shown below in the code to the Debut theme product.liquid template will it solve the issue? Thanks!

<script type="application/ld+json">
{
"@context": "http://schema.org/",
"@type": "Product",
"@id": {{ canonical_url | append: '#product' | json }},
"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 }},

"gtin12": {{ current_variant.barcode | json }},
{%- if current_variant.sku != blank -%}
"sku": {{ current_variant.sku | json }},
{%- endif -%}
"brand": {
"@type": "Brand",
"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>

View solution in original post

Irena
Explorer
76 1 13

UPDATE: I just tried out my suggested solution from above and the error on GSC disappeared, so I guess it works.

EmmanuelFlossie
Shopify Partner
1228 65 288

Glad my article could help, and yes as long as you have barcodes, that line of code is correct.

I'm a Google Shopping Specialist and a Google Ads Diamond Product Expert (Only 9 Google Ads Diamond Experts in the world!), also I'm a Google Premier Partner
. Need Premium Data Feed Management Support? Get in touch.