Con-Shoc / auto

1 stars 0 forks source link

SEO - Organization Schema is Broken Globally #4

Closed Con-Shoc closed 6 years ago

Con-Shoc commented 6 years ago

Issue (Current Behaviour) The Schema on the homepage is missing a set of quotation marks for one of the datapoints.

Sample Code from Site <script data-react-helmet="true" type="application/ld+json">{ "@context": "http://schema.org", "@type": "Organization", "name": "AutoZone (AZO)", "url": https://www.autozone.com, "logo": "http://www.autozone.com/images/common/azLogo_color_sm.png", "contactPoint" : [ { "@type" : "ContactPoint", "telephone" : "+1-800-288-6966", "contactType" : ["Sales","Customer Service"], "contactOption" : "TollFree", "areaServed" : "US", "availableLanguage" : ["English", "Spanish"] } ], "sameAs" : [ "https://en.wikipedia.org/wiki/AutoZone", "https://www.facebook.com/autozone", "https://twitter.com/autozone", "https://www.youtube.com/user/AutoZone" ] }</script>

Testing the above code using Googles Structured Data tools throws an error: https://search.google.com/structured-data/testing-tool/u/

Expected Behaviour The code would validate and be error free.

Solution Replace the existing code with the below:

<script data-react-helmet="true" type="application/ld+json">{ "@context": "http://schema.org", "@type": "Organization", "name": "AutoZone (AZO)", "url": "https://www.autozone.com", "logo": "http://www.autozone.com/images/common/azLogo_color_sm.png", "contactPoint" : [ { "@type" : "ContactPoint", "telephone" : "+1-800-288-6966", "contactType" : [ "Sales", "Customer Service" ], "contactOption" : "TollFree", "areaServed" : "US", "availableLanguage" : [ "English", "Spanish" ] } ], "sameAs" : [ "https://en.wikipedia.org/wiki/AutoZone", "https://www.facebook.com/autozone", "https://twitter.com/autozone", "https://www.youtube.com/user/AutoZone" ] } </script>

The above code validates in this tool: https://search.google.com/structured-data/testing-tool/u/