Schemaorg: What is the Id in the local business schema structure data

Created on 28 Jul 2021  路  4Comments  路  Source: schemaorg/schemaorg

I want to add schema structure data for my business but I don't know what to fill in the Id url and url section <script type="application/ld+json"> { "@context": "https://schema.org", "@type": "LocalBusiness", "name": "", "image": "", "@id": "what should I write here", "url": "what should I write here", "telephone": "", "address": { "@type": "PostalAddress", "streetAddress": "", "addressLocality": "", "postalCode": "", "addressCountry": "" } } </script>

Help me out in this issue

All 4 comments

Hello! Generally speaking, both the @id and the URL should be the canonical URL of the homepage for the site that represents the business.

Here's an example:
<script type="application/ld+json"> { "@context": "https://schema.org", "@type": "LocalBusiness", "name": "", "image": "", "@id": "https://thisismybusiness.com/", "url": "https://thisismybusiness.com/", "telephone": "", "address": { "@type": "PostalAddress", "streetAddress": "", "addressLocality": "", "postalCode": "", "addressCountry": "" } } </script>

Google also recently announced that the @id is no longer required for Local Business markup, noting "The url property alone is a sufficient identifier to understand the local business."
Source: https://developers.google.com/search/updates#july-2021

The @id field is useful for describing denoting which part of the page your markup describes.

For the root, or the entirety of the page,
(This is the way the Yoast schema plugin handles the id for root of the page)
~~~~

~~
For a section on the same page that describes your product,
~
~

~~~~

In the case of a section of a page, it is defined by its id and the @id corresponds to the "anchor" on the page.
~~~~

my product details

~~~~

Also,

If you are getting schema markup from another source (perhaps an Event plugin), if that markup is missing some (required) properties and has an @id, you can provide more extensive on-page markup and merge the two using the same @id property.

If the @id is missing, or if you don't use it in your local script, the SDTT will display two separate scripts for the same event.

Thanks @JasmineDWillson @WeaverStever

Was this page helpful?
0 / 5 - 0 ratings