Skip to content

Instantly share code, notes, and snippets.

@the-timallen
Created February 26, 2019 15:05
Show Gist options
  • Save the-timallen/cdb8284eaa039f53cd267d1cb02cea17 to your computer and use it in GitHub Desktop.
Save the-timallen/cdb8284eaa039f53cd267d1cb02cea17 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