
Learn how to create an XML sitemap, submit it to Google Search Console, and track your site's indexing status. This 30-45 minute tutorial requires no coding knowledge and works for WordPress and Shopify users.
Install Yoast SEO and complete the configuration wizard to automatically generate your XML sitemap at yoursite.com/sitemap_index.xml
Add your sitemap URL to robots.txt, as 23% of websites miss this step, leading to inefficient crawling.
Submit to Google Search Console by verifying ownership and adding your sitemap URL in the Sitemaps section.n
Exclude low-value pages like thank you pages and duplicates to keep your sitemap clean and focused
Monitor weekly in Search Console for indexing errors, aiming for the indexed page count to match your sitemap within 10%
By the end of this tutorial, you will have a fully functional XML sitemap connected to Google Search Console. You will know exactly which pages search engines can find, how often they crawl your site, and where indexing problems occur.
Your success criteria: a sitemap visible at yoursite.com/sitemap.xml, zero errors in Search Console, and the ability to track indexing status weekly. This entire setup takes 30 to 45 minutes for WordPress users and requires no coding knowledge.
15% of websites lack an XML sitemap entirely, which means search engines waste time guessing which pages matter. You will not be in that group after today.
Before starting, confirm you have these items ready. Missing any will cause delays.
WordPress admin access (Administrator role, not Editor)
Google account for Search Console access
FTP or file manager access (optional, for manual verification)
30 to 45 minutes of uninterrupted time
Potential blockers include conflicting SEO plugins (you need only one), hosting restrictions on XML files, and outdated WordPress versions. Update WordPress to 6.0 or higher before proceeding.
If you use Shopify instead of WordPress, the platform generates sitemaps automatically at yourstore.com/sitemap.xml. Skip to Step 5 for Search Console setup.
An XML sitemap is a roadmap for search engine crawlers. It lists every page you want indexed, when each was last updated, and how important each page is relative to others.
Without a solid sitemap, bots waste time crawling irrelevant pages. This hurts your overall SEO performance report and delays the indexing of new content. For web developers focused on SEO strategies, sitemaps provide the foundation for measurable tracking.
Alternative approaches exist. You could rely on internal linking alone, but 23% of websites have pages that do not link to their sitemap in robots.txt, creating crawl gaps. Manual submission works for tiny sites, but automation scales better.
Action: Log in to your WordPress dashboard. Navigate to Plugins, then Add New. Type "Yoast SEO" in the search bar.
Click Install Now on the Yoast SEO plugin (look for 5+ million active installations). After installation completes, click Activate.
Expected result: A new "Yoast SEO" menu item appears in your left sidebar. If you see a setup wizard prompt, proceed to Step 2.
Common failure: "Installation failed" error usually means insufficient server permissions. Contact your host or use FTP to upload the plugin manually from wordpress.org/plugins/yoast-seo.
Action: Click the Yoast SEO menu item, then select "First-time configuration" or "General" and look for the configuration wizard.
Follow these prompts exactly:
Site representation: Select "Organization" for businesses or "Person" for personal blogs
Social profiles: Add your business social media URLs
Content types: Enable indexing for Posts and Pages; disable for Tags unless you use them strategically
Expected result: The wizard shows a green checkmark on completion. Your site now has basic SEO settings configured.
Checkpoint: Visit Yoast SEO, then Settings, then Site Features. Confirm "XML sitemaps" toggle is ON (green).
Action: Open a new browser tab. Type your domain followed by /sitemap_index.xml (example: yoursite.com/sitemap_index.xml).
Expected result: You see an XML file listing multiple sitemaps: post-sitemap.xml, page-sitemap.xml, and possibly category-sitemap.xml. Each links to individual page listings.
Click one of the child sitemaps (such as post-sitemap.xml) to verify that it contains your actual URLs with lastmod dates.
Common failure: 404 error means sitemaps are disabled or permalinks need refreshing. Go to Settings, then Permalinks, and click Save Changes without making any changes. This flushes rewrite rules.
Action: Navigate to Yoast SEO, then Tools, then File Editor. Locate the robots.txt section.
Add this line at the bottom (replace with your actual domain):
Sitemap: https://yoursite.com/sitemap_index.xml
Click Save changes to robots.txt.
Expected result: Visit yoursite.com/robots.txt in your browser. The sitemap line appears at the bottom.
Why this matters: 23% of websites fail to link their sitemap in robots.txt. This step ensures crawlers find your sitemap immediately upon visiting your site.
Action: Go to search.google.com/search-console. Click "Add property" and enter your full URL (include https://).
Choose the verification method. For WordPress, the easiest option is the HTML tag:
Copy the meta tag Google provides
In WordPress, go to Yoast SEO, then Settings, then Site Connections
Paste the verification code in the Google field
Return to Search Console and click Verify
Expected result: Green checkmark with "Ownership verified" message. You now have full access to Search Console data.
Alternative: If you have DNS access, the TXT record method provides verification that survives plugin changes.
Action: In Search Console, click "Sitemaps" in the left menu. In the "Add a new sitemap" field, type: sitemap_index.xml
Click Submit.
Expected result: Status shows "Success" or "Pending" (pending is normal for new submissions). The "Discovered URLs" column populates within 24 to 48 hours.
Bookmark this page. You will return here weekly to monitor SEO performance tracking metrics.
Common failure: "Couldn't fetch" error means Google cannot access your sitemap. Check if your site blocks crawlers via hosting settings or a security plugin.
Action: Return to Yoast SEO, then Settings, then Content Types. Review each content type.
For each type, decide:
Show in search results: ON for pages you want indexed
Show in search results: OFF for thank-you pages, landing page variants, or internal-only content
Check the Taxonomies section. Categories typically deserve indexing. Tags often create thin content pages, so consider disabling them.
Why this matters: Over 17% of websites have sitemaps containing redirecting URLs. Clean sitemaps include only pages that return a 200 status code.
Action: Edit any page you want excluded from the sitemap. Scroll to the Yoast SEO panel below the content editor.
Click the "Advanced" tab (gear icon). Set "Allow search engines to show this page in search results" to No.
Common pages to exclude:
Privacy policy and terms pages (unless you want them ranked)
Thank you, and confirmation pages
Duplicate content or test pages
Author archives (if you have one author)
Expected result: These pages disappear from your sitemap within 24 hours. Verify by checking the sitemap URL directly.
Action: In Google Search Console, click "Settings" (gear icon), then "Email preferences." Enable notifications for:
Coverage issues
Indexing problems
Manual actions
Create a calendar reminder to check Search Console every Monday. Focus on the "Pages" report under "Indexing" in the left menu.
Key metrics to track:
Indexed pages: Should match your sitemap count (within 10%)
Not indexed: Review reasons; "Crawled but not indexed" needs investigation
Errors: Any red flags require immediate attention
For deeper SEO performance tracking, connect Search Console to your WordPress analytics setup for unified reporting.
Yoast provides several sitemap settings worth adjusting based on your site structure.
Safe defaults (keep as-is):
XML sitemap feature: ON
Posts and Pages: Show in search results
Max entries per sitemap: 1000 (Yoast default)
Must-change settings for most businesses:
Media pages: Set to OFF (these create thin content)
Format-based archives: Set to OFF
Author archives: OFF if single author, ON if multiple authors with unique content
For e-commerce sites using WooCommerce, ensure product pages show in search results. Product categories may or may not deserve indexing depending on your content strategy. Review essential WordPress plugins to complement Yoast and enhance SEO.
Run these tests to confirm your sitemap works correctly.
Test 1: Direct access
Visit yoursite.com/sitemap_index.xml in an incognito browser window. The sitemap should load without prompting for login or errors.
Test 2: Search Console validation
In Search Console, click your submitted sitemap. "Status" should show "Success." Click "See index coverage" to view detailed page status.
Test 3: New content indexing
Publish a new page. Wait 24 hours. Check if it appears in your sitemap. Then, verify in Search Console under URL Inspection by pasting the new page URL.
Success definition: All three tests pass. Your sitemap accurately reflects your site, Search Console shows no errors, and new content appears within 48 hours.
Error: "Sitemap could not be read."
Symptom: Search Console shows a fetch error. Cause: Security plugin blocking Google's crawler. Fix: Whitelist Googlebot in your security plugin settings (e.g., Wordfence, Sucuri).
Error: "URL is not on this sitemap."
Symptom: Important pages are missing from the sitemap. Cause: Page set to noindex or excluded in Yoast settings. Fix: Edit the page, go to the Yoast Advanced tab, and set "Allow search engines" to Yes.
Error: "Indexed, though blocked by robots.txt."
Symptom: Conflicting signals confuse Google. Cause: Robots.txt blocks a page that is in your sitemap. Fix: Remove the Disallow rule from robots.txt or remove the page from your sitemap.
Error: "Redirect error" in sitemap
Symptom: Sitemap contains URLs that redirect. Cause: Old URLs not updated after permalink changes. Fix: Regenerate the sitemap by toggling XML sitemaps OFF, then ON, in Yoast. Clear any caching plugins.
Error: "Submitted URL has a crawl issue."
Symptom: Google cannot access specific pages. Cause: Server timeout, 5XX errors, or authentication requirements. Fix: Check server logs, increase PHP memory limit, or remove password protection.
Your sitemap foundation is complete. Here is how to build on it.
Immediate next steps:
Submit your sitemap to Bing Webmaster Tools for broader coverage
Set up strategic link building to improve the authority of indexed pages
Create an image sitemap if visual content drives your traffic (Yoast includes images automatically)
Advanced extensions:
Video sitemaps for YouTube embeds (requires Yoast Video SEO premium add-on)
News sitemaps for time-sensitive content (requires Yoast News SEO)
Hreflang sitemaps for multilingual sites
91% of respondents report that SEO positively impacts website performance. Your sitemap setup puts you ahead of the 15% of sites operating without this foundation. Monitor weekly, fix errors promptly, and watch your indexing improve.
Yoast SEO is a WordPress plugin that automates technical SEO tasks, including XML sitemap generation, meta tag management, and on-page content analysis. It creates and updates your sitemap automatically whenever you publish or modify content, eliminating manual XML file management.
Manual sitemap creation requires coding knowledge and constant updates. Yoast handles sitemap generation, robots.txt configuration, and schema integration automatically. For SEO beginners, this removes technical barriers while ensuring best practices are followed consistently.
Navigate to Plugins, then Add New in your WordPress dashboard. Search for "Yoast SEO" and click Install, then Activate. Complete the configuration wizard by selecting your site type, adding social profiles, and choosing which content types to index. The entire process takes 10 to 15 minutes.
The free version handles XML sitemaps and basic SEO perfectly. Consider Premium if you need automatic redirects when URLs change, internal linking suggestions, or multiple focus keywords per page. Most small businesses operate effectively with the free version for their first year.
Yoast generates XML sitemaps, adds canonical tags to prevent duplicate content issues, creates schema markup for rich snippets, and manages meta robots tags. It also pings search engines when your sitemap updates, accelerating the discovery of new content.
The sitemap index file acts as a directory listing all your individual sitemaps. Yoast creates separate sitemaps for posts, pages, categories, and other content types. This organization helps search engines process large sites efficiently and makes troubleshooting easier when specific content types have issues.
0
4
0