Video XML Sitemap banner

XML Sitemap for Videos – Why They’re Important

As discussed in previous posts, XML Sitemaps are essential and provide search engines like Google with the information they need to index your website content appropriately. But, what we haven’t discussed before are XML sitemaps for videos. Did you know that Google and other search engines also want you to create sitemaps for your video content? Like sitemaps for different types of web content, an XML sitemap for videos tells search engines like Google how you’d like your video content indexed. However, they are a little bit different. So, let’s break down video XML sitemaps a little further.

The Benefits of Providing Google with an XML Sitemap for Videos

There are several benefits to using XML sitemaps for video content on any webpage. Some of these benefits include things like:
  • Indexing of your video content on search engines like Google
  • A better chance of ranking on video. searches
  • You will get an opportunity to provide more details about your content through the use of structured data schema
  • An aesthetically pleasing thumbnail for your video content on the SERP (Search Engine Results Page)

Getting Your Video Embed Content Ready for an XML Sitemap

Before you reap the rewards of an XML sitemap for videos, you must prepare your video content and embed code for indexing. Two commonly used methods for embedding and tagging video content with the necessary structured data schema object embed HTML and iFrame HTML. However, only the thing embed the process of coding a video embed in HTML will be crawled and indexed by Google. People have found a way to cheat this system by using object embedding HTML within an iFrame, no good research shows this is a viable solution. So, for simplicity (and to ensure you don’t do anything potentially risky with your sitemap), we will only explain the object embed method.

Tagging an Object Video Embed for an XML Sitemap

Object embed HTML for videos (and other content) is a way to tell a browser (or search engine) where to find the original video file (RAW file) for your video content. To tag an object video embed for indexing/ranking on search engines and your XML Sitemap, your code should look like this: Object Embed HTML code example image Once your embed code is situated and working as it should, it’s time to tag it up with the necessary structured data schema for indexing. For example, Google requires that your video content includes tags for the following information:
  • Title – The title of your video (should be identical to the title of your video wherever it is hosted).
  • Description – This should be identical to the meta description of the page where the video is being embedded.
  • Raw Video Host Location – The “src” link is shown in the embed code pictured above.
  • Thumbnail URL – The URL where the thumbnail for your video is stored (Google recommends you use a high-resolution image for this, up to 1920×1080).
  • URL of Video Play Page – This is the URL for the page where your video is hosted and played (like the YouTube URL for your video, for example).
Now that you know what information is required in your sitemap, it’s time to show you how to create an adequately tagged video XML sitemap document. To do this, start by creating a new record on your site and name it something like this:
Move that document to the root of your site. This will give it a URL of something like this:
Once you’ve created your sitemap file and moved it to the root of your website, it’s time to tag it up. Your finished file should have code that looks something like this: Video XML Sitemap example image of code

Update Google Search Console with Your New Video XML Sitemap

After you’ve finished creating your video XML sitemap and placed it at the root of your website, you will need to inform Google where to find your new sitemap. To do this, load Google Search Console (if you haven’t set this up yet, refer to our post about GSC) and submit the URL of your video XML sitemap under the “Sitemaps” tab. After that, Google will crawl your new sitemap and index your videos (it can take over a week for Google actually to crawl your site, so be patient)!

This is the Tip of the Iceberg

The aforementioned structured data schema markup for video XML sitemaps is just the tip of the iceberg when tagging a video for search indexing on Google. There are several other possibilities for structured data, including categories and authors. But those things aren’t required by Google for indexing your videos, so they weren’t included in our examples above. If you’d like to learn more about the extensive possibilities with video XML sitemap structured data, then feel free to contact the SEO experts at Contractor Advertising. Our experts know all about XML sitemap creation and maintenance and can handle every aspect for you. Just fill out the form below, and we’ll reach out to you ASAP!