Extended Sitemap Configuration

Our extension greatly expands possibilities of sitemap generation. It can alter standard Magento procedures, and add there crucial information, that can boost indexing of the store by web crawlers. It also can help you to manage multiple sitemaps, which you can create with different params and for different purposes.

Sitemap Example

Sitemap is a special XML file, which is typically located at the root of your store and contains important data on crawleble links of your store that you would wish Google to become aware of as soon as possible. You can see its location in Marketing > Advanced SEO Suite > Site Map, in columns Path and Link for Google. There are two different ways to make your sitemap available to Google: to submit it to Google using the Search Console Sitemaps tool(preferable) or to insert corresponding link anywhere in your robots.txt. More information in sitemaps you can get here.

Typical sitemap is a simple, human-readable file, which contain an array of XML records like URL, lastmod, changefreq, priority, image etc. Sitemap features a number of optional elements, that can be read by Google crawler. sitemap.xml file, generated by native Magento native mechanism, can look like this:

Example

<urlset>
    <url>
        <loc>http://www.example.com/gear.html</loc>
        <lastmod>2017-12-10T10:29:50+00:00</lastmod>
        <changefreq>daily</changefreq>
        <priority>0.5</priority>
    </url>
    <url>
        <loc>http://www.example.com/strive-shoulder-pack.html</loc>
        <lastmod>2017-12-10T10:29:52+00:00</lastmod>
        <changefreq>daily</changefreq>
        <priority>1.0</priority>
        <image:image>
            <image:loc>http://www.example.com/pub/media/catalog/product/m/b/mb04-black-0.jpg</image:loc>
            <image:title>Strive Shoulder Pack</image:title>
            <image:caption>Image</image:caption>
        </image:image>
        '<PageMap xmlns="http://www.google.com/schemas/sitemap-pagemap/1.0">
            <DataObject type="thumbnail">
                <Attribute name="name" value="Strive Shoulder Pack"/>
                <Attribute name="src" value="http://www.example.com/pub/media/catalog/product/m/b/mb04-black-0.jpg"/>
            </DataObject>
        </PageMap>'
    </url>
</urlset>

Our extension provides capabilities to additionally tweak your sitemap.xml, making it more managable and SEO-friendly, like:

  • making product images URLs SEO-friendly according to the template (if corresponfing option of SEO Suite extension is enabled for frontend images)
  • adding product images "title" and "caption" tags according to the template(if corresponfing option of SEO Suite extension is enabled for frontend images)
  • removing particular links from both HTML and XML sitemaps
  • adding custom links to both variants of sitemap if needed

You can turn the example above in something like this:

Example

<urlset>
    <url>
        <loc>http://www.example.com/gear.html</loc>
        <lastmod>2017-12-10T10:29:50+00:00</lastmod>
        <changefreq>daily</changefreq>
        <priority>0.5</priority>
    </url>
    <url>
        <loc>http://www.example.com/strive-shoulder-pack.html</loc>
        <lastmod>2017-12-10T10:29:52+00:00</lastmod>
        <changefreq>daily</changefreq>
        <priority>1.0</priority>
        <image:image>
            <image:loc>http://www.example.com/pub/media/product/28fb/strive-shoulder-pack.jpg</image:loc>
            <image:title>The best Strive Shoulder Pack on the market</image:title>
            <image:caption>Image</image:caption>
        </image:image>
        <PageMap xmlns="http://www.google.com/schemas/sitemap-pagemap/1.0">
            <DataObject type="thumbnail">
                <Attribute name="name" value="Strive Shoulder Pack"/>
                <Attribute name="src" value="http://www.example.com/pub/media/product/28fb/strive-shoulder-pack.jpg"/>
            </DataObject>
        </PageMap>
    </url>
</urlset>

How to Generate Google Sitemap

  1. Tune-up your sitemap settings in Marketing > Advanced SEO Suite > Settings > Extended Site Map, refer here for more information.

  2. Go to Marketing > Advanced SEO Suite > Site Map, and press Add Sitemap button.

  3. Sitemap generation page consists of two fields:

    • Filename - defines name, under which sitemap will be saved. If you wish to regenerate standard sitemap, use sitemap.xml.
    • Path - defines path, where sitemap should be placed. If you wish to regenerate standard sitemap, use /.
  4. Manually edit robots.txt to include generated sitemap to the web indexing process. Useful information, how to do it, can be found here.

Note

Important Note

If you use one of the following extension, generating Google sitemap using Mrasvit extension will provide stability benefits as we have a compatibility patches to correctly process their pages pages:

  • Mirasvit Knowledge Base
  • Mirasvit Blog
  • AheadWorks Blog

Note

From version 2.0.37 you can also generate sitemap XML files using CLI commands described here

Frontend Sitemap Settings

Settings of Sitemap Generation are located at Marketing > Advanced SEO Suite > Settings > Extended Site Map, Frontend Sitemap Settings subsection:

  • Base URL Path To Frontend Sitemap - Base path to the frontend sitemap page.
  • Meta Title - allows to add a meta title to sitemap page.
  • Meta Keywords - allows to add keyword section to sitemap page.
  • Meta Description - allows to add meta description of sitemap page.
  • H1 Header - allows to add special header to sitemap page (useful for multiple sitemap instances).
  • Show Products - if enabled, a list of all active catalog products will be displayed in the frontend sitemap.
  • Show CMS Pages - if enabled, a list of CMS pages will be displayed in the frontend sitemap.
  • Ignore CMS Pages - defines a list of CMS pages which will not be displayed in the frontend sitemap.
  • Show Stores - if enabled, a list of Store Views will be displayed in the frontend sitemap.
  • Additional links - defines a comma-separated list of pages which should be added to the frontend sitemap. For example, you can add links Our Promotions and Customer Account to the sitemap:

    /promotions/, Our Promotions
    /customer/account/, Customer Account
  • Exclude by pattern - defines a list of patterns for links that will be excluded from the frontend sitemap.
  • Limit the number of links on one page - if not empty, the whole sitemap will be turned into a sequence of lesser sitemaps.

sitemap_settings