{"id":448,"date":"2023-01-30T20:29:14","date_gmt":"2023-01-30T13:29:14","guid":{"rendered":"https:\/\/magerubik.com\/blog\/?p=448"},"modified":"2023-02-04T13:48:06","modified_gmt":"2023-02-04T06:48:06","slug":"magento-how-to-generate-sitemap","status":"publish","type":"post","link":"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/","title":{"rendered":"Magento how to generate Sitemap"},"content":{"rendered":"\n<div class=\"magerubik-quote\">\n\t<p>Building a sitemap is one of the best ways for your web store to communicate with search engines quickly and accurately. It&#8217;s not the only way that search engines can detect pages on your site, but it&#8217;s your &#8220;direct line&#8221; to let Google understand the website structure.<\/p>\n<\/div>\n<h2 class=\"h3\"><strong>1. What is a Sitemap?<\/strong><\/h2>\n<p>The sitemap is a file created for the purpose of providing information about the pages, videos, and other files on your website and the relationship between them. It can have multiple formats such as XML (Extensible Markup Language ), RSS (Really Simple Syndication), and Text. This article only discusses the XML format, which is also the most popular format.<\/p>\n<h2 class=\"h3\"><strong>2. Do you Need a Sitemap?<\/strong><\/h2>\n<p>You won&#8217;t need a sitemap if you have a small site (&lt;100 URLs) and all the URLs are internally linked. But if you have a fairly large website with thousands or even millions of URLs, having a sitemap will benefit you greatly. With the help of a sitemap, you can point out the important pages for the search engine to crawl.<\/p>\n<h2 class=\"h3\"><strong>3. how can generate a Google XML Sitemap in magento <\/strong><\/h2>\n<p class=\"h3\"><strong>Generate an XML Sitemap with Magento admin<\/strong><\/p>\n<p>First, login to <span class=\"code\">Admin Panel<\/span> then go to <span class=\"code\">Marketing &gt; Seo &amp; Search &gt; Site Map<\/span> and click button <strong>Add Sitemap<\/strong><\/p>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/cdn2.magerubik.com\/media\/knowledge\/magento-generate-sitemap.jpg\" alt=\"Magento 2 generate a Google XML Sitemap\"><\/figure>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/cdn2.magerubik.com\/media\/knowledge\/magento-generate-sitemap-form.jpg\" alt=\"Magento 2 generate a Google XML Sitemap form\"><\/figure>\n<p>After filling all the information and then click save then you can see it in the gird.<\/p>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/cdn2.magerubik.com\/media\/knowledge\/magento-generate-sitemap-gird.jpg\" alt=\"Magento 2 generate a Google XML Sitemap gird\"><\/figure>\n<p>Now every time, you want to update XML Sitemap you just have to click <span class=\"code\">Generate.<\/span><\/p>\n<p><strong>In addition, Magento also allows you to set up the automatic generation of XML Sitemap by Cron.<\/strong><\/p>\n<p>Now, go to <span class=\"code\">Stores &gt; Configuration &gt; Catalog &gt; XML Sitemap<\/span> then Enabled Generation Settings<\/p>\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" src=\"https:\/\/cdn2.magerubik.com\/media\/knowledge\/magento-generate-sitemap-cron.jpg\" alt=\"Magento 2 generate a Google XML Sitemap cron\"><\/figure>\n<h2 class=\"h3\"><strong>2. Submit XML Sitemap to google search console<\/strong><\/h2>\n<p>Finally, provide your sitemap to Google. To do this, you can add a link to it in your robots.txt file or submit it directly to Google using Search Console.<\/p>\n<p><span class=\"note\">Note: <\/span>You only set up auto-generate files if you want all the website&#8217;s urls to be indexed by google. Check the file before sending to remove some links such as Privacy Policy, Terms &amp; Conditions&#8230;<\/p>\n<blockquote class=\"wp-block-quote\">\n\t<p>Ok now you know how to generate a Google XML Sitemap in Magento 2. In the next posts we will learn how can add <a href=\"https:\/\/magerubik.com\/blog\/setting-up-google-analytics-for-magento\/\" title=\"Google Analytics 4 to Magento 2\">Google Analytics 4 to Magento 2<\/a> website use google tag manager. <a href=\"https:\/\/magerubik.com\/contact\" title=\"Contact Magerubik\">Contact us<\/a> if you face any problems during the installation process.<\/p>\n<\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>Building a sitemap is one of the best ways for your web store to communicate with search engines quickly and<\/p>\n","protected":false},"author":1,"featured_media":451,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-448","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-magento-2-knowledge"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v22.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Magento how to generate Sitemap | MageRubik<\/title>\n<meta name=\"description\" content=\"You don&#039;t need an expert, you can easily create your own Magento 2 sitemap. Learn how to generate Magento 2 XML sitemap by Magento default.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Magento how to generate Sitemap | MageRubik\" \/>\n<meta property=\"og:description\" content=\"You don&#039;t need an expert, you can easily create your own Magento 2 sitemap. Learn how to generate Magento 2 XML sitemap by Magento default.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/\" \/>\n<meta property=\"og:site_name\" content=\"MageRubik\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/magerubik\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/magerubik\" \/>\n<meta property=\"article:published_time\" content=\"2023-01-30T13:29:14+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-02-04T06:48:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2023\/01\/magento-Google-XML-Sitemap.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"800\" \/>\n\t<meta property=\"og:image:height\" content=\"445\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Hilary howard\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@https:\/\/www.twitter.com\/magerubik\" \/>\n<meta name=\"twitter:site\" content=\"@magerubik\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Hilary howard\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/\"},\"author\":{\"name\":\"Hilary howard\",\"@id\":\"https:\/\/magerubik.com\/blog\/#\/schema\/person\/dad797dc557c925c92436706db1359d8\"},\"headline\":\"Magento how to generate Sitemap\",\"datePublished\":\"2023-01-30T13:29:14+00:00\",\"dateModified\":\"2023-02-04T06:48:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/\"},\"wordCount\":396,\"publisher\":{\"@id\":\"https:\/\/magerubik.com\/blog\/#\/schema\/person\/dad797dc557c925c92436706db1359d8\"},\"image\":{\"@id\":\"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2023\/01\/magento-Google-XML-Sitemap.jpg\",\"articleSection\":[\"Magento 2 knowledge\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/\",\"url\":\"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/\",\"name\":\"Magento how to generate Sitemap | MageRubik\",\"isPartOf\":{\"@id\":\"https:\/\/magerubik.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2023\/01\/magento-Google-XML-Sitemap.jpg\",\"datePublished\":\"2023-01-30T13:29:14+00:00\",\"dateModified\":\"2023-02-04T06:48:06+00:00\",\"description\":\"You don't need an expert, you can easily create your own Magento 2 sitemap. Learn how to generate Magento 2 XML sitemap by Magento default.\",\"breadcrumb\":{\"@id\":\"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/#primaryimage\",\"url\":\"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2023\/01\/magento-Google-XML-Sitemap.jpg\",\"contentUrl\":\"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2023\/01\/magento-Google-XML-Sitemap.jpg\",\"width\":800,\"height\":445,\"caption\":\"Magento google xml sitemap\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Magerubik blog site\",\"item\":\"https:\/\/magerubik.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Magento how to generate Sitemap\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/magerubik.com\/blog\/#website\",\"url\":\"https:\/\/magerubik.com\/blog\/\",\"name\":\"Magerubik\",\"description\":\"MageRubik blog site\",\"publisher\":{\"@id\":\"https:\/\/magerubik.com\/blog\/#\/schema\/person\/dad797dc557c925c92436706db1359d8\"},\"alternateName\":\"Magento 2 Extension\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/magerubik.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/magerubik.com\/blog\/#\/schema\/person\/dad797dc557c925c92436706db1359d8\",\"name\":\"Hilary howard\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/magerubik.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2022\/03\/magerubik-logo.png\",\"contentUrl\":\"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2022\/03\/magerubik-logo.png\",\"width\":265,\"height\":90,\"caption\":\"Hilary howard\"},\"logo\":{\"@id\":\"https:\/\/magerubik.com\/blog\/#\/schema\/person\/image\/\"},\"sameAs\":[\"http:\/\/localhost\/blog\",\"https:\/\/www.facebook.com\/magerubik\",\"https:\/\/www.instagram.com\/magerubik\",\"https:\/\/www.linkedin.com\/magerubik\",\"https:\/\/www.pinterest.com\/magerubik\",\"https:\/\/twitter.com\/https:\/\/www.twitter.com\/magerubik\",\"https:\/\/www.myspace.com\/magerubik\",\"https:\/\/www.youtube.com\/magerubik\",\"https:\/\/www.soundcloud.com\/magerubik\",\"https:\/\/www.tumblr.com\/magerubik\",\"https:\/\/www.wikipedia.com\/magerubik\"],\"url\":\"https:\/\/magerubik.com\/blog\/author\/hilary-howard\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Magento how to generate Sitemap | MageRubik","description":"You don't need an expert, you can easily create your own Magento 2 sitemap. Learn how to generate Magento 2 XML sitemap by Magento default.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/","og_locale":"en_US","og_type":"article","og_title":"Magento how to generate Sitemap | MageRubik","og_description":"You don't need an expert, you can easily create your own Magento 2 sitemap. Learn how to generate Magento 2 XML sitemap by Magento default.","og_url":"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/","og_site_name":"MageRubik","article_publisher":"https:\/\/www.facebook.com\/magerubik","article_author":"https:\/\/www.facebook.com\/magerubik","article_published_time":"2023-01-30T13:29:14+00:00","article_modified_time":"2023-02-04T06:48:06+00:00","og_image":[{"width":800,"height":445,"url":"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2023\/01\/magento-Google-XML-Sitemap.jpg","type":"image\/jpeg"}],"author":"Hilary howard","twitter_card":"summary_large_image","twitter_creator":"@https:\/\/www.twitter.com\/magerubik","twitter_site":"@magerubik","twitter_misc":{"Written by":"Hilary howard","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/#article","isPartOf":{"@id":"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/"},"author":{"name":"Hilary howard","@id":"https:\/\/magerubik.com\/blog\/#\/schema\/person\/dad797dc557c925c92436706db1359d8"},"headline":"Magento how to generate Sitemap","datePublished":"2023-01-30T13:29:14+00:00","dateModified":"2023-02-04T06:48:06+00:00","mainEntityOfPage":{"@id":"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/"},"wordCount":396,"publisher":{"@id":"https:\/\/magerubik.com\/blog\/#\/schema\/person\/dad797dc557c925c92436706db1359d8"},"image":{"@id":"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/#primaryimage"},"thumbnailUrl":"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2023\/01\/magento-Google-XML-Sitemap.jpg","articleSection":["Magento 2 knowledge"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/","url":"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/","name":"Magento how to generate Sitemap | MageRubik","isPartOf":{"@id":"https:\/\/magerubik.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/#primaryimage"},"image":{"@id":"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/#primaryimage"},"thumbnailUrl":"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2023\/01\/magento-Google-XML-Sitemap.jpg","datePublished":"2023-01-30T13:29:14+00:00","dateModified":"2023-02-04T06:48:06+00:00","description":"You don't need an expert, you can easily create your own Magento 2 sitemap. Learn how to generate Magento 2 XML sitemap by Magento default.","breadcrumb":{"@id":"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/#primaryimage","url":"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2023\/01\/magento-Google-XML-Sitemap.jpg","contentUrl":"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2023\/01\/magento-Google-XML-Sitemap.jpg","width":800,"height":445,"caption":"Magento google xml sitemap"},{"@type":"BreadcrumbList","@id":"https:\/\/magerubik.com\/blog\/magento-how-to-generate-sitemap\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Magerubik blog site","item":"https:\/\/magerubik.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Magento how to generate Sitemap"}]},{"@type":"WebSite","@id":"https:\/\/magerubik.com\/blog\/#website","url":"https:\/\/magerubik.com\/blog\/","name":"Magerubik","description":"MageRubik blog site","publisher":{"@id":"https:\/\/magerubik.com\/blog\/#\/schema\/person\/dad797dc557c925c92436706db1359d8"},"alternateName":"Magento 2 Extension","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/magerubik.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/magerubik.com\/blog\/#\/schema\/person\/dad797dc557c925c92436706db1359d8","name":"Hilary howard","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/magerubik.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2022\/03\/magerubik-logo.png","contentUrl":"https:\/\/magerubik.com\/blog\/wp-content\/uploads\/2022\/03\/magerubik-logo.png","width":265,"height":90,"caption":"Hilary howard"},"logo":{"@id":"https:\/\/magerubik.com\/blog\/#\/schema\/person\/image\/"},"sameAs":["http:\/\/localhost\/blog","https:\/\/www.facebook.com\/magerubik","https:\/\/www.instagram.com\/magerubik","https:\/\/www.linkedin.com\/magerubik","https:\/\/www.pinterest.com\/magerubik","https:\/\/twitter.com\/https:\/\/www.twitter.com\/magerubik","https:\/\/www.myspace.com\/magerubik","https:\/\/www.youtube.com\/magerubik","https:\/\/www.soundcloud.com\/magerubik","https:\/\/www.tumblr.com\/magerubik","https:\/\/www.wikipedia.com\/magerubik"],"url":"https:\/\/magerubik.com\/blog\/author\/hilary-howard\/"}]}},"_links":{"self":[{"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/posts\/448","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/comments?post=448"}],"version-history":[{"count":5,"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/posts\/448\/revisions"}],"predecessor-version":[{"id":476,"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/posts\/448\/revisions\/476"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/media\/451"}],"wp:attachment":[{"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/media?parent=448"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/categories?post=448"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/magerubik.com\/blog\/wp-json\/wp\/v2\/tags?post=448"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}