Jump to content

Structured data items are invalid - Please Help

Recommended Posts

Hello all,

I'm trying to fix up an error that appears for all pages during a Site Audit for our website.

Field: @id                             Description: A value for the @id field is required.

I was able to fix up the Name and address issues by adding a business name and location. However, I have been unable to fix this issue no matter what I try or research.

Does anyone have any ideas?

Link to comment
  • 3 weeks later...

Hello ppl.

I fix the problem with add script in head.

Example:

<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@type": "YourBusinessType",
  "name": "Name of Business",
  "image": "https://www.your-site.tld/logo.png",
  "@id": "https://www.sitename.tld",
  "url": "https://www.sitename.tld,
  "telephone": "123456789",
  "priceRange": "€1-€10",
  "address": {
    "@type": "PostalAddress",
    "streetAddress": "Your Street",
    "addressLocality": "Your City",
    "postalCode": "Your Code",
    "addressCountry": "US"
  },
  "geo": {
    "@type": "GeoCoordinates",
    "latitude": 47.12828649999999,
    "longitude": 27.6137628
  },
  "openingHoursSpecification": {
    "@type": "OpeningHoursSpecification",
    "dayOfWeek": [
      "Monday",
      "Tuesday",
      "Wednesday",
      "Thursday",
      "Friday",
      "Saturday",
      "Sunday"
    ],
    "opens": "00:00",
    "closes": "23:59"
  },
  "sameAs": [
    "https://www.facebook.com/your-fb/",
    "",
    "https://www.instagram.com/your-insta/",
    "https://www.name-site-tld"
  ]
}
</script>

 

Change with your infos and save. For me it works fine. Hope as well for you!

Link to comment
  • 1 month later...
  • 2 years later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.