Skip to content

Instantly share code, notes, and snippets.

@pentago
Last active October 14, 2022 11:56
Show Gist options
  • Save pentago/173b7d975604eb85c2c509d537b00799 to your computer and use it in GitHub Desktop.
Save pentago/173b7d975604eb85c2c509d537b00799 to your computer and use it in GitHub Desktop.
Schema Markups
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization",
"name": "$WEBSITE_NAME",
"description":"$WEBSITE_DESCRIPTION",
"url": "$WEBSITE_URL",
"logo": "$WEBSITE_LOGO_IMAGE_URL",
"contactPoint": {
"@type": "ContactPoint",
"contactType": "Customer Service",
"url": "$WEBSITE_COTNACT_PAGE_URL"
},
"sameAs": [
"$WEBSITE_FACEBOOK_PROFILE_URL",
"$WEBSITE_TWITTER_PROFILE_URL",
"$WEBSITE_LINKEDIN_PROFILE_URL",
"$WEBSITE_INSTAGRAM_PROFILE_URL",
"$WEBSITE_YOUTUBE_PROFILE_URL"
]
}
</script>
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Person",
"email": "$EMAIL_ADDRESS_HERE",
"image": "$PROFILE_PHOTO_URL_HERE",
"jobTitle": "$PERSON_OCCUPATION_HERE",
"name": "$PERSON_FULL_NAME_HERE",
"birthPlace": "$PERSON_BIRTH_PLACE (e.g. Podgorica, ME)",
"birthDate": "$PERSDON_BIRTH_DATE (e.g. 1979-10-12)",
"gender": "$PERSON_GENDER_HERE",
"nationality": "$PERSON_NATIONALITY_HERE",
"telephone": "$CONTACT_PHONE_NUMBER_HERE",
"url": "$WEBSITE_URL_HERE",
"sameAs" : [
"$WEBSITE_FACEBOOK_PROFILE_URL",
"$WEBSITE_TWITTER_PROFILE_URL",
"$WEBSITE_LINKEDIN_PROFILE_URL",
"$WEBSITE_INSTAGRAM_PROFILE_URL",
"$WEBSITE_YOUTUBE_PROFILE_URL"
"$ANY_OTHER_PROFILE_URL_HERE"
]
}
</script>
<script type="application/ld+json">
{
"@context":"https://schema.org/",
"@type":"Product",
"name":"$BOOKING_NAME",
"description":"$BOOKING_DESCRIPTION",
"image": "$SOME_NICE_BOOKING_IMAGE",
"brand": {
"@type":"Brand",
"name":"$WEBSITE_NAME"
},
"aggregateRating": {
"@type":"AggregateRating",
"worstRating":1,
"bestRating":5,
"ratingValue": "$AVERAGE_RATING_VALUE (e.g. '4.2')",
"reviewCount": "$NUMBER_OF_RATINGS"
},
"offers": {
"@type":"AggregateOffer",
"priceCurrency":"$CURRENCY_CODE (e.g. 'EUR')",
"lowPrice": "$BOOKING_PRICE_AS_INTEGER (e.g. '99.99')"
}
}
</script>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "WebSite",
"url": "$WEBSITE_NAME",
"potentialAction": {
"@type": "SearchAction",
"target": "https://domain.com/search={search_term_string}",
"query-input": "required name=search_term_string"
}
}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment