How to Automate and Optimize Magento Meta Keywords for Better SEO
-
Andriy Kovalenko
- How to & Tutorials
- Updated: Jul 3, 2026
- 14 min read
Updated: added guides to Magento's built-in meta keywords fields and internal search behavior, refreshed the length recommendations, and added template examples and an FAQ.
Google hasn't used meta keywords for ranking since 2009 - yet Magento still ships the field on every product, category, and CMS page.
So what do you do with it? In this guide you'll see where meta keywords live in Magento by default, the two cases where the field is still worth filling, and how to fill it automatically - along with meta titles, descriptions, and H1s - using Advanced SEO Suite templates.
Table of Contents
- Where meta keywords live in Magento by default
- Do meta keywords affect Magento internal search?
- Why automating Magento meta keywords and tags matters
- Types of SEO templates and elements you can optimize
- Creating Magento SEO templates: Key steps and settings
- How to add product meta keywords in Magento templates
- Magento SEO for categories: Template best practices
- Meta keywords in Magento layered navigation templates
- Magento SEO preview and toolbar: How to validate metadata
- Final thoughts
Where meta keywords live in Magento by default
Magento has carried the meta keywords field since version 1.x, and it's still in every admin panel today:
- Products - Catalog > Products > edit a product > Search Engine Optimization > Meta Keywords.
- Categories - Catalog > Categories > select a category > Search Engine Optimization > Meta Keywords.
- CMS pages - Content > Pages > edit a page > Search Engine Optimization > Meta Keywords.
Whatever you enter there is rendered in the page source as <meta name="keywords" content="...">.
Should you fill it? For Google - no. Google has ignored the keywords meta tag since 2009, and Bing treats it much the same; Yandex gives it close to zero weight. The one major engine that still reads it is Baidu - relevant if you sell to China.
That leaves two honest reasons the field can still earn its place: Baidu, and Magento's own catalog search. The second one is worth a closer look.
Do meta keywords affect Magento internal search?
Yes - if the attribute is searchable. Magento's catalog search (OpenSearch or Elasticsearch) indexes every product attribute flagged as searchable, and meta_keyword is a regular product attribute: check Stores > Attributes > Product > meta_keyword > Storefront Properties > Use in Search. On our own store the attribute is searchable with a raised search weight.
That makes meta keywords a practical home for synonyms, brand nicknames, and common misspellings: Google never sees any benefit, but a customer typing an alternative name into your store's search box will find the product.
That's the honest scope of the field today: an internal search helper, not an SEO lever.
Why automating Magento meta keywords and tags matters
SEO templates matter for one simple reason: one template covers one page type - every product (or category, or filter page) in your store gets its metadata from a single rule instead of a per-page edit. The templates handle meta titles, meta descriptions, meta keywords, H1 headings, and SEO descriptions.
So, why does automation matter?
- Efficiency: Your team can stop micromanaging SEO fields and shift attention to strategy and growth.
- Fewer errors: Manual data entry is prone to mistakes - missed fields, duplicate titles, inconsistent formatting. Templates enforce consistency across the catalog.
- Faster updates: Whether you're launching a seasonal campaign or adjusting to new search trends, updates happen in minutes, not days.
- Better snippets and CTR: Metadata that matches the page produces cleaner search snippets - and cleaner snippets earn more clicks.
With the right tool - like our Advanced SEO Suite extension - you can create and apply templates for different page types (product, category, CMS), define rules, and fill out metadata fields in bulk.
One honest caveat: if your product and category metadata is already unique and well-thought-out, templates won't make it better - hand-written meta beats a generated one, and in that case we'd tell you to keep it (that's exactly what the Use existing meta tags setting is for). The place where templates have no real alternative is layered navigation: filter pages multiply into thousands of combinations nobody will ever fill by hand.

Next, we'll take a closer look at how this process works.
Types of SEO templates and elements you can optimize
The Advanced SEO Suite extension for Magento 2 lets you create SEO templates for different page types across your store. These include:
- Products - individual product detail pages.
- Categories - listing pages for product categories.
- Layered Navigation - dynamic pages created by applying filters within a category.
- CMS Pages - static content like
About UsorShipping & Payment.

Note: You can also create templates for blog and brand pages. To do this, you'll need to install the Blog MX module for blog support, and the Layered Navigation module to manage brand pages.
Templates allow you to automate several key SEO fields across your Magento site:
- Meta Title - appears in browser tabs and search engine results.
- Meta Description - the short summary shown in search snippets.
- Meta Keywords - the legacy field covered above; templates fill it for free if you use it.
- H1 (Page Title) - the main visible heading on the frontend.
- SEO Description - additional content for search engines that may also appear on the page.
Using variables to automate and personalize metadata
Templates support variables that automatically pull information from your store's catalog. These variables act like placeholders - when the template is applied, the module replaces each one with relevant data from a specific product, category, or filter selection. For instance, [product_name] inserts the actual name of the product.
Why use variables?
- Uniqueness - every page gets personalized metadata based on its own content.
- Dynamic updates - when data changes (like product names or prices), templates update the metadata automatically.
- Scalability - one template can power metadata for hundreds or thousands of pages at once.
Here are some commonly used variables for Magento store templates:
- For products:
[product_name],[product_brand],[product_price],[product_sku] For categories:
[category_name],[category_page_title]
General:
[store_name]
These variables work in any metadata field - titles, descriptions, H1, and keywords.
Creating Magento SEO templates: Key steps and settings
To get started with SEO templates, it's a good idea to first check the general settings in the SEO Suite module. One of the most important options here is how the system prioritizes existing Magento metadata versus data generated by templates. You'll want to understand this before applying templates storewide.
Once that's set, you can move on to creating a new template. Here's how the process works:
To begin, go to Marketing > Advanced SEO Suite > Templates (the menu path may differ slightly depending on your module version), click Add Template, and set Rule Type to Product.

After clicking Add Template, a template creation form will open where you need to fill in the main fields:
- Internal Name - Used only in the admin panel for identification. It's not visible on the storefront.
- Type (Rule Type) - Choose the page type:
Product,Category,Layered Navigation, orCMS Page. This choice determines which variables are available and how the template behaves. You'll need to select it manually - there's no default option. - Status - Set to Active or Inactive. Inactive templates won't apply on the frontend, which can be useful when editing.
- Store View - Choose which store view the template should apply to.
- Sort Order - Determines priority. If multiple templates could apply to the same page, the one with the higher Sort Order will take effect.

Next, fill in the metadata fields:
- Meta Title
- Meta Description
- Meta Keywords
- H1 (Page Title)
- SEO Description Position (optional): This setting determines where the SEO Description is displayed on the product page.
When everything's filled in, click Save and Continue Edit to unlock additional settings based on your selected template type.
How to add product meta keywords in Magento templates
When creating a product template, you'll work with the following metadata fields: meta title, meta description, meta keywords, H1 (page title), and SEO description position (optional).
Use variables to make these fields dynamic and unique for each product. That includes the keywords field: Google ignores it, but if you keep it for internal search (see above), templates fill it with zero extra effort.

Magento meta keywords examples with product variables
Meta Title: [product_name] - Buy online at [store_name] | [category_name]
The keyword [product_name] is placed at the beginning, where it carries the most weight. Adding the category name [category_name] helps clarify the page's topic, and the store name [store_name] contributes to brand recognition. Stick to the commonly recommended length (50-60 characters, including spaces) so the meta title displays in full in search results.
Meta Description: Buy [product_name] in [category_name] at [store_name]. Fast delivery, authentic products, and competitive prices. Order now and enjoy exclusive offers!
The snippet begins with the keyword [product_name], confirming relevance, then adds context with the category and store names. Concrete benefits - fast delivery, authentic products, competitive prices - make it more appealing, and a call to action like Order now tells the shopper what to do next.
Aim for 120-155 characters, and don't duplicate the meta title - the description should add something new. Make sure it matches what's actually on the page: a mismatch costs trust and clicks.
Meta Keywords: [product_name], [category_name], [product_brand]
The product name, category, and brand. As covered above, search engines don't rank by this field - fill it only if you use it for internal search, and keep the list short instead of stuffing it.
H1 (Page Title): [product_name] - [store_name]
A clear, relevant main heading built from the product and store names.
SEO description field: Setup and use cases
SEO Description: This field is optional for products, but worth filling. A relevant, informative SEO description gives search engines more page copy to work with and gives shoppers extra context right on the page.
SEO Description Position (optional): This setting controls where the SEO description appears on the product page. You can choose to display it under the Add to Cart button, in a dedicated tab, in the footer, or inside a custom block. The ideal placement depends on your store's layout and where the information will be most helpful to your customers.


Why your Magento SEO template might not work
Templates rarely "break": most questions our support team gets are about configuring them well, not about bugs. When a template seems not to apply, it's almost always one of these three things.
1. Ignoring character limits
Overshooting the commonly recommended lengths - 50-60 characters for meta titles and up to 155 for meta descriptions - means Google may cut your text off mid-sentence, which makes the snippet weaker and costs clicks.
Even though search engines don't rank by meta keywords, keep their length reasonable and consistent across templates too, if you choose to include them.
2. "Use existing meta tags" setting
One common source of confusion is the Use existing meta tags setting in the module's general configuration. This determines whether manually added metadata (like meta titles or descriptions entered directly in the product settings) will override data generated by templates.
If this setting is enabled (set to Yes), Magento will use the manually entered metadata, ignoring the template - even if the template is active. This often leads users to think their templates aren't working, when in fact the manual values are simply taking precedence.
If it's disabled (set to No), the template will override any manual metadata. This is the typical setup when you want to apply rules consistently across many products.
Recommendation: In most cases, set Use existing meta tags to No so templates apply across your catalog. Choose Yes only when certain products already have valuable, hand-written metadata you want to preserve.
3. Incorrect template priority (Sort Order)
If more than one template could apply to the same product - for example, a general template for all items and a specific one for a product category - the module uses the Sort Order to decide which one takes priority.
A higher number means higher priority. If this field is set incorrectly, the less relevant template might override the more specific one, leading to unexpected or inconsistent metadata.

Magento SEO for categories: Template best practices
The process of creating a category template is nearly identical to setting up a product template. The main difference is in the selected template type - Category.
Description Types: Category templates offer fewer editable fields than product templates. Typically, you'll be working with the SEO description and the standard category description.
Variables: For category templates, use variables from the Category Data block - such as [category_name] - to pull in unique information for each category. Product-related variables aren't supported in this context.


How to write a strong meta description for categories
Meta Title: [category_name] | [store_name] - The best selection and prices
Start with the category name to improve relevance and keyword targeting. Including the store name reinforces your branding, and the phrase the best selection and prices adds appeal. Keep the title within 50-60 characters so it displays properly in search results.
Meta Description: Explore our '[category_name]' collection at '[store_name]'. Wide assortment, competitive prices, and fast delivery.
It tells both shoppers and search engines what the category holds and what to expect from shopping with you.
If you keep meta keywords for internal search, category templates can fill them too - [category_name] plus a few common synonyms is plenty.
Improve category CTR with targeted SEO description
The SEO description adds relevant, rankable copy to what is otherwise a thin listing page. Keep it current and specific: when the text closely matches what the shopper searched for - say, black leather shoes size 45 - the page earns the click.
Meta keywords in Magento layered navigation templates
Layered Navigation pages are dynamically generated when a user applies filters within a single category (e.g., size, color, or brand), so their content changes with every filter combination.
Essential variables for Magento filter page templates
The main difference is the set of variables: they let you show the filters a visitor has applied.
[filter_selected_options]: Displays only the values of the selected filters (e.g., Backpack or White).
[filter_names_selected_options]: Displays both filter names and their selected values (e.g., Activity: Yoga or Color: White), providing more detailed information.
With these variables, each filtered page gets metadata that actually describes its content - which is what lets it surface for long-tail searches.

Template example with filters in SEO fields
Meta Title: [category_name] with filters: [filter_names_selected_options] | [store_name]
Example result: "Sneakers with filters: Size: 42, Color: Black | My Store."
Meta Description: Browse our collection of [category_name] with selected filters: [filter_names_selected_options] at [store_name]. Find exactly what you're looking for.
Our take on indexing filter pages: don't let Google crawl your on-site search results at all - the filter combinations are endless, and they eat your crawl budget. Layered navigation pages are the one exception worth indexing, and only when each combination gets unique metadata from a template like the ones above.
Magento SEO preview and toolbar: How to validate metadata
After creating and activating templates, you'll want to make sure the changes show up correctly on the storefront. The SEO Suite extension provides several options for this.
1. Template preview
Available in the top menu when editing a template. This menu lets you preview how the generated metadata will look for the selected entity (for example, a specific product or category). Variables substituted in the metadata are usually highlighted in yellow in the preview.
Note: This tool doesn't work with Layered Navigation templates, as these pages are dynamic and depend on real-time filter selections.

2. SEO toolbar
This tool appears directly on the store frontend (usually in the lower-left corner) and can be enabled via the module settings (Marketing > Mirasvit Extensions > SEO > Settings > General Settings).
The toolbar displays real-time metadata for the current page, including the active SEO template and values like meta title, description, and keywords. It can also show basic SEO tips, such as warnings about missing or overly long tags.
For a storewide check, the module's SEO audit goes further: it flags pages where generated meta titles or descriptions run over the length limits, so you can fix them manually or in bulk.

Final thoughts
Metadata automation isn't about doing more SEO - it's about not doing the same edit five thousand times. Set up one template per page type, keep Use existing meta tags aligned with where your hand-written metadata lives, and spend the saved hours on pages that deserve individual attention. Templates aren't just a convenience: they're a strategic advantage for growing e-commerce businesses.
Looking for even more flexibility? AI Agent Integration (MCP) for Magento 2 lets you manage metadata in bulk through natural language - describe what needs to change and let your AI assistant update meta titles, descriptions, and keywords across hundreds of products at once.
FAQ
Does Google use meta keywords for ranking?
No. Google confirmed back in 2009 that it ignores the keywords meta tag, and that hasn't changed. Bing ignores it too; Baidu is the one major engine that still reads it.
Where do I add meta keywords in Magento 2?
For a single product: Catalog > Products > edit the product > Search Engine Optimization > Meta Keywords. Categories and CMS pages have the same field under their SEO sections. To fill the field in bulk, use SEO templates from Advanced SEO Suite.
Do meta keywords affect Magento internal search?
Yes - when the meta_keyword attribute is flagged as searchable (Stores > Attributes > Product > meta_keyword > Use in Search). Magento's OpenSearch/Elasticsearch indexes every searchable attribute, so synonyms and misspellings placed in meta keywords help customers find products in your store's search.
How can I keep meta tags unique with automation?
Use template variables like [product_name], [category_name], or [filter_names_selected_options] - each page substitutes its own values, so one rule produces unique metadata for every page it covers.
What is a good meta keywords example for Magento?
[product_name], [category_name], [product_brand] in a product template. Keep the list short and relevant - the field only matters for internal search, so stuffing it gains nothing.
Can SEO templates truncate meta titles automatically?
Yes, Advanced SEO Suite can cut generated values to the length limit. A better workflow we recommend: run the module's SEO audit to find over-length metas, then fix them manually or in bulk via AI Agent Integration (MCP).
From meta tags to the sitemap, the Magento 2 SEO Extension gives you full control over every SEO-related feature in your store.
It automates the SEO work you'd otherwise do by hand - templated meta tags, rich snippets, redirects, sitemaps, cross-links and a built-in SEO audit - across every page type. That is why 2,435+ Magento stores rely on it.