Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save m-torin/bef065205e07c265f5f2eedc4e6d4741 to your computer and use it in GitHub Desktop.
Save m-torin/bef065205e07c265f5f2eedc4e6d4741 to your computer and use it in GitHub Desktop.
Tips for Structured Data on E-commerce sites
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@graph": [
{
"@type": "Organization",
"name": "Distilled",
"url": "https://www.distilled.net/",
"sameAs": [
"http://www.facebook.com/distilled",
"http://twitter.com/distilled"
]
},
{
"@type": "WebSite",
"url": "https://www.distilled.net/",
"potentialAction": {
"@type": "SearchAction",
"target": "https://www.distilled.net/search?text={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