Google Structured Data JSON-LD (Website)

Background

Use structured data to help Google understand the content of your site and enable special Search result features for your pages.

https://developers.google.com/search/docs/data-types/article

Implementation

Add below JSON-LD code to /Panels/HTMLHead.html

<!-- Google Structured Data - WebSite -->
<script type="application/ld+json">
  {
    "@context": "http://schema.org",
    "@type": "WebSite",
    "name": "%%GLOBAL_StoreName%%",
    "alternateName": "modDIY Company",
    "url": "%%GLOBAL_ShopPath%%",
    "description": "%%Page.MetaDescription%%",
    "potentialAction": {
      "@type": "SearchAction",
      "target": "%%GLOBAL_ShopPath%%/search.php?search_query={search_term_string}",
      "query-input": "required name=search_term_string"
    },
    "sameAs" : [
      "https://www.facebook.com/moddiycom/",
      "https://twitter.com/modDIYcom"
    ]
  }
</script>
<!-- Google Structured Data - WebSite -->

Check result at https://search.google.com/structured-data/testing-tool/

Leave a Reply

Your email address will not be published. Required fields are marked *