Technical SEO on Magento: the 10-minute checklist
Before investing in content and links, it is worth checking that your Magento store is not sabotaging its own SEO. Almost all the indexing problems I see in projects come from the same five points, and they can be checked in a few minutes from the admin panel and from Search Console.
This is the checklist I use as a first check. If you only want to dig into the robots.txt file, I have already written a guide with a ready-to-copy example (in Italian).
1. Robots.txt: block the noise, not the useful resources
The file is managed from Content > Design > Configuration > Edit (per store view) > Search Engine Robots > Edit custom instruction of robots.txt File. Check three things:
- cart, checkout, customer area, internal search and product comparison are excluded;
- sorting and pagination parameters don’t end up in the index uncontrolled;
- CSS, JavaScript and images stay accessible: Google needs them to render the pages;
- the
Sitemap:line points to the correct sitemap URL.
2. XML sitemap: generated, up to date and submitted
The configuration is in Stores > Configuration > Catalog > XML Sitemap, where you set frequency and priority for categories, products and CMS pages. The actual generation is scheduled from Marketing > SEO & Search > Site Map, with cron running.
- check that cron really runs and that the date of the last generation is recent;
- open the file and check that it only contains URLs that return 200 and that you really want indexed;
- with several store views you need one sitemap for each;
- submit it in Search Console and check the coverage report.
3. Canonical: one page, one address
In Stores > Configuration > Catalog > Catalog > Search Engine Optimization turn on Use Canonical Link Meta Tag For Categories and For Products. Then check two typical cases:
- Products in several categories: with Use Categories Path for Product URLs turned off every product has a single URL, and it is the simplest choice to manage.
- Filtered pages: open a category with an active filter and look in the source at what the
rel="canonical"tag points to. It must point to the category, not to the filtered version.
4. URL parameters and pagination
Layered navigation generates almost infinite combinations (?product_list_order=, ?product_list_limit=, price and attribute filters). The risk is wasting crawl budget on pages with no value. In Search Console, in the pages report, look at how many URLs with parameters show up as “crawled but not indexed” or “duplicate”: if there are many, step in with canonicals and rules in robots.txt.
5. Hreflang, if you sell in several languages
Magento does not generate hreflang tags by default. If you have several store views in different languages or countries, you need an extension or a dedicated module, and every page must point to its versions reciprocally, otherwise Google ignores the annotations. Check it with the “International targeting” report or with a crawling tool.
5-minute check with Search Console
- Indexing > Pages report: read the reasons why pages are not indexed.
- Sitemaps report: “Success” status and a number of discovered URLs consistent with the catalog.
- URL Inspection on a filtered category and on a product: check the canonical selected by Google.
- Crawl stats report (in Settings): check that CSS and JS resources are not blocked.
If you find anomalies and want a hand fixing them, write to me: a technical audit of a Magento store usually takes a few hours.