How to combine the extensions of the site map for your site in Google

How to combine the extensions of the site map for your site in Google

Expanding the site card is a great way to tell Google about various types of content and their metadata that you use on your website. Often content on your pages can be suitable for several types of extensions. For example, you can publish news articles that include images and videos. In addition, your pages can be localized, which means that you can add hreflang annotations for localized pages of your site.

Namespaces for your site in Google

For each expansion of the site card that you want to use, it is necessary to indicate the corresponding namespace space that announces supported expansion tags. This is done using the XMLNS attribute urlset tag. Namespaces for extensions of the site card that Google supports:

Announcement of several namespaces for your site in Google

To declare several namespaces, add the appropriate links to the namespaces to your site card file, as described in the documentation of each extension. Here is an example of how to add news expansion, video and x (for hreflang) to the site map:



 
 
 

How to combine the extensions of the site map for your site in Google

After you have announced the namespaces, follow the implementation instructions specified in the documentation for each extension of the site card that you will use.

  • Expansion for images
  • Expansion for news
  • Expansion for video
  • Expansion for hreflang

To combine extensions, add tags for each of the extensions that you use one after another in the appropriate tag <url>, as described in the documentation of each extension of the site card.

For example, to add news expansion, video and x (hreflang) to the site map, use the following example:



 
 https://www.example.com/english/page.
 
 
 
 Example Times
 en
 
 2008-12-23
 Companies A, B in Merger Talks
 
 
 
 https://www.example.com/thumbs/123.jpg
 Lizzi is painting the wall
 Gary is watching the paint dry on the wall Lizzi painted.
 https://player.example.com/video/987654321
 
 
 
 
 
 
 

The extension procedure in the site map does not matter after the tag <loc>. Remember the best practices for site cards, especially about limits in size size. The combination of site card extensions significantly increases the size of your site card file.

You can contact the SEO company "SEO.COMPUTER" on any issue on email info@seo.computer, WhatsApp +79202044461.

ID 145

Send a request and we will provide a consultation on SEO promotion of your website