This tutorial will teach you how to make a Google sitemap that you can submit to your Google Webmaster Tools. Helping Google crawl your site is a key part of anyone’s search strategy and has proven time and again to help increase Google traffic on our portfolio.
1) Begin by making a new Design file. Call it something like ‘Google Sitemap’. You need to do this to declare the correct sitemap protocol.
Now add the following code the parse file and click save:
<?xml version="1.0" encoding="UTF-8"?>
[b]2) [/b]Now create and Asset Listing page at the highest level (top) of your domain. Google wants to see the .xml extension on your sitemap so make sure that you do that upfront by naming your Asset listing page as ‘sitemap.xml’.
[b]3) [/b]Go to the Details screen on your new asset listing and select which assets to list and where to find them:
[list=1]
[*]For ‘Asset Locations’ make your root node your containing Site.
[b]NOTE:[/b] Matrix will seriously battle if you’re listing a huge amount of pages and unfortunately Google won’t wait around for XML to begin loading. If you’re getting sitemap timeout errors split your sitemap up and submit multiple ones to Google.
[b]3)[/b] Expand your Asset listing in the tree and edit the ‘Page Contents’ screen. Make sure you’ve got only one DIV on that page and [i][b]make sure that it is presenting RAW HTML[/b][/i]. Then add the following code:
%asset_listing%
[b]4) [/b]Now edit the ‘Type Formats’ screen. Once again make sure that you have only one DIV on that page and [i][b]make sure it’s presenting RAW HTML[/b][/i]. Then add the following code:
%asset_url% %asset_updated_short%
[b]5)[/b] Now apply the ‘Google Sitemap’ design in the Settings screen as the ‘System Defined Frontend Design’ and make the asset listing live.
[b]6)[/b] Preview the page in any compliant browser, and if there is a problem you’ll be warned. Submit to Google. Have a beer.