Best Magento 2 SEO Guide: Setting, Optimization, Tips for 2024

Ecommerce marketing
16mid read March 24, 2024
Ecommerce marketing
Best Magento 2 SEO Guide: Setting, Optimization, Tips for 2024
4.1
(20)

You don’t exist for your customers unless your store is not on the first page of Google. There, we said it.

By and large, customers have no idea what brand to choose when shopping online; they google an item and see the stores that come up on the first page of SERP. But how do you get there? The answer is: technical SEO. 

With Magento, search engine optimization becomes easy. Don’t worry, we’ll show you how. Read on to find a handy Magento SEO guide on how to leverage the platform’s built-in tools and settings and drive up the traffic to your online store. Find a bonus Magento SEO checklist to download at the end of the article. Let’s dive right in!

What Is SEO?

Search engine optimization (SEO) is a set of practices to help Google and other search engines crawl and index your website faster. 

Technical SEO stands for behind-the-scenes optimizations, including website architecture, page load speed, data markups, etc. But you can do a lot of it on your own. Magento offers quite a few settings to create SEO-friendly URLs, build robots.txt sitemap, use headings on a webpage correctly, etc. 

How Important Is SEO for a Magento Store?

SEO for Magento ecommerce will make your store flashier for search engines and easier to find for online shoppers. Forbes reports that the first page of Google captures 71 percent of search traffic clicks, while second-page results get less than 6 percent of all website clicks. 

Here’s what you get if you follow Magento SEO best practices:

  • Your brand will be more discoverable because you’ll rank higher on Google.
  • Your product pages will perform better and drive more conversions since the products in your catalog will correspond to a users’ search intent.
  • You build authority in the eyes of search engines and potential customers.

On top of that, you’ll see the growth of organic traffic to your website. And that means you’ll spend less on paid advertising (the dream of all online entrepreneurs!).

In a nutshell, SEO is super important for an ecommerce store. This is especially important to consider when creating a Magento website. Let’s see how to do SEO on Magento and secure your #1 spot on Google.

Magento 2 SEO Metadata Settings

There are two reasons why you’d want to write compelling metadata for your webpages. 

For one thing, unique and catchy meta titles should lure the user to follow the URL in Google search. And for another, included keywords will draw the attention of the crawlers and help you rank higher. If you want to check website rankings you can use Sitechecker. This tool has a daily rank tracking feature that will keep you up to date with any changes in ranking.

Configuring metadata settings is the first tip in this Magento 2 SEO guide. Let’s see how to make your website look attractive even before your customer lands on your homepage.

Homepage 

It’s hard to stand out without a branded homepage title. Google itself recommends including your site name at the end of each page title and, most importantly, at the homepage. 

By default, Magento 2 preserves a “Homepage” website title which will be displayed at the top of the browser. To customize the homepage tag, follow the path Content > Pages > Homepage > Edit. Type in the name of your brand and a few keywords to help Google spiders identify what you’re selling.

Homepage title customization in the Magento 2 admin panel.
Homepage title customization in the Magento 2 admin panel. Source: Mageplaza.

Metadata

Metadata includes titles and descriptions not displayed directly on the website. Instead, they are written into the code and notify the search engine of the contents and the purpose of your website. According to Google Search Central Blog, meta tags are not factored in by Google’s ranking algorithms. However, they will impact your page’s CTR (click-through-rate) and draw more relevant customers to your store.

Magento 2 SEO settings allow you to add metatags for two store sections: categories and products.

Meta Tags for Categories Settings

To start configuring metadata for categories in Magento, go to Catalog > Categories > Search Engine Optimization. Fill in three fields of meta title, meta description, and meta keywords for each category. 

Metadata for categories configuration in Magento 2.
Metadata for categories configuration. Source: Meetanshi.

Mind that you can write 70 characters max for Meta Title and 255 characters max for Meta Description. Try to come up with a compelling and keyword-rich description that will tempt the user to click on it and will correspond to their search intent.

Use online software like MOZ or SEOmofo to preview your metadata as a snippet.

Meta Tags for Products Settings

Manually adding meta tags for products in Magento is similar to adding categories: Catalog > Product > Basic Settings > Search Engine Optimization. To make this process less tedious and time-consuming (especially for the stores with thousands of SKUs), Magento added a Fields Auto-Generation function. A merchant can create a template with meta title, description, and keywords for all products across your website.

To access the feature, follow Stores > Configuration > Catalog > Catalog > Product Fields Auto-Generation.

product Fields Auto-Generation function in Magento 2

This Magento SEO optimization feature still has a few limitations: 

  • Character limitations specified in Categories metadata settings still apply. Since a meta description for a product is usually longer than 255 characters, we recommend editing this meta tag separately. 
  • The settings are not retrospective and apply only to newly created, imported, or migrated products. So if you’ve found a misspelling or want to edit the metadata quickly, the changes will not be automatically reflected in the existing products.
  • The template applies globally, so you won’t be able to change metadata for particular products.
Expand Magento Metadata SEO settings with a custom extension

Build any Magento extension with Elogic and make your ecommerce SEO strategy hassle-free

Develop a Magento extension now

Microdata / Rich Snippets

A snippet shows a meta title and a meta description Google will show to a user’s search query. A rich snippet enhances this metadata with extra information, which according to the studies increases website CTR by 677% and drives 20-40% more traffic. It looks like this:

Carbon38 rich snippet in Google.
An example of a rich snippet of Elogic’s client, Carbon38.

Rich snippets or microdata is a breakthrough of Magento 2 in comparison with Magento 1. The feature appears in all product pages by default and lists only basic tags (name, SKU identifier, rating, and price). You’d need to install an extension to add more microdata to a snippet, like stock availability or product description.

Prefixes and Suffixes for Title Tags

It’s a sign of good manners (and business) to have your brand name appear on all webpages of your store. Adding your company name as a prefix or a suffix to title tags will allow both new and returning users to recognize your brand. Usually, it goes as STORE NAME – PAGE TITLE for a prefix or PAGE TITLE – STORE NAME for a suffix.

To configure the settings, go to Content > Configuration > Website > HTML Head > Page Title Prefix & Suffix.

Page title prefix and suffix configuration in Magento 2
Source: Magento User Guide.

Magento 2 SEO Tips For Unique Content

The biggest threat to Magento SEO optimization is duplicate content. People often think of it as non-original, plagiarized content on the website; yet, it also concerns behind-the-scenes text and metadata. 

Here’s how it can affect an ecommerce merchant. Because several products may belong to the same category but vary in size and color, their name and description will be pretty much the same but point to different links. Search engine crawlers won’t be able to determine which URL to index (more on that later in the article) and will lower your website performance.

How do you address duplicate content issues? One of the essential Magento SEO tips is to set canonical tags and category paths for product URLs.

Canonical Tags

Canonical is basically a fancy word for “official”. By setting a canonical tag, you notify a search engine of the “official version” of the webpage among the potentially many links with duplicate content. 

Let’s see how a canonical tag works based on an example of Roller Rabbit, one of Elogic’s clients. This Swiss Dot Evita dress appears in two product categories: Mother’s Day and New Arrivals.

Roller Rabbit dress product URL.
Roller Rabbit dress product URL.

An added canonical tag specifies that the product pages should be treated as a copy of https://www.rollerrabbit.com/swiss-dot-evita-dress, and all the content metrics and ranking power should be actually accredited to the specified link.

A canonical tag on Roller Rabbit dress product URL.

Cool right? Magento 2 merchants can set up the same canonical tag for categories and products to avoid duplicate content. Go to Admin > Stores > Settings > Configuration >  Catalog. Scroll down to SEO and choose “Yes” for “Use Canonical Link Meta Tag for Categories/Products.” 

Canonical tag configuration in Magento 2
Source: Mageplaza.

Category Path for Product URLs

Category paths show the logic of the store navigation and indicate the hierarchy of a webpage. The feature can be accessed from Stores > Configuration > Catalog > Search Engine Optimization. 

If turned on, they help search engine crawlers index the page faster but may lead to duplicate content. The best-case scenario for effective Magento SEO optimization would be to enable canonical tags alongside category paths. This way, a product will be accessible from all its assigned categories and won’t experience any SEO conflicts.

Magento Tools for SEO-Friendly URLs

URLs optimized for SEO give the Google crawlers an idea of what the website is about. They tend to be succinct and keyword-rich.

But there’s more to SEO-friendly URLs. Here’s how to do SEO for Magento and help search engines understand your product catalog URLs without losing traffic or ranking position.

Suffix for Product and Category URLs

This new feature of Magento 2 allows changing URL suffixes for different product and category pages. To set it up, go to Stores > Configuration > Catalog > Catalog > Search Engine Optimization.

Suffix configuration for Category URLs in Magento

At the first glance, you might think of the feature as useless. No user will expect to see a different URL ending for product pages, and changing “.html” to “.com” will hardly add to the uniformity of your website links. On top of that, you’ll need to watch out for 404 errors after removing the suffix for old URLs and set redirects to new links.

However, merchants selling products overseas can benefit immensely from the feature. Different suffixes for the same product page will indicate the language version of the website, be it an “.en”, “.it”, or “.ru”. You can also disable the feature or change the “.html” suffix appearing by default if the feature somehow affects your international presence.

SEO-Driven URLs and Redirects

Clear and readable URL slugs make your website attractive to Google. And you’ll find the default settings of any CMS ruining product or category URLs for you with unnecessary words or complicated symbols.

Magento 2 allows you to customize any product or category URL by going Catalog > Products / Categories > {{Product}} / {{Category}} > Search Engine Optimization > URL Key.

If you suddenly want to change a link to the existing webpage, you can set up URL rewrites. Also known as redirects, Magento URL rewrites redirect any link with an URL to the new address. To set it up, go to Stores > Configuration > Catalog > Search Engine Optimization → select ‘No’ for ‘Use Categories Path for Product URLs and ‘Yes’ for Create Permanent Redirect for URLs.

URL configuration in Magento 2

Consider these few tips to optimize your ecommerce URL slugs:

  • include your targeted keywords;
  • make the hierarchy of your page clear (e.g., websitetitle.com/category-name/product)
  • eliminate unnecessary synonyms and repetitive words, especially if your product and category names are the same (e.g., themaltmiller.com/ingredients/hops/whole-hops/whole-citra-hops/ → themaltmiller.com/ingredients/whole-citra-hops/)
  • use hyphens (-) to separate words, not underscores (_) or any other characters.

Keep in mind: If you see an error “The value specified in the URL Key field would generate a URL that already exists”, you know that you have to use this setting to re-generate / rewrite the URL. It was quite a common issue in Magento 1; so if you’re still running on this obsolete version of the platform, Magento 2 migration will solve your problem with non-unique URLs.

Magento 2 Control Over Website Indexing

Let’s look at the website the way Google does. First, it finds information by crawling billions of sources. Then, it organizes the info by indexing it. It scans the contents and keywords of the webpage and identifies the purpose of the page. Your SEO for Magento ranking efforts will make sense only after indexing, which makes a webpage appear in SERP (Search Engine Results Pages).

Magento SEO optimization tools can speed up the web indexing process. Let’s take a closer look at each one of them.

Robots.txt

A robots.txt file is basically your instruction for Google robots. The file contains user agents and directives (i.e., disallows, allows, crawl-delays, etc.) for how they should crawl your website. Alongside the SSL certification (the one adding a lock icon to your https:// URL and making your website more secure), robots.txt protocol has become a new Internet standard.

Elogic robots.txt protocol.
An example of a robots.txt protocol.

Magento 2 has made it supereasy to configure robots.txt file without downloading it and editing it as plain text. Every time you wish to add a new rule/directive for a crawler, go to Content > Design > Configuration > Global / Edit > Search Engine Robots. Instruct the default crawlers which pages you wish to index for website ranking and check back for changes.

Robots.txt file configuration in Magento 2
Robots.txt file configuration in Magento 2. Source: Amasty.

Meta Robots

Meta robots extend the functionality of a robots.txt protocol. They also suggest Google crawlers how they should behave on your website. Magento 2 offers four parameters that Google crawlers will understand: 

  • INDEX, FOLLOW: a web crawler will index the site and pass link equity to the specified webpage. This parameter is set by default in Magento.
  • NOINDEX, FOLLOW: indexing will be restricted, but web crawlers will follow the links on that page. It makes sense to choose this meta robot for Thank You pages where you upsell a product.
  • INDEX, NOFOLLOW: a crawler will index the webpage once but won’t follow the links. The parameter is useful for blog posts or forums with external sources you don’t necessarily trust.
  • NOINDEX, NOFOLLOW: a crawler will neither index a webpage, nor follow its links. It’s mostly used for admin portals and technical staff pages.

Mind that meta robots apply only to sets of pages in Magento 2, so you won’t be able to customize them for single webpages. You’ll also need to extend Magento functionality in case you’re looking for more meta robot parameters, like noimageindex, none, noarchive, etc. 

XML Sitemap

XML sitemaps provide an easy way for webmasters to notify the search engines of the pages available for crawling. You basically list all the URLs on your website (even the undiscoverable ones), prioritize info for a search engine, provide basic metadata about each URL.

Magento 2 has added an XML sitemap to its armory of SEO tools. All you need to do is go to Configuration > Catalog > XML Sitemaps. The options configuration page will allow you to define how frequently the sitemap is updated, set priorities for categories and products pages, and even add images to your sitemap.

XML Sitemap configuration in Magento 2
Index faster and rank higher with Elogic

Hire a professional Magento developer and get a SEO module tailor-made to your e-store

Hire a developer now

Magento 2 SEO Tricks for Killer Visuals

Even if Andy Warhol himself creates the visual design of your store, the search engine won’t understand it without your help. Adding alt tags and optimizing your web images are the least you can do.

Alt Tags for SEO Images

Alt text (aka alt tags or alt attribute) is a description of an image. Initially used to improve web accessibility for visually impaired users, alt tags help a search engine understand the content of your images. So adding alt attributes is one of the underrated Magento 2 SEO tips to rank higher on Google Image Search and increase your website visibility.

Magento 2 allows you to add and edit alt text to any image. For product photos, go to Catalog > Products > {{product}} > Images and Videos > Alt Text. For logos, go to Stores > Configuration > General > Design > HTML Head > Header. Try to be descript and specific, and don’t overspam the tag with keywords.

Logo alt tag configuration in Magento 2
Logo image alt configuration in Magento 2. Source: Mageplaza.

Image Optimization

The heavier the website, the worse the performance. And one of the ways to speed up your Magento 2 store is to compress images.

Unfortunately, Magento 2 preserves the legacy of Magento 1 and doesn’t provide an image compressor out-of-the-box. You’ll need to extend the functionality with a custom module or install an extension from an official marketplace (if it’s compatible with your store, of course).

However, the lucky owners of Magento Commerce Cloud have one huge benefit: Fastly Image Optimizer.

  • It supports most common image formats (PNG, JPEG, and GIF).
  • Fastly IO helps to resize product photos and adapt their pixel ratios for responsive websites.
  • The feature forces lossy conversions, i.e. serves smaller images for browsers (for instance, JPEG or WEBp format instead of PNG).

Among the many Magento Commerce Cloud features, Fastly IO is the strongest in terms of SEO and content management. To enable it, go to Stores > Settings > Configuration > Advanced > System > Full Page Cache > Fastly Configuration > Image Optimization.

Image optimization in Magento 2
Source: Magento DevDocs.

The Only Magento 2 SEO Checklist You’ll Need

Feeling overwhelmed with all the SEO tips and settings? Indeed, technical SEO can be daunting and is something you constantly need to take care of. To make this process easier, we’ve made a handy Magento SEO checklist for you to keep track of all SEO tasks anytime.

Get a summary of all Magento 2 SEO settings

Share the checklist with your ecommerce team and rank #1 on Google faster!

Download in 1 click

Bottom Line 

If you’re having trouble gaining higher rankings on major search engines like Google, Baidu, or Yahoo!, keep up with the abovementioned Magento tips to unlock the true potential of your online store. 

The information covered in this blog post is just the tip of the iceberg and there are many other things to take into account when it comes to Magento SEO optimization. Thus, the best way to optimize your Magento 2 search engine optimization is to hire a Magento developer (or better an experienced development agency) that has vast experience in creating SEO-friendly websites.

How useful was this post?

Click on a star to rate it!

Average rating 4.1 / 5. Vote count: 20

No votes so far! Be the first to rate this post.

Davis
Get in Touch
Looking for a partner to grow your business? We are the right company to bring your webstore to success.
Table of contents
We use cookies to ensure that we give you the best experience on our website. If you continue, well assume that you are happy to receive all cookies on this website. More info
CLOSE GOT IT