Sub topic 5
Writing titles and descriptions that match and compare well
This chapter assumes you know the basic feed attributes from earlier chapters (id, title, description, link, price, availability). It also assumes you can read a short XML feed and run a Python script. You do not need to know how identifiers or variants work in detail. Those have their own chapters.
Why titles and descriptions matter to a shopping system
A shopping system has two jobs with your product text. First, it must match a product to a shopper's request, such as "waterproof trail running jacket for men, medium". Second, it must compare your product with similar ones from other merchants. Identifiers such as GTIN help with the second job, but many products have no GTIN, and shoppers describe products in words, not codes.
The title is the most heavily used text field. The description supplies detail that the title has no room for. Both are read by ranking systems, by people who see the listing, and by language models that summarize or quote them. Write for all three: precise, factual, and consistent.
Titles
A good title names the product the way a shopper would describe it. It puts the most important words first, because many surfaces truncate long titles. Merchant Center-style specifications allow up to 150 characters, but only the first 60 to 70 characters are reliably visible.
A working structure
The right pattern depends on the product category. A common starting point is:
- Brand
- Product type or model name
- The attributes that distinguish this variant (color, size, material, gender, quantity)
For apparel, the specification asks you to include distinguishing attributes. For electronics, put the model number and key specification (such as capacity) in the title.
| Category | Pattern | Example |
|---|---|---|
| Apparel | Brand + gender + product type + color + size | Acme Men's Trail Runner Jacket, Blue, M |
| Electronics | Brand + model + product type + key spec | Acme X200 Wireless Earbuds, 32 GB Case |
| Consumables | Brand + product + flavor + pack size | Acme Oat Granola, Honey, 12 oz, 6-Pack |
| Furniture | Brand + product type + material + dimensions | Acme Oak Desk, 140 x 70 cm |
What to leave out
Shopping specifications and policies reject or demote titles that try to do the work of an advertisement. Avoid:
- Promotional text such as "Free shipping", "Sale", or "Best price". Price and shipping have their own attributes.
- ALL CAPS words, except for real brand names or acronyms.
- Emoji and decorative symbols.
- Keyword stuffing, for example "jacket coat parka windbreaker rain jacket".
- Details that belong in another attribute and may become false, such as "in stock" or "$89".
Keep the title in step with the variant
If your product has variants, each variant item needs its own title that names its own color and size. A common error is to give all variants the same title and rely on the color and size attributes. Systems that show only the title then display several indistinguishable listings. Variant grouping is covered in its own chapter. Here, the rule is that the title must describe the specific item that the link opens.
The feed example from this tutorial follows the pattern:
<g:title>Acme Trail Runner Jacket - Men's, Blue, Medium</g:title>The brand sits in g:brand. Many specifications ask you to put the brand in the title as well when shoppers search by brand. The example above omits it for brevity, but adding "Acme" at the start of the title would be a reasonable improvement for a brand with name recognition.
Descriptions
The description explains what the title cannot. It should be plain text (or very light formatting, depending on the specification) and describe the actual product. Most specifications allow up to 5,000 characters, but a useful description is usually 150 to 1,000 characters.
What to include
- What the product is and what it is for.
- Materials, dimensions, capacity, power, compatibility, and other facts a shopper uses to compare.
- What is in the box, if that is not obvious.
- Care or usage notes that affect the purchase decision.
Put the most distinguishing facts in the first 160 characters or so. Some surfaces show only a snippet.
What to leave out
- Links, contact details, and calls to action such as "Click here to buy".
- Time-limited offers and prices.
- Text copied from another merchant or from the manufacturer's page without change. Duplicate text gives a system nothing that distinguishes your listing.
- Claims you cannot support, such as "the best jacket on the market".
Facts over adjectives
Compare two descriptions of the same jacket.
Weak: "Amazing jacket you will love! Perfect for every adventure. Buy now!"
Stronger: "Lightweight water-resistant running jacket with a packable hood and reflective trim. Fits true to size. Machine washable."
The second one gives a system and a shopper concrete features. The first has no fact that can be matched against a query such as "water-resistant" or "reflective".
Matching the page
The feed title and description should agree with the product page they link to. The page may be longer, but it must not contradict the feed on product type, color, size, or material. If the feed says "Blue" and the page shows a grey jacket by default, expect a mismatch warning. The consistency chapter covers this in depth. For text, the practical rule is to generate the feed title and the page's <h1> and JSON-LD name from the same source field, so they cannot drift apart.
{
"@type": "Product",
"name": "Acme Trail Runner Jacket - Men's, Blue, Medium",
"description": "Lightweight water-resistant running jacket with a packable hood and reflective trim."
}Building titles in code
Hand-editing thousands of titles does not scale. A small function can compose titles from catalog fields and flag items that break the rules above. The script below runs as written.
import re
MAX_TITLE = 150
VISIBLE = 70
PROMO = re.compile(r"\b(free shipping|sale|best price|buy now|cheap)\b", re.I)
def build_title(brand, name, gender, color, size):
parts = [brand, name]
if gender:
parts.append(gender)
tail = ", ".join(p for p in (color, size) if p)
title = " ".join(parts)
return title + (" - " + tail if tail else "")
def title_problems(title):
problems = []
if len(title) > MAX_TITLE:
problems.append("longer than %d characters" % MAX_TITLE)
if PROMO.search(title):
problems.append("contains promotional text")
words = [w for w in re.findall(r"[A-Za-z]{4,}", title) if w.isupper()]
if words:
problems.append("all-caps words: " + ", ".join(words))
if len(title) > VISIBLE:
problems.append("key words may be cut off after %d characters" % VISIBLE)
return problems
if __name__ == "__main__":
title = build_title("Acme", "Trail Runner Jacket", "Men's", "Blue", "Medium")
print(title)
print(title_problems(title) or "no problems")
bad = "ACME JACKET SALE free shipping best price trail runner jacket coat parka"
print(title_problems(bad))Running it prints the composed title, no problems, and then a list of problems for the deliberately bad title.
Common errors
| Error | Effect | Fix |
|---|---|---|
| Same title for every variant | Listings look identical, shoppers cannot choose | Add color, size, or other distinguishing attributes |
| Promotional text in the title | Disapproval or demotion | Move offers to the proper attributes |
| Title and page disagree | Mismatch warning, lost trust | Generate both from one source |
| Description copied from the manufacturer | Little to set the listing apart | Add your own facts, such as fit and care |
| Vague title ("Jacket") | Weak matching | Add brand, type, and distinguishing attributes |
| Details that change (price, stock) in text | Text goes stale | Use the price and availability attributes |
A short review process
- Export a sample of 50 items across your categories.
- Run the title check from this chapter and read the flagged ones.
- Compare five titles to their product pages by eye.
- Fix the rule in the title-building code, not the single item, so the fix applies to the whole catalog.
- Resubmit and look for changes in the diagnostics report, which a later chapter explains.
Exercise
A feed has three variants of one shirt (red, blue, green), all titled "Acme Cotton T-Shirt". Each variant has the correct color attribute. What is wrong, and how would you fix it?
Show answer
The titles are identical, so any surface that shows only the title cannot tell the listings apart, and matching on a query such as "blue cotton t-shirt" has no color word to use. Generate each variant title from catalog fields that include the color, for example "Acme Cotton T-Shirt - Red", "Acme Cotton T-Shirt - Blue", and "Acme Cotton T-Shirt - Green". Keep color and item_group_id set as well, and make the page name match.
Exercise
Rewrite this title so it follows the guidance in this chapter: "BEST PRICE!!! Acme X200 earbuds FREE SHIPPING wireless bluetooth headphones"
Show answer
Remove the promotional phrases and all-caps text and the repeated keywords, then keep the brand, model, product type, and a key specification, for example "Acme X200 Wireless Earbuds, 32 GB Case". Shipping belongs in the shipping attribute, and price in the price attribute.