Last active
December 3, 2021 00:07
-
-
Save jonoalderson/79ebdad90ef0ef874afdb17e778a0997 to your computer and use it in GitHub Desktop.
Yoast Schema Example - Product
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"@context": "https://schema.org", | |
"@graph": [ | |
// Organization | |
{ | |
"@type" : "Organization", | |
"@id" : "https://www.example.com/#organization", | |
"url" : "https://www.example.com/", | |
"mainEntityOfPage" : "https://www.example.com/", | |
"name" : "{{Organization Name}}", | |
"logo" : { | |
"@type" : "ImageObject", | |
"@id" : "https://www.example.com/#logo", | |
"url" : "https://www.example.com/example-logo.jpg", | |
"caption" : "{{Logo Caption}}" | |
}, | |
"sameAs" : [ | |
"https://www.facebook.com/example-profile/", | |
"https://www.instagram.com/example-profile/", | |
"https://en.wikipedia.org/wiki/example-company-page/" | |
], | |
"address": { | |
"@type": "PostalAddress", | |
"addressLocality": "Fake Town, United Kingdom", | |
"addressRegion": "Fake Region", | |
"postalCode": "LS1 5BZ", | |
"streetAddress": "123 Fake Street" | |
}, | |
"Telephone" : "(425) 123-4567", | |
"email" : "example@example.com" | |
}, | |
// =============== | |
// WebSite | |
{ | |
"@type" : "WebSite", | |
"@id" : "https://www.example.com/#website", | |
"url" : "https://www.example.com/", | |
"mainEntityOfPage" : "https://www.example.com/", | |
"name" : "{{Website Name}}", | |
"publisher" : { "@id": "https://www.example.com/#organization" }, | |
"potentialAction" : { | |
"@type" : "SearchAction", | |
"Target" : "https://www.example.com/?s={search_term_string}", | |
"Query-input" : "required name=search_term_string" | |
}, | |
"hasPart" : { "@id" : "https://www.example.com/blog/#blog" } | |
}, | |
// WebPage | |
{ | |
"@type" : "WebPage", | |
"@id" : "https://www.example.com/example-product-page/", | |
"url" : "https://www.example.com/example-product-page/", | |
"mainEntityOfPage" : "https://www.example.com/example-product-page/", | |
"name" : "{{Page Title}}", | |
"description" : "{{Page Description}}", | |
"primaryImageOfPage" : { | |
"@type" : "ImageObject", | |
"@id" : "https://www.example.com/example-product-page/#primaryimage", | |
"url" : "https://www.example.com/example-product-page-image.jpg", | |
"caption" : "{{Example Caption}}" | |
}, | |
"mainContentOfPage" : { | |
"@type" : "WebPageElement", | |
"@id" : "https://www.example.com/example-product-page/#content", | |
"cssSelector" : ["main", ".main"] | |
}, | |
"datePublished" : "2001-01-01", | |
"dateModified" : "2002-02-02T14:55:20", | |
"breadcrumb" : { "@id" : "https://www.example.com/example-product-page/#breadcrumb" }, | |
"isPartOf" : { "@id" : "https://www.example.com/#website" } | |
}, | |
// Breadcrumbs | |
{ | |
"@type" : "BreadcrumbList", | |
"@id" : "https://www.example.com/example-product-page/#breadcrumb", | |
"itemListElement" : [{ | |
"@type" : "ListItem", "position" : 1, "item" : { | |
"@id" : "https://www.example.com/", "name" : "Home" | |
} | |
}, | |
{ | |
"@type" : "ListItem", "position" : 2, "item" : { | |
"@id" : "https://www.example.com/example/", "name" : "{{Example page}}" | |
} | |
}, | |
{ | |
"@type" : "ListItem", "position" : 3, "item" : { | |
"@id" : "https://www.example.com/example/example/", | |
"name" : "{{Example sub page}}" | |
} | |
}] | |
}, | |
// =============== | |
// Product | |
{ | |
"@type" : "Product", | |
"@id" : "https://www.example.com/example-product-page/#product", | |
"url" : "https://www.example.com/example-product-page/", | |
"mainEntityOfPage" : "https://www.example.com/example-product-page/", | |
"brand" : { "@id" : "https://www.example.com/#organization" }, | |
"image" : { | |
"@type" : "ImageObject", | |
"@id" : "https://www.example.com/example-product-page/#productimage", | |
"url" : "https://www.example.com/example-product-image.jpg", | |
"caption" : "{{Name Of Product}}" | |
}, | |
"name" : "{{Example Product Name}}", | |
"description" : "{{Example Product Description}}", | |
"offers" : [ | |
{ | |
"@type" : "Offer", | |
"priceCurrency" : "USD", | |
"price" : 1.23, | |
"seller" : { "@id" : "https://www.example.com/#organization" } | |
}, | |
{ | |
"@type" : "Offer", | |
"priceCurrency" : "GBP", | |
"price" : 4.56, | |
"seller" : { "@id" : "https://www.example.com/#organization" } | |
} | |
] | |
}] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment