How to fix missing canonical on OpenCart
Add a self-referencing canonical tag to every page so Google knows which URL is the "official" version of that content.
Steps for OpenCart
- OpenCart does not output canonical tags by default — install an SEO extension such as 'SEO Extension by OpenCart.com' or 'Better SEO' from the OpenCart Marketplace.
- After installing, navigate to the extension's settings in Extensions → Extensions → SEO and enable canonical tags for product, category, and information pages.
- Alternatively, edit `catalog/view/theme/your-theme/template/common/head.twig` and add: `<link rel="canonical" href="{{ canonical }}">`, passing the canonical URL from the controller.
- Clear the theme cache under Dashboard → (developer settings) → Theme → Refresh after making template changes.
<link rel="canonical" href="https://www.example.com/products/blue-running-shoes/" />What is missing canonical?
A canonical tag is a single line of HTML code placed in the `<head>` section of a page that tells search engines: "This URL is the definitive version of this content." It looks like `<link rel="canonical" href="https://www.example.com/your-page/" />`. When a page is missing this tag entirely, search engines have no authoritative signal and must guess which version of the URL to index — and they may guess wrong.
Ecommerce stores are especially vulnerable to duplicate content because the same product or category page can be reached through dozens of slightly different URLs — sorting parameters, filtering options, session IDs, UTM tracking codes, HTTP vs HTTPS, www vs non-www, and more. Without a canonical tag, Google may split your ranking power ("link equity") across all those variations instead of concentrating it on one URL, causing every version to rank lower than it should. Google has also stated that canonical signals help it crawl your site more efficiently, which matters when you have thousands of products. Missing canonicals can directly reduce organic traffic and revenue from pages that should be ranking well.
See the complete Missing canonical guide for every platform and the full background.
Not sure if your OpenCart store has this?
Run a free SEOLZ audit — we’ll find missing canonical and every other issue across your whole site.
Scan my site free