Automatically add product title to SEO meta

Topic summary

Goal: auto-populate SEO title and meta description on Shopify product pages (free, no app) using the product title.

Approach: edit theme.liquid and use Liquid (Shopify’s templating language) to set tags when the template contains ‘product’. Example pattern: set to product title + a suffix (e.g., “ | Earth To Planet Cartoons”) and set a product-based meta description. This renders in the page HTML but does not change the Shopify admin SEO fields.

Outcomes and notes:

  • Confirmed working on Minimal theme; verify via View Source.
  • This overrides any manually entered SEO titles/descriptions.
  • SERP (search results) may take time to update, and Google may rewrite titles/meta.
  • Caution: templated meta descriptions differing only by product name risk duplication.

Theme variations/issues:

  • Some themes already append tags and shop name in ; integrate logic accordingly.
  • One user saw “\n” in titles and initially broke by misplacement; they later resolved it.

Status: latest open question is how to add a condition to avoid duplicating the shop name if it’s already in the title. No final resolution posted yet.

Summarized with AI on January 1. AI used: gpt-5.

Great! Thank you for the help and insight, @Niki_K .