Shopify Meta Tags & SEO Setup: A Step-by-Step Guide

Shopify Meta Tags & SEO Setup: A Step-by-Step Guide

3 min read·

Essential Shopify Meta Tags and What They Do

Shopify generates several meta tags automatically, but understanding and customizing them is critical for SEO. The title tag (displayed in browser tabs and search results) defaults to "Product Title - Store Name" and is the most important meta tag for rankings. The meta description (the snippet shown below your title in Google) defaults to the first 160 characters of your product description if you do not set one manually. The canonical tag tells Google which URL is the primary version when a product appears in multiple collections. Shopify also generates Open Graph meta tags for social media sharing and Twitter Card tags. These control how your product pages appear when shared on Facebook, Instagram, LinkedIn, and Twitter. The product image, title, and description shown in social shares come from these tags. If you do not customize them, Shopify uses your product title and first image, which may not be the most compelling presentation for social audiences. The robots meta tag controls whether Google indexes a page. Shopify sets most pages to be indexable by default, but you may want to noindex certain pages like internal search results, filtered collection views, or temporary landing pages. You can control this through your theme's code or the Shopify SEO section on each page.

How to Edit Meta Tags in Shopify

Shopify provides a built-in SEO editor for every product, collection, page, and blog post. Scroll to the bottom of any product editor page and click "Edit website SEO" to reveal the title tag and meta description fields. The title tag field shows a character count and preview of how it will appear in Google. Keep it under 60 characters to avoid truncation. The meta description field should be 150 to 160 characters for optimal display. For the page URL handle, Shopify auto-generates it from your product title but lets you customize it. Edit the URL handle when you first create the product. Changing it after the page has been indexed by Google requires setting up a URL redirect (Shopify handles this automatically when you change a URL handle, but always verify the redirect works). Keep URL handles short, descriptive, and keyword-rich. To edit meta tags across many products at once, use Shopify's bulk editor. Go to Products, select the products you want to edit, click "Edit products," and add the SEO title and SEO description columns. This is much faster than editing products one by one. For stores with hundreds of products, a Shopify SEO app that generates meta descriptions in bulk can save significant time, but always review the output for accuracy.

Canonical Tags and Duplicate Content Prevention

Shopify products often appear at multiple URLs. A product might be accessible at /products/blue-tshirt, /collections/summer/products/blue-tshirt, and /collections/sale/products/blue-tshirt. Without canonical tags, Google would see these as three separate pages with identical content, which dilutes your ranking authority. Shopify automatically adds a canonical tag pointing to /products/blue-tshirt on all variant URLs, which consolidates SEO value to the primary URL. Product variants (size and color combinations) can also create duplicate content issues. By default, Shopify adds a variant parameter to the URL (/products/blue-tshirt?variant=12345) but keeps the canonical pointing to the base product URL. This is the correct behavior for most stores. However, if your variants are substantially different products (like different designs that happen to be grouped), you may want each variant to rank independently, which requires custom canonical tag logic in your theme. Check for canonical tag issues by inspecting your product page source code. Search for "canonical" and verify that the href points to the correct primary URL. Common problems include canonical tags pointing to HTTP instead of HTTPS, canonical tags pointing to your myshopify.com domain instead of your custom domain, and missing canonical tags on custom landing pages built with page builder apps.

Structured Data, Sitemaps, and Robots.txt

Shopify auto-generates a sitemap at yourstore.com/sitemap.xml that includes all products, collections, pages, and blog posts. Submit this sitemap to Google Search Console if you have not already. Check the sitemap periodically to ensure all your important pages are included. Products that are set to "draft" status or hidden from online store sales channels will not appear in the sitemap. Shopify's robots.txt file is now customizable through the theme editor under Online Store > Themes > Edit code > robots.txt.liquid. Use this to block internal search result pages, filtered collection URLs with query parameters, and any other pages you do not want Google to index. The default Shopify robots.txt blocks common unnecessary paths but may not cover custom pages or app-generated URLs. Structured data (JSON-LD format) tells Google specific details about your products like price, availability, brand, and review ratings. Shopify themes include basic Product schema, but you should verify and extend it. Use Google's Rich Results Test (search.google.com/test/rich-results) to check your product pages. Add missing fields like brand, GTIN or MPN, aggregateRating, and review markup. Rich results with price and review stars get significantly higher click-through rates in Google search.

Not sure if your Shopify meta tags are set up correctly? Run a free audit at LiftMy.Shop to check your title tags, meta descriptions, structured data, and other SEO fundamentals in seconds.

Analyze my listing free

Frequently Asked Questions

Does Shopify automatically generate meta tags?

Yes, Shopify generates title tags (product title plus store name), meta descriptions (from the first 160 characters of your product description), canonical tags, Open Graph tags, and basic structured data. However, the auto-generated versions are rarely optimal for SEO. You should customize the title tag and meta description for each important product.

How do I fix duplicate content issues on Shopify?

Shopify handles most duplicate content through canonical tags that point variant URLs and collection-filtered URLs to the primary product URL. Verify canonical tags are correct by inspecting your page source. For product descriptions, always write unique content rather than copying manufacturer descriptions. For similar products, differentiate descriptions by focusing on each product's unique attributes.

How do I submit my Shopify sitemap to Google?

Go to Google Search Console, select your property, click Sitemaps in the left menu, and enter 'sitemap.xml' in the URL field. Shopify auto-generates and updates your sitemap at yourstore.com/sitemap.xml. Google will begin crawling the submitted pages within a few days.

Can I customize Shopify's robots.txt file?

Yes. Go to Online Store > Themes > Edit code and find the robots.txt.liquid template. You can add custom Disallow rules to block specific paths from being crawled. Common additions include blocking internal search pages, filtered collection URLs, and cart or checkout pages.

What structured data should Shopify product pages include?

At minimum: Product schema with name, description, image, price, currency, availability, and URL. Ideally also include brand, GTIN or MPN, aggregateRating with reviewCount, and individual Review markup. Use Google's Rich Results Test to verify your structured data is valid and complete.

Related articles