How to Set Up an XML Sitemap

Table of Contents

TL;DR: To set up an XML sitemap, generate it using Yoast SEO or an online tool, verify all important pages are included, and submit it through Google Search Console.

Last Updated: March 2026

Key Takeaways

  • Helps Google index pages faster
  • Essential for Kenyan online businesses
  • Keep it under 50,000 URLs
  • Submit via Google Search Console
  • Monitor for errors post-submission

An XML sitemap helps Google discover and index all your important pages faster. Your Nairobi business appears in search results sooner.

For competitive Kenyan markets where new content needs immediate visibility, understanding what XML sitemaps are ensures you’re not losing traffic to competitors simply because Google hasn’t found your pages yet.

Imagine you run an online electronics store selling laptops and smartphones across Kenya. You upload 50 new product pages for the latest iPhone models and MacBooks.

Weeks later, they still don’t appear in Google search results. Meanwhile, competitors selling the same products at higher prices are capturing all the “buy iPhone 16 Nairobi” searches.

A properly submitted XML sitemap would have gotten your pages indexed within 48 hours. You’d capture those early buyers.

Steps to Set Up an XML Sitemap for Your Kenyan Business

Step 1: Generate your sitemap using Yoast SEO (WordPress) or an online sitemap generator tool

Most website platforms create sitemaps automatically at yoursite.co.ke/sitemap.xml. This perfecting technical SEO fundamentals approach ensures Google finds all your content.

Step 2: Open your sitemap file and verify it includes all important pages (products, services, blog posts)

Remove thank-you pages, admin pages, and duplicate content that shouldn’t be indexed. This understanding of what technical SEO best practices keeps your sitemap focused on valuable content.

Step 3: Keep your sitemap under 50,000 URLs and 50MB in size

If larger, split into multiple sitemaps using a sitemap index file. Proper sizing helps indexing your website pages happen efficiently.

Step 4: Submit your sitemap to Google Search Console under “Sitemaps” in the left menu

Paste the full URL (https://yoursite.co.ke/sitemap.xml) and click submit. This tells Google exactly where to find your complete site structure.

Step 5: Check for errors in Google Search Console 48 hours after submission

Fix any “couldn’t fetch” or “invalid URL” errors immediately to ensure proper indexing. Monitoring helps master web crawling processes catch problems before they hurt rankings.

Step 6: Update your sitemap automatically whenever you add new pages

Modern CMS platforms do this automatically. Verify yours is configured correctly.

Automatic updates ensure new product listings appear in search results as soon as possible.

Your XML Sitemap Checklist:

Infographic checklist showing the seven essential steps for setting up an XML sitemap for Kenyan businesses. The visual guide includes checkboxes for sitemap generation, page verification, URL limits under 50,000, Google Search Console submission, error monitoring, automatic CMS updates, and robots.txt configuration. Designed for Nairobi-based online stores and service providers who need to ensure Google discovers their product pages, blog posts, and service listings quickly in competitive Kenya markets.
Complete XML sitemap setup checklist for Kenya businesses to accelerate Google indexing.
  • ☐ Sitemap generated and accessible
  • ☐ Only important pages included
  • ☐ Under 50,000 URLs total
  • ☐ Submitted to Google Search Console
  • ☐ No errors in GSC report
  • ☐ Auto-updates enabled on CMS
  • ☐ Robots.txt references the sitemap location

Submit your sitemap today and check Google Search Console in 48 to 72 hours. Based on AM Digital KE client data across Kenyan accounts, new pages start appearing in search results within 3 to 5 days instead of weeks.

This gives you a first-mover advantage on fresh content and new inventory.

Have questions about indexing? Check out my SEO FAQs page for detailed explanations of sitemaps and crawling concepts.

Want to cover all technical bases? Download this complete SEO Checklist to ensure proper XML sitemap configuration and more.

Ready to speed up your indexing? Let’s run a free SEO analysis to identify which pages aren’t being found by Google yet.

These articles will walk you through the basics of getting your pages discovered and ranked faster.

seo-kenya-example
Real Kenya e-commerce sitemap showing proper URL structure and priority settings.
seo-before-after
Indexing speed improvement after XML sitemap submission for Nairobi online store.

Have more SEO questions? Our SEO FAQs Kenya page answers the most common ones.

Frequently Asked Questions

Why is an XML sitemap important for Kenyan businesses?

It ensures Google finds and indexes your pages quickly. This is crucial for competitive markets like Nairobi.

What happens if I don’t submit an XML sitemap?

Your pages may take longer to appear in search results. You lose traffic to competitors.

Can I manually create an XML sitemap?

You can, but automated tools like Yoast SEO make it easier and error-free.

How often should I update my XML sitemap?

Update it whenever you add or remove significant pages on your site.

seo-audit-kenya-cta
Get a free technical SEO audit from AM Digital KE’s Nairobi team.
Click me to learn SEO