How can I add my brand/sku/mpn to my product ratings feed to Google?

How can I add my brand/sku/mpn to my product ratings feed to Google?

Libertad
Visitor
2 0 1

Since I don't have a GTIN for my product, Google said my review feed would "perform" better if I add that I one or all of brand/sku/mpn. (FYI-I'm using Multifeeds for Google Shopping as the app for the feed). 

 

Shopify Support suggested the following code to be placed in the product.liquid file after the text"Liquid error: This liquid context does not allow includes."

 

{% if product.vendor %}
<g:brand>{{ product.vendor | escape }}</g:brand>
{% endif %}
{% if product.variants.first.sku %}
<g:mpn>{{ product.variants.first.sku | escape }}</g:mpn>
{% endif %} 
This code will add the brand information to the product feed using the "vendor" field in your Shopify product settings. It will also add the SKU information using the "sku" field in your product variants.

 

However, my theme (Parallax by Out of the Sandbox) does not have this text in that file. Is there another place to put the code?

 

 

Replies 3 (3)

EmmanuelFlossie
Shopify Partner
3383 258 817

If you are using the multifeed app, then reviews can be connected in the app, check the settings when you scroll lower.

 

With regards to Shopify example, that is XML coding, and does not belong on a product page.

Get in touch with Emmanuel: a Google Shopping Specialist, Google Ads Diamond Product Expert, and also a a Google Product Expert Education 2021 & Tailwind 2023 Award winner.
Need Google Merchant Center or Google Shopping support?.

ACUK
New Member
6 0 0

Did you get a solution to this?, I have a similar issue I need my mpn to be the same as my sku for my review feed. 

EmmanuelFlossie
Shopify Partner
3383 258 817

If you can not add the SKU value in your data feed, then I guess you are using the Google and youtube app. So if adding the SKU to the MPN attribute is needed, I recommend using: https://apps.shopify.com/multiple-google-shopping-feeds

 

Alternatively, you could also add a spreadsheet to add the MPN value.

Get in touch with Emmanuel: a Google Shopping Specialist, Google Ads Diamond Product Expert, and also a a Google Product Expert Education 2021 & Tailwind 2023 Award winner.
Need Google Merchant Center or Google Shopping support?.