magento2 icon indicating copy to clipboard operation
magento2 copied to clipboard

Google search console reports missing field "image" & "description" in Merchant Listings

Open cptX opened this issue 1 year ago • 29 comments

Preconditions and environment

  • Magento version 2.4.6

Steps to reproduce

Google Search Console reports missing field "image" & "description" in Merchant Listings.

If I visit a product page, meta name="description", meta property="og:image" and meta property="og:description" tags are correctly appearing in the head. But I suppose google reports warning because tags

meta itemprop="image" and meta itemprop="description" are missing. Shouldn't these fields also be populated automatically? google_search_invalid

Expected result

Tags meta itemprop="image" and meta itemprop="description" should also be available in the HEAD in order for Google Seach Console to not consider them invalid pages...

Actual result

Google Seach Console considers the product pages invalid in Merchant Listings

Additional information

No response

Release note

No response

Triage and priority

  • [ ] Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • [ ] Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • [X] Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • [ ] Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • [ ] Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

cptX avatar May 12 '23 22:05 cptX

Hi @cptX. Thank you for your report. To speed up processing of this issue, make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, Add a comment to the issue:


Join Magento Community Engineering Slack and ask your questions in #github channel. :warning: According to the Magento Contribution requirements, all issues must go through the Community Contributions Triage process. Community Contributions Triage is a public meeting. :clock10: You can find the schedule on the Magento Community Calendar page. :telephone_receiver: The triage of issues happens in the queue order. If you want to speed up the delivery of your contribution, join the Community Contributions Triage session to discuss the appropriate ticket.

m2-assistant[bot] avatar May 12 '23 22:05 m2-assistant[bot]

Is there a quick/temporary fix I can use for this issue until there's an official fix?

pinkstond avatar Jun 19 '23 13:06 pinkstond

I can confirm that this issue is present on my Magento instances on both 2.3.x and 2.4.x

nicolasbachmaier avatar Jun 21 '23 09:06 nicolasbachmaier

HI guys, same trouble. Has anyone a solution?

Brumagin avatar Aug 02 '23 13:08 Brumagin

i found out that the itemprop image code is missing in html code of product page. Using google code tester i can make it work adding such a thing:

IMAGE
https://blablablabla.jpg

Now, which file is responsible to generate this and should be modified in APP of magento?

Brumagin avatar Aug 02 '23 13:08 Brumagin

hmm well, my code was modified by the github system :)

Brumagin avatar Aug 02 '23 14:08 Brumagin

As far as I can tell, Google have only recently started auto-detecting merchant listings, whereas previously you had to submit these, with only product listings being detected automatically. https://developers.google.com/search/blog/2022/09/merchant-listings

Magento's code has valid schema for products (well, since 2.4). However, it lacks the required image markup for valid merchant listings.

I'd agree that this image field needs adding, as this is going to be a requirement of most shops now that Google have changed how this works.

ricomonkeon avatar Aug 08 '23 14:08 ricomonkeon

so right now there is no solution? Even with addon?

Brumagin avatar Aug 08 '23 18:08 Brumagin

Not that I know of. Google only seem to have fully rolled that out since the last version of Magento was released.

You could probably write a template override for module-catalog\view\frontend\templates\product\view\gallery.phtml (I think) so that the appropriate tag appears on the image. However, I'd personally wait until there's an official fix.

Google haven't said that Google Merchant Centre will stop working as a way to submit your products for merchant listing status, so continue doing it that way if you require that functionality. If you didn't do that before, then it should make no difference to how your site appears.

ricomonkeon avatar Aug 08 '23 18:08 ricomonkeon

Hello, I await answers of some module creators cause their test website are passing google search console test with no errors. This means it is possible to sort this with a module :)

Brumagin avatar Aug 11 '23 12:08 Brumagin

@magento give me 2.4-develop instance

engcom-Delta avatar Sep 22 '23 07:09 engcom-Delta

Hi @engcom-Delta. Thank you for your request. I'm working on Magento instance for you.

Hi @engcom-Delta, here is your Magento Instance: https://51464d7566f1c2dc1df17fa9b17dc118.instances-prod.magento-community.engineering Admin access: https://51464d7566f1c2dc1df17fa9b17dc118.instances-prod.magento-community.engineering/admin_cbe7 Login: 781227ae Password: a40e1a648482

Hi guys, there was a solution to that problem, using a third party module. I used the one of Weltpixel and with some debug of them and my assistance, their last version solved it.

Brumagin avatar Sep 22 '23 07:09 Brumagin

@magento give me 2.4-develop instance

engcom-Hotel avatar Sep 25 '23 09:09 engcom-Hotel

Hi @engcom-Hotel. Thank you for your request. I'm working on Magento instance for you.

Hi @engcom-Hotel, here is your Magento Instance: https://51464d7566f1c2dc1df17fa9b17dc118.instances-prod.magento-community.engineering Admin access: https://51464d7566f1c2dc1df17fa9b17dc118.instances-prod.magento-community.engineering/admin_0b85 Login: 4cc7eaaf Password: eaec51ec3a8b

@magento give me 2.4-develop instance

engcom-Dash avatar Sep 26 '23 08:09 engcom-Dash

Hi @engcom-Dash. Thank you for your request. I'm working on Magento instance for you.

Hi @engcom-Dash, here is your Magento Instance: https://51464d7566f1c2dc1df17fa9b17dc118.instances-prod.magento-community.engineering Admin access: https://51464d7566f1c2dc1df17fa9b17dc118.instances-prod.magento-community.engineering/admin_8435 Login: 05746f56 Password: 06d568b3fe05

Hi guys, there was a solution to that problem, using a third party module. I used the one of Weltpixel and with some debug of them and my assistance, their last version solved it. @Brumagin I'm having this issue with google reporting missing image fields on my products. Which Weltpixel extension solved your issue?

trevstar72 avatar Jan 10 '24 14:01 trevstar72

Hi, That one :

https://www.weltpixel.com/magento2-google-rich-cards-free-extension.html

De : trevstar72 @.*** Envoyé : mercredi 10 janvier 2024 15:47 À : magento/magento2 @.> Cc : Magintec @.>; Comment @.***> Objet : Re: [magento/magento2] Google search console reports missing field "image" & "description" in Merchant Listings (Issue #37497)

Hi guys, there was a solution to that problem, using a third party module. I used the one of Weltpixel and with some debug of them and my assistance, their last version solved it.

I'm having this issue with google reporting missing image fields on my products. Which Weltpixel extension solved your issue?

— Reply to this email directly, view it on GitHubhttps://github.com/magento/magento2/issues/37497#issuecomment-1884987971, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BBVT3N2XC4JPVS5RPKSLWM3YN2SWFAVCNFSM6AAAAAAYABPGG6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBUHE4DOOJXGE. You are receiving this because you commented.Message ID: @.@.>>

Brumagin avatar Jan 10 '24 14:01 Brumagin

Hi @engcom-Dash. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

    1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
    1. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
    1. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
    1. Verify that the issue is reproducible on 2.4-develop branch
      Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
      - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
      - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!

m2-assistant[bot] avatar Jan 18 '24 13:01 m2-assistant[bot]

Hi @cptX

Thanks for reporting and collaboration.

Can you please provide the detailed steps to reproduce inorder to reproduce the issue.

Thanks

engcom-Dash avatar Jan 18 '24 13:01 engcom-Dash

Hi @engcom-Dash there is no point in adding any more information about this. Please read my description carefully and you will understand the issue.

cptX avatar Jan 18 '24 15:01 cptX

Hi @engcom-Bravo. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

  • [ ] 1. Verify that issue has all the required information. (Preconditions, Steps to reproduce, Expected result, Actual result).
  • [ ] 2. Verify that issue has a meaningful description and provides enough information to reproduce the issue.
  • [ ] 3. Add Area: XXXXX label to the ticket, indicating the functional areas it may be related to.
  • [ ] 4. Verify that the issue is reproducible on 2.4-develop branch
    Details- Add the comment @magento give me 2.4-develop instance to deploy test instance on Magento infrastructure.
    - If the issue is reproducible on 2.4-develop branch, please, add the label Reproduced on 2.4.x.
    - If the issue is not reproducible, add your comment that issue is not reproducible and close the issue and stop verification process here!
  • [ ] 5. Add label Issue: Confirmed once verification is complete.
  • [ ] 6. Make sure that automatic system confirms that report has been added to the backlog.

m2-assistant[bot] avatar Jan 19 '24 13:01 m2-assistant[bot]

Hi @cptX,

By referring this https://developers.google.com/search/blog/2022/09/merchant-listings We are considering this as a feature request as improvement to proceed further.

Thanks.

engcom-Bravo avatar Jan 30 '24 11:01 engcom-Bravo

We are also encountering the same error in Rich Snippets:

Missing field "image"

I believe this should be standard and available in the core.

MagePsycho avatar Apr 24 '24 06:04 MagePsycho

As a quick fix you can edit vendor/magento/module-catalog/view/frontend/templates/product/view/opengraph/general.phtml (or copy the file to your theme)

Replace : <meta property="og:image" content="<?= $block->escapeUrl($block->getImage($block->getProduct(), 'product_base_image')->getImageUrl()) ?>" />

with :

<meta itemprop="image" property="og:image" content="<?= $block->escapeUrl($block->getImage($block->getProduct(), 'product_base_image')->getImageUrl()) ?>" />

loic-paquin avatar Jun 28 '24 07:06 loic-paquin