Add Schema markup/Structured data to Youtube video’s

To increase visibility within the search engine results you could use Schema markup. There is even a Schema tag voor video called videoObject that can be used with embedded video’s such as Youtube video’s.

In the example below you’ll see JSON-ld code. There is an embed url that is the same as the iframe code given by Youtube. Note that you’ll still have to embed the video on the page.

Code example JSON-ld Schema markup for Youtube video’s

<script type="application/ld+json">
{
  "@context": "http://schema.org",
  "@type": "VideoObject",
  "name": "Should I add schema.org markup on my videos even if they're on YouTube?",
  "description": "Video where Matt Cutts explains why you should add Schema markup to Youtube videos",
  "thumbnailUrl": "https://timvaniersel.com/wp-content/uploads/2019/06/youtube-schema.png",
  "uploadDate": "2014-11-04",
  "duration": "PT1M05S",
  "publisher": {
    "@type": "Organization",
    "name": "Google Webmasters",
    "logo": {
      "@type": "ImageObject",
      "url": "https://yt3.ggpht.com/a/AGF-l79xPFHh0W4xCqBPIWCkkA0xGTfnPtw9CWGIdA=s48-mo-c-c0xffffffff-rj-k-no",
      "width": 48,
      "height": 48
    }
  },
  "embedUrl": "https://www.youtube-nocookie.com/embed/ePG5YYHU5Jo",
  "interactionCount": "19"
}
</script>

Using your custom JSON-ld schema within WordPress

If you want custom Schema markup in your WordPress plugin you can use the Websitescanner Custom Schema plugin. With this plugin you can implement your own custom schema in JSON-ld format.

Categorised in:

This post was written by Tim van Iersel

0 reacties op “Schema markup for Youtube video’s”

Reactie

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