Titles and meta descriptions in PrestaShop: duplicated, empty and the ones PrestaShop fills in for you

Titles and meta descriptions in PrestaShop

If you leave a product’s meta title empty, PrestaShop does not leave it empty: it uses the product name. If you leave the meta description empty, it uses the start of the short description. That is why hardly any tool warns you about empty titles in PrestaShop, and yet most shops have them: filled in with whatever was to hand, identical across similar products and with nothing that earns a click.

Below you have how to find out how many you have, where each text Google sees comes from, which settings change it and in what order to fix it.

How to know whether this is happening to you

1. Look at five product pages on Google. Search for site:yourdomain.com followed by the name of a product family. If the titles that come up are just the product name and the descriptions start halfway through a sentence from the page, this is it.

2. Do not look for it in Search Console. The report that warned about duplicate titles and meta descriptions disappeared with the new Search Console. Today it has to be measured in the database or with a crawler.

3. Measure it in the database. This query counts, among active products, how many have no meta title of their own and how many have no meta description of their own. Change ps_ to your prefix and 1 to the ID of your language and your shop:

SELECT
  COUNT(*) AS products,
  SUM(pl.meta_title = '' OR pl.meta_title IS NULL) AS no_meta_title,
  SUM(pl.meta_description = '' OR pl.meta_description IS NULL) AS no_meta_description
FROM ps_product_lang pl
JOIN ps_product_shop ps
  ON ps.id_product = pl.id_product
 AND ps.id_shop = pl.id_shop
 AND ps.active = 1
WHERE pl.id_lang = 1
  AND pl.id_shop = 1;

And this one lists the titles that are repeated as Google sees them, that is, with the product name where there is no meta title:

SELECT COALESCE(NULLIF(pl.meta_title, ''), pl.name) AS effective_title,
       COUNT(*) AS times
FROM ps_product_lang pl
JOIN ps_product_shop ps
  ON ps.id_product = pl.id_product
 AND ps.id_shop = pl.id_shop
 AND ps.active = 1
WHERE pl.id_lang = 1
  AND pl.id_shop = 1
GROUP BY effective_title
HAVING times > 1
ORDER BY times DESC;

For categories, the same query on ps_category_lang and ps_category_shop, with c.active instead of ps.active.

In a shop with about 2,000 product pages that we reviewed this month, we measured one in five from the public website. Exact duplicate titles were almost zero, but 42% of titles were just the product name, 40% of meta descriptions had been filled in by PrestaShop with the short description and 39% were repeated on another product page.

Titles and meta descriptions in a real PrestaShop shop: 42% of titles identical to the product name
In a real shop, almost half the titles and descriptions had been filled in by PrestaShop.

Why it happens: where PrestaShop gets each text

PrestaShop fills in whatever you leave empty. In version 8.2 it does so in classes/Meta.php (Meta.php, PrestaShop 8.2):

Page If the meta title is empty If the meta description is empty
Product The product name The text of the short description, without tags
Category The category name The text of the category description
Home page The shop name Nothing
Pages 2, 3, 4 of a category The same title with ” (2)”, ” (3)” after it The same as page 1
Where PrestaShop gets the meta title and meta description when they are empty
What PrestaShop 8.2 uses when the SEO field is empty.

There is a setting that hardly anyone knows about and that changes the title of every product page with combinations: Shop Parameters > Traffic & SEO > SEO & URLs, under SEO options, the switch to display attributes in the product meta title. It comes switched off. If you turn it on, PrestaShop adds the attribute group and value to the title, for example “Lisboa Table Colour Oak Size 160 cm”. And it does so on the main product page too, the one with no combination in the URL, using the attributes of the default combination (ProductController, PrestaShop 8.2). In other words: the title Google sees on the page it indexes carries the size or colour of the default combination, even if you sell five.

What Google does with all this is explained in its title link guide (title links, Google): it asks for unique, descriptive titles for each page, and warns that it may replace the title with other text from the page when the title is generic, repetitive or does not describe the content well. Something similar happens with meta descriptions (snippets, Google): Google shows another snippet from the page if it answers the search better, accepts automatically generated descriptions on large sites if they are built with data from each page, and says identical descriptions on many pages do not help.

The meta description does not improve rankings. The title does count, and both decide whether the person who sees the result clicks.

How to fix it

Before changing anything in bulk, back up the database. A badly written UPDATE query changes thousands of product pages in a second.

Where each one is written

  • Product: the product page, SEO tab: meta title, meta description and friendly URL.
  • Category: Catalog > Categories, edit the category, SEO block.
  • Home page: Shop Parameters > Traffic & SEO > SEO & URLs, edit the page called index. If your home page shows on Google with just the shop name, this field is empty.
  • Brands, suppliers and content pages: on their own page, with the same fields.
Where the meta title is edited in PrestaShop: product, category, home page and SEO options
The four places in the back office where titles and descriptions are written.

What a product page title needs

The product name is hardly ever enough. A good product page title says what it is, how it differs from the products next to it and, if people search for it, what brand it is. What sets it apart is usually a piece of data: the size, the material, the model, the compatibility. If two product pages end up with the same title after you write it, they are either the same product or that piece of data is missing. If you want more ideas for writing it, see our guide to SEO headlines (in Spanish).

The same goes for categories: “Tables” competes with nobody; “Extending wooden dining tables” does, if that is what is inside.

What a meta description needs

Whatever would get the click: the data people search for, the delivery time, whether it is in stock, the warranty. Not the start of the short description. We explain it in more detail in what a meta description is (in Spanish).

In what order

You do not need to write 2,000 titles this week. In Search Console, Performance > Search results > Pages, sort by impressions and start with the product pages and categories that already appear on Google and have a low click-through rate. There, a better title shows within days. The ones with no impressions can wait.

If you really need to fill in thousands at once, do it with a rule that uses each product page’s own data, such as the brand, the reference or a feature, and never with a fixed text that is the same for all of them. Afterwards, clear the PrestaShop cache.

The attributes switch

If your product pages with combinations have titles that do not distinguish anything, the switch can help, but first check which combination each product has as its default: that is the one that will appear on Google. If the default combination is an odd size or a colour nobody searches for, change it before turning the switch on, or write the meta title by hand on the product pages that matter.

What happens when it is done well

Google result for a PrestaShop product page before and after writing the title and meta description
Fictitious example: the title says what it is and the description gives the data that earns the click.

Google crawls the page again and, usually within a few days, shows the new title. It does not always use it: if the title does not describe the page or is full of repeated words, it may keep replacing it. That is why the best sign it is well written is that Google shows it as it is. The way to measure it is the click-through rate of those pages in Search Console, comparing the four weeks before with the four weeks after.

What breaks if you do it wrong

  • A fixed text for every product page. “Buy online at the best price | Shop” on 2,000 pages is worse than leaving the name: Google ignores it and it does not distinguish anything either.
  • Putting the shop name in front. If your theme already adds it, it appears twice. And the first thing people read should be the product.
  • 120-character titles stuffed with keywords. Google cuts them or rewrites them.
  • Turning on attributes in the title without checking the default combination. All your product pages could end up saying “Size XS”.
  • An UPDATE without a WHERE or without the language ID. You change every language at once, including the ones that were fine.
  • Changing the friendly URL when changing the title. There is no need. With PrestaShop’s normal URLs, which include the ID, the old one redirects to the new one. But if a module removes the ID from URLs, the old one can end up as a 404.

When you cannot do this yourself

You can do it yourself if you have a few hundred product pages and time to write them, starting with the ones that already have impressions. You need help if there are thousands, if the shop is multilingual or multistore, if your theme or an SEO module changes titles on its own and you do not know which one wins, or if you want bulk writing rules that do not end up repeating the same text. We do that as part of SEO for PrestaShop (in Spanish).

Want to know whether this affects your shop?

Leave us your URL. We review it and tell you what we find and what it is costing you, with no commitment.

We reply within 24 working hours.

Frequently asked questions

Where do you change the meta title in PrestaShop?

On each product, category and page, in the SEO tab or block, in the meta title field. Fixed pages, such as the home page, are set up in Shop Parameters > Traffic & SEO.

How long should a meta title be?

There is no exact number of characters, but Google cuts long titles in the results. The practical thing is to put what matters at the start: the product or category and what sets it apart.

Why does Google not show my meta description?

Because Google chooses the snippet that best answers each search and sometimes uses text from the page instead of the meta description. A clear, specific description for each page increases the chances that it uses it.

What happens if I leave the meta title empty in PrestaShop?

PrestaShop uses the product or category name, sometimes with the shop name. In large catalogues that produces many titles that are not very descriptive or are repeated.