Get Free Audit

How to Create a Sitemap in PrestaShop 8 & Add it to Google Search Console

Mar 27, 2023

44873 Alexandra Brezinskaya

How to Create a Sitemap in PrestaShop 8 & Add it to Google Search Console

If you want to improve webstore SEO and help search engines to understand your business, you need a clear sitemap. This article will give you a step-by-step instruction on creating a sitemap on PrestaShop 8. In addition, we put advice on connecting it to Google Search Console.

Take your time and get ready to optimize your online business.

How to Create a Sitemap in PrestaShop 8
How to Add the Sitemap to Google Search Console

How to Create a Sitemap in PrestaShop 8

Search engines use a sitemap to swiftly index your webstore. It’s basically an XML file that contains all the pages and products located at the site. When coming across this file, search engines use the list to effiсiently index each piece of content on the online store. Thus, product and specific pages are shown in the search results when a user googles something.

To create a sitemap in PrestaShop 8, you need to install and configure a special module. Using it, you can build a map of your online store and update it when needed.

We recommend searching for such addons on the official marketplace. There are around 40 variants, starting from a free-to-download and ending with SEO Pack Premium costing $600.

To illustrate the sitemap creation process, we’ll use the basic Google sitemap Module by PrestaShop that can be downloaded for free from the marketplace. After you install the chosen module, make sure that the folder name matches its name. In our case, it is gsitemap.

Now, let’s move directly into the creation process.

The first step you need to follow is opening the admin panel and proceed to Improve -> Modules -> Module Manager -> tab Modules and type the keyword gsitemap into the search bar:

image — крупный размер

 

As you can see, the configuration page has several settings:

image1 — крупный размер

 

On this stage, you should choose and mark those categories that won’t be included into the sitemap. We recommend you to exclude:

  • autorisation page
  • shopping cart
  • personal page
  • order history
  • pages with the same information displayed for each visitor at the same address
  • service pages like 404.

After you’ve marked all the needed checkboxes, you can proceed to generating the file. Click on the Generation Sitemap and you’ll see the sitemap address. It will be something similar to https://your_personal_site.site/1_index_sitemap.xml. You should save this URL into your Google Search Console account and robots.txt. The module will also show you the file size and the number of indexed pages.

image2 — крупный размер

 

We advise you to regularly update this file so that the search engines could make its full indexation. If you don’t want to permanently press Update the sitemap file button, you should proceed to the page with the cron link. Since you create a cron task using the up-mentioned URL, the server will update the sitemap by itself. And it won’t bother you anymore.

In case you don’t know what a cron task is, you should consult your hosting provider for the details.

image3

development_prestashop

PrestaShop Development

Take your online store to the next level with BelVG PrestaShop Development

Visit the page

How to Add the Sitemap to Google Search Console

Following the above guide, you’ve generated the sitemap files. What’s the next step? You need to add the sitemap file to Google Search Console to inform the engine about your website. We’ve worked out a simple guide for you to follow and succeed with the aim.

Step 1. First of all, you should sign in to the Google Search Console. We use the URL prefix, just entering the site URL and clicking on the Continue button.

image4

 

Step 2. You should download the HTML file and add it to your website. With the help of the FTP-manager, you can use, for example, the file manager in your hoster-panel. You need to add this html-file into your site’s root directory.

image5

image6

 

If you click on the Verify button, you’ll get the following message:

prestashop 1.7. sitemap create

 

Step 3. Log in your Google Search Console account and select the Sitemaps tab.

google console account

 

Step 4. As we’ve already generated sitemap files using the PrestaShop module, we can move directly to the admin panel of the site and check it.

image7 — крупный размер

image8 — крупный размер

 

Step 5. Finally, we’re ready to add sitemaps URLs in Google Search Console.

prestashop sitemap generation

how to add a sitemap to google search console

 

In case everything was performed well, you will get the following result.

google search console - how to add a sitemap

Wrapping it up

Congratulations! Now, Google can see and index your webstore much better.

If you have any questions on this topic, or something went wrong while you were following the instructions, feel free to leave comments below. We’re here to help you.

Vlad Yunusov
Partner With Us Looking for a partner to grow your business? We are the right company to bring your webstore to success. Talk to Vlad

13 Comments

  1. Hi Ondrej
    Please check the module file /modules/gsitemap/gsitemap.php, method _createIndexSitemap(), 864 line

  2. Hi I have similar problem as Anna said. In which file do I find the line of code which should been edited? pls
    Thnx
    Regards
    Ondrej

  3. Hi, Anna! Thanks for your question.
    You need to rename the file name in the code so that it would not be rejected. The name should be changed in the following line of code file_put_contents($this->normalizeDirectory(_PS_ROOT_DIR_) . $this->context->shop->id . ‘_index_sitemap.xml’, $xml_feed->asXML());.
    What concerns your question about whether it will updated weekly – it will be only in case you have set up cron.

  4. hi, Google rejecting the file name, they want me to rename it, if I rename the file, does the app recognize the file and update it weekly?

    thank you

  5. Hi, Fred! Thanks for your question.
    As I see it, the archive extension can be as a file with .zip format, but if it doesn’t work, you may try a tarball format (.tar, .tar.gz or .tgz).

  6. Hello , when I got to the module page in my admin and try to upload th Zip file I get a message saying Upload Failed.
    Should I unpack the Zip file and upload it with FileZilla ?

  7. Hi, Robert!
    It’s rather difficult to answer your question not knowing the details. What module exactly did you install?

  8. I have a problem with the official module from Prestashop, it seems that it does not include in the sitemap the tags, although they are permitted by Google Robots. Have any ideea?

  9. Hi, John
    Thank you for your question.
    It seems that you have problem with permissions. Please, check the sitemap file in the root directory.

  10. I have downloaded and installed module, and 2 sitemaps has been generated. The problem is that i am getting 404 on clicking sitemap address. How to debug that issue ?

  11. Hi Florian,
    First, open the “Manage installed module” page (https ://prnt.sc/l66xs5) and upload this archive (https ://goo.gl/zGP9SS) there. The archive extension can be: .zip or a tarball format (.tar, .tar.gz or .tgz). Most importantly, the name of the module and the archive should be “gsitemap” (http ://prntscr.com/l66z4u). If this doesn’t work, you will need to check the access rights to the folders.

  12. Hi I’ve downloaded the module and renamed it but still can’t find it in the “module” panel. is there any other step?

Post a new comment

BelVG Newsletter
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Email *