Opened 2 years ago

Closed 2 years ago

#5440 closed change (invalid)

Add breadcrumbs microdata to eyeo websites

Reported by: juliandoucette Assignee:
Priority: P5 Milestone:
Module: Websites Keywords: goodfirstbug
Cc: ire, wspee, saroyanm, lisabielik, jeen Blocked By:
Blocking: Platform: Unknown / Cross platform
Ready: no Confidential: no
Tester: Unknown Verified working: no
Review URL(s):

Description

Background

See https://developers.google.com/search/docs/data-types/breadcrumbs

What to change

Add Microdata to websites with existing breadcrumbs:

<ol itemscope itemtype="http://schema.org/BreadcrumbList">
  <li itemprop="itemListElement" itemscope
      itemtype="http://schema.org/ListItem">
    <a itemscope itemtype="http://schema.org/Thing"
       itemprop="item" href="https://example.com/items">
        <span itemprop="name">Item</span>
        <img itemprop="image" 
           src="http://example.com/images/icon-item.png" alt="Items"/>
    </a>
    <meta itemprop="position" content="1" />
  </li>
</ol>

Add JSON-LD to websites without visual breadcrumbs:

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "BreadcrumbList",
  "itemListElement": [{
    "@type": "ListItem",
    "position": 1,
    "item": {
      "@id": "https://example.com/items",
      "name": "Item",
      "image": "http://example.com/images/icon-item.png"
    }
  }]
}
</script>

Change History (6)

comment:1 Changed 2 years ago by juliandoucette

  • Ready unset

comment:2 Changed 2 years ago by ire

@juliandoucette Thanks for sharing all of this!

Is there any benefit/disadvantage to using the Markup or JSON-LD version? If not, perhaps we should pick one method to use across all our sites. I personally find the JSON-LD version much easier to read.

comment:3 follow-up: Changed 2 years ago by juliandoucette

Is there any benefit/disadvantage to using the Markup or JSON-LD version?

  • There is a minor file size difference (that I haven't measured)
  • The fact that if we have HTML for breadcrumbs and JSON for breadcrumbs then we have two breadcrumb structures on a page instead of one (if you count HTML with itemprops as one)
Last edited 2 years ago by juliandoucette (previous) (diff)

comment:4 in reply to: ↑ 3 Changed 2 years ago by ire

Replying to juliandoucette:

Is there any benefit/disadvantage to using the Markup or JSON-LD version?

  • There is a minor file size difference (that I haven't measured)
  • The fact that if we have HTML for breadcrumbs and JSON for breadcrumbs then we have two breadcrumb structures on a page instead of one (if you count HTML with itemprops as one)

Got it, I think your initial suggestion makes the most sense then.

comment:5 Changed 2 years ago by juliandoucette

  • Priority changed from P3 to P5

comment:6 Changed 2 years ago by juliandoucette

  • Resolution set to invalid
  • Status changed from new to closed

This ticket is not specific enough to be actionable. I will address it separately in other more specific tickets.

Note: See TracTickets for help on using tickets.