Open source  /  Implementation guide

Open-source implementation · E-Commerce SEO

Do e-commerce SEO on open source, platform by platform

What this is. A build-it-yourself path to the same outcome, made from open-source parts you host. It does not publish 5 Kings’ internal method, client data, or any third party’s confidential information — and it says plainly where the open-source path is weaker than a specialist service.

In one paragraph

Commerce SEO fails in the same five places on every platform: faceted URLs, canonical logic, variant duplication, out-of-stock handling and internal search pages. What changes is where you can intervene. This guide covers the open-source tooling and the platform-native intervention point for each of the eleven platforms 5 Kings works on.

What you end up with

  • A canonical and facet policy written as rules, implemented with platform-native hooks rather than theme hacks
  • Variant and out-of-stock handling that matches how the catalogue actually behaves
  • A crawl of the faceted surface that proves how many URLs you are generating
  • Structured data for product, offer, availability and reviews that survives a validation run

The reference stack

Every project below is open source and self-hostable. Licences are the ones the project publishes today; check them against your own distribution model before you ship, because a licence can change and an AGPL project has obligations a MIT project does not.

LayerOpen-source projectLicenceWhat it does for you
CrawlerGreenflare SEO SpiderGPL-3.0Crawl the faceted surface, count distinct URLs, find facet combinations that are indexable and worthless.
Log analysisGoAccessMITWhich facet combinations does Google actually fetch, and how often?
Structured data validationGoogle Rich Results Test + local JSON-LD lintn/aProduct/Offer/AggregateRating errors are the most common commerce schema failure; validate before shipping.
Sitemap generationPlatform-native sitemap or a generator you ownvariesSplit by type (product, category, brand, article), cap at 50k URLs per file, and never include faceted or search URLs.
PerformanceLighthouse CIApache-2.0Track PDP and PLP medians per template, not a single sample.
Internal search controlrobots + noindex policy in the platformn/aInternal search result pages should be noindexed and de-linked; every platform has a setting or a template hook for it.

Build it

1. Inventory the URL surface before fixing any of it

Crawl with facets and sort parameters enabled and count. Most stores discover they publish 20× more URLs than products. You cannot write a facet policy until you know the multiplier.

2. Write the facet policy as three lists

Indexable facets (those with real demand: brand, category, one attribute), crawlable-but-not-indexable (multi-select combinations, price ranges), and blocked (sort, view, session, tracking). The policy is a document with URLs as examples, not a vibe.

3. Implement it at the platform's own layer

Every platform has a supported intervention point; using it means the next update does not undo your work. The table below is the one I would use.

# platform → intervention point
Shopify          → theme.liquid canonical + noindex via Liquid, Metaobjects for facets
WooCommerce      → wp_robots filter + rel_canonical, no theme edit needed
Magento/Adobe    → layered navigation canonical settings + robots per filter
BigCommerce      → facet canonical via Stencil template + robots.txt
Shopware         → SEO URL templates + canonical in the storefront controller
PrestaShop       → facet block configuration + canonical in the controller
Salesforce/SFCC  → SEO URL rules + canonical via controller, not ISML override
SAP Commerce     → Solr facet config + UrlResolver rules
OpenCart         → SEO URL module + canonical in controller
Shopify Plus     → same as Shopify plus Search & Discovery app rules
Headless/custom  → your own router owns canonical; document the rule per route

4. Handle variants and stock honestly

Decide one policy per catalogue: variants as separate indexable URLs when they carry distinct demand, otherwise a single canonical parent. Out-of-stock pages stay live with an availability signal; deleting them throws away the ranking that took a year to build.

5. Ship structured data that matches the page

Product + Offer with price, currency, availability and shipping; AggregateRating only where real reviews exist. Every field must be visible on the page, or it is a lie the validator will eventually catch.

6. Control internal search

Noindex the internal search results, remove the search URL pattern from the sitemap, and make sure the search box does not generate crawlable links in the megamenu.

7. Re-crawl and diff after each change

The diff is the proof: URL count down, indexable facets unchanged, canonicals stable, sitemap matching the crawl. Without the diff you have an opinion about what changed.

Acceptance checks

If you cannot verify a claim, it is not a finding. These are the checks that close the work; each one can be run by somebody who did not build it.

Acceptance checkHow to verify it
Total crawlable URL count matches the policyPost-change crawl count vs the number written into the policy document.
Every product URL is 200 and self-canonicalCrawl assertion; exceptions listed explicitly.
No facet URL appears in the sitemapJoin sitemap URLs to the facet regex; must be empty.
Product schema has price, currency, availability, and visible equivalentsRich Results Test pass plus a manual spot-check that each field is on the page.
Out-of-stock products keep 200 plus an availability signalSample 20 out-of-stock SKUs; assert status and schema.
PDP and PLP Lighthouse medians within threshold5-run median per template compared to the stored baseline.

Effort and cost

Estimate
Skill neededIntermediate for a single platform; advanced across a headless or multi-storefront setup
Build time1–3 days for policy + implementation on one platform; 1 day per additional platform
Running costMonthly crawl and diff; re-run after catalogue or template changes
What you must hostLaptop plus a staging store per platform.

What open source does not give you

The honest half of the comparison. Each of these is a reason somebody buys the service instead of building it, and pretending otherwise would make the rest of this page worthless.

  • Facet indexation behaviour is decided by the search engine, not by you. You can shape it with canonicals, noindex and internal linking; you cannot guarantee it.
  • On fully hosted platforms (Shopify, BigCommerce, Salesforce Commerce) some URL and canonical logic is platform-controlled. The guide names the intervention point, but not every rule is reachable.
  • Crawl budget effects are only visible in logs over weeks. Expect four to six weeks before a facet cleanup shows in crawl statistics.
  • No tool tells you which facets have search demand. That requires keyword data, which is a separate source.

Scope only, stated so you can compare it with the build above.

  • Facet policy design against the catalogue’s real demand, which needs keyword and sales data
  • Platform-specific implementation in the platform’s own layer, with a rollback per change
  • A crawl-and-diff after each change, with the before and after recorded

Sources and further reading

What this page does not include. This guide documents an open-source implementation of the same outcome. It deliberately leaves out 5 Kings’ internal playbooks, client data, vendor terms and unpublished method: we publish what any competent team can reproduce, and we do not publish what belongs to a client or to a contract. Where a step depends on a decision only your business can make, the guide says so instead of guessing.

Take it with you

Do e-commerce SEO on open source, platform by platform

The full guide as an A4 PDF: the reference stack with licences, the build steps, the acceptance checks and the honest limits — in one file you can hand to an engineer or print for a planning session.

PDF · A4 · no email required · free to redistribute with attribution

Open-source Guides & PDFs