{"revision":"c10276e953456835cdbb1f3a60d58ae1980be353","document":{"id":42652,"path":"platform-user-interface/sitemap-generator/sitemap-generator.md","title":"Sitemap Generator","bundle":null,"doc_type":null,"release":"australia","body":"\n# Sitemap Generator\n\nUse the ServiceNow® Sitemap Generator application to define and automatically generate XML sitemaps to improve search engine optimization of public portal pages.\n\n## Activation information\n\nYou can activate the Sitemap Generator application \\(sn\\_ux\\_seo\\_sitemap\\) from your instance. For more information, see [Activate Sitemap Generator](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-user-interface/sitemap-generator/activate-sitemap-generator.md).\n\nYou can also activate Sitemap Generator from the ServiceNow Store. Visit the [ServiceNow Store](https://store.servicenow.com/sn_appstore_store.do#!/store/home) to view all the available apps, and for information about submitting requests to the store. For cumulative release notes information for all released apps, see the [ServiceNow Store version history release notes](https://www.servicenow.com/docs/r/store-release-notes/sn-store-release-notes.html).\n\n## Sitemap requirements\n\nThe sitemap is generated from a script or static XML. When creating a sitemap, you must ensure that its contents meet the following requirements because validating them isn’t handled automatically:\n\n-   Includes only pages with unauthenticated user access.\n\n    Sitemap Generator automatically excludes portal URLs that aren’t publicly accessible from sitemaps. However, this doesn’t apply for URLs with custom domains instead of the ServiceNow domain. URLs that are excluded from the sitemap are listed in the Application Log \\[syslog\\_app\\_scope\\] table.\n\n-   Excludes pages that respond with a 301 redirect.\n-   Excludes pages with the NOINDEX meta tag, such as retired or expired pages. If you use a script to create the sitemap, include logic similar to that of the SEO script include you used to add NOINDEX meta tags to pages to exclude those pages from the sitemap. For more information, see Configure custom SEO tags for canonical URLs and localized knowledge articles.\n-   For any pages with canonical URLs or **hreflang** tags, the sitemap includes those canonical URLs or URLs with **hreflang** tags returned by the SEO script include for that page. If you use a script to create the sitemap, include logic similar to that of the SEO script include you used to return canonical URLs or URLs with **hreflang** tags. For more information, see SEO for canonical URLs and localized versions of knowledge articles.\n-   For any pages with human readable keywords in URLS, the sitemap includes those URLs with human readable keywords. If you use a script to create the sitemap, use one of the getHumanReadableUrl methods in the SPSEOUtilsSNC class to return the human readable keywords and include them in the sitemap URLs. For more information, see [Add human readable keywords to page URLs](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-user-interface/service-portal/add-human-readable-keywords-page-urls.md).\n\n**Note:** Guidance on how to meet these requirements is included in the code templates in the **Script** and **Static XML** fields where the sitemap contents are defined. For more information, see [Generate XML sitemaps for SEO indexing](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-user-interface/sitemap-generator/generate-xml-sitemaps-seo-indexing.md).\n\nFor more information about sitemap requirements for SEO, refer to the following resources:\n\n-   [Build and submit a sitemap](https://developers.google.com/search/docs/advanced/sitemaps/build-sitemap) in the Google documentation\n-   [XML schema for the Sitemap protocol](https://www.sitemaps.org/protocol.html) on the sitemaps.org website\n\n-   **[Activate Sitemap Generator](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-user-interface/sitemap-generator/activate-sitemap-generator.md)**  \nYou can activate the Sitemap Generator plugin \\(sn\\_ux\\_seo\\_sitemap\\) for Service Portal if you have the admin role.\n-   **[Generate XML sitemaps for SEO indexing](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-user-interface/sitemap-generator/generate-xml-sitemaps-seo-indexing.md)**  \nCreate XML sitemaps for web crawlers to index your public portal pages and improve search engine optimization for your portals.\n\n**Parent Topic:**[Improving search engine optimization for portals](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/platform-user-interface/service-portal/seo-sp.md)\n\n"}}