Hướng dẫn về Shopify SEO

Cách làm SEO on Shopify — fixed URL routes, duplicate sản phẩm URLs, robots.txt.liquid customization, hreflang dưới Shopify Markets, đó auto-generated sitemap, và đó theme-phụ thuộc khoảng trống trong sản phẩm schema.

Xuất bản lần đầu: 25 thg 6, 2026 · Cập nhật lần cuối: 8 thg 8, 2026 · Advanced
Ngôn ngữ

Shopify xử lý một surprising amount of SEO cho bạn — an auto-generated XML sitemap, một canonical tag on mỗi trang, HTTPS on một fast CDN, và tùy chọn 301s khi bạn thay đổi một URL. Trong trả về điều này locks xuống đó URL structure (/các sản phẩm/, /collections/, /các trang/, /blogs/), though robots.txt có thể là customized on bất kỳ plan qua một robots.txt.liquid template. Đó một Shopify-cụ thể điều để understand là đó mỗi sản phẩm reachable qua một collection nhận một duplicate /collections/.../các sản phẩm/... URL — mà Shopify canonicalizes lại để đó sạch /các sản phẩm/ URL tự động. hreflang là auto-generated khi Shopify Markets là configured. Sản phẩm và breadcrumb schema là theme-phụ thuộc, không guaranteed.

Tóm tắt — Shopify là hosted nền tảng, so kỹ thuật SEO floor là cao và ceiling là capped. nó auto-generates /sitemap.xml, adds rel=canonical mọi nơi, chạy HTTPS on CDN, và offers 301s on URL thay đổi. fixed URL structure (/products/, /collections/, /pages/, /blogs/) có thể’t là changed except với specialized routing approaches, và robots.txt có thể là customized qua Liquid template. defining Shopify vấn đề là duplicate sản phẩm URL: bất kỳ sản phẩm reachable qua collection nhận /collections/{c}/products/{p} URL alongside của nó canonical /products/{p} URL, và Shopify auto-canonicalizes duplicate lại để sạch một. Sản phẩm và breadcrumb JSON-LD là theme-phụ thuộc, không nền tảng-guaranteed.

Evidence for this claim Shopify generates robots.txt and supports customization through robots.txt.liquid. Scope: Current online-store themes; Shopify cautions against unnecessary changes. Confidence: high · Verified: Shopify: Edit robots.txt.liquid

mental model: cao floor với thấp ceiling

hữu ích way để think về Shopify SEO là đó nó hosted SaaS nền tảng. đó cuts cả hai ways. Compared với self-hosted stack như WooCommerce, kỹ thuật floor là nhiều cao hơn — Shopify xử lý canonicalization, sitemaps, SSL, và CDN phân phối cho bạn, và Bạn có thể’t easily break them. nhưng ceiling là thấp hơn: bạn không nhận máy chủ access và Bạn có thể’t rewrite URL structure. robots.txt là một phần exception — Shopify generates nó, nhưng bất kỳ store có thể override parts của nó qua robots.txt.liquid theme template. phần lớn của Shopify SEO là understanding mà levers exist và mà là welded shut.

fixed URL structure

Shopify dùng fixed route prefixes cho của nó main tài nguyên types:

Evidence for this claim Shopify resource URLs use platform route prefixes such as /products/ and /collections/. Scope: Standard Online Store resource routes. Confidence: high · Verified: Shopify: URL redirects Evidence for this claim Shopify generates robots.txt and supports customization through robots.txt.liquid. Scope: Current online-store themes; Shopify cautions against unnecessary changes. Confidence: high · Verified: Shopify: Edit robots.txt.liquid
  • Các sản phẩm: /products/{product-handle}
  • Collections: /collections/{collection-handle}
  • Static các trang: /pages/{page-handle}
  • Blog: /blogs/{blog-handle}/{post-handle}

Bạn có thể edit mỗi xử lý (slug), nhưng không prefix. Đây là sạch nhất point của so sánh với khác các nền tảng: BigCommerce lets bạn strip prefixes hoàn toàn cho flat /{product-name}/ structure, và WooCommerce lets bạn reshape của nó permalink base. Shopify không. practical SEO impact, though, là nhỏ — Google John Mueller có đã nói nhiều hơn sau khi đó từ khóa hoặc structure trong URL là, tại phần lớn, rất lightweight xếp hạng factor sau khi trang có là được crawl và Google understands của nó nội dung. I sẽ không migrate store hoặc fight nền tảng over /products/ prefix.

(On Shopify Plus có some workarounds — URL rewrites và apps — nhưng họ là các trường hợp biên, không một chung “turn off the prefix” (bản dịch) «turn off đó prefix» toggle.)

duplicate sản phẩm URL — defining Shopify vấn đề

Đây là một genuinely Shopify-cụ thể điều bạn cần understand, so let me là precise về nó.

mỗi sản phẩm có canonical URL của form /products/{product-handle}. nhưng moment sản phẩm là part của collection, nó cũng becomes reachable tại:

/collections/{collection-handle}/products/{product-handle}

So sản phẩm trong three collections là reachable tại four các URL ( canonical plus một theo collection). On face của nó, đó textbook duplicate nội dung. Điều gì saves bạn là đó Shopify tự động emits rel=canonical pointing mỗi collection-scoped variant lại để bare /products/{product-handle} URL. duplicates exist, nhưng họ’re correctly consolidated theo mặc định.

The product may have several reachable paths; verify both the canonical output and the URLs your theme links internally.

Two collection-context URLs and the clean products URL reach the same product. Collection-scoped pages emit a canonical signal toward the clean products URL, while theme-generated internal links independently determine which paths crawlers repeatedly discover. Both outputs require live verification.

đó có nghĩ là canonical side của Đây là handled — nhưng hai điều là vẫn worth đang làm:

  1. Link để canonical URL internally. nếu của bạn theme links các sản phẩm từ collection các trang sử dụng dài /collections/.../products/... form, bạn’re spending liên kết nội bộ các tín hiệu và các yêu cầu crawl on các URL đó chỉ canonicalize away. nhiều modern themes đã link để sạch /products/ URL; nó worth kiểm tra yours.
  2. không fight canonical. I’ve seen mọi người try để “cách sửa” điều này by noindexing collection-scoped sản phẩm các URL hoặc blocking them. bạn không cần để. canonical đã làm consolidation; piling on noindex hoặc robots chặn chỉ adds risk. (nếu bạn muốn deeper reasoning on Vì sao robots block là không deindex tool, see duplicate nội dungcanonicalization ghi-ups.)

robots.txt: generated theo mặc định, customizable với Liquid

Shopify generates robots.txt theo mặc định, và Bạn có thể customize nó by thêm templates/robots.txt.liquid file để theme. generated defaults vẫn safest baseline cho phần lớn stores. defaults là sensible (cart, checkout, và account spaces là kept out). nếu bạn genuinely cần custom rules — chẳng hạn bạn muốn để giữ các crawler out của cụ thể filtered URL space — bạn có hai options:

  • Khi custom rules là justified: edit robots.txt by thêm robots.txt.liquid template để của bạn theme, mà lets bạn thêm hoặc xóa rules programmatically. Shopify default rules là output qua {{ robots }}, so typical override extends thay vì replaces them — ví dụ, để giữ các crawler out của filtered collection URL space:

    {%- comment -%} theme file: templates/robots.txt.liquid {%- endcomment -%}
    {{ robots }}
    
    User-agent: *
    Disallow: /collections/*+*
    Disallow: /collections/*%2B*
    Disallow: /collections/*filter*
  • Reach cho noindex cho lập chỉ mục decisions, không robots.txt: Khi goal là giữ cụ thể trang out của chỉ mục thay vì blocking các crawler từ URL pattern, sử dụng meta robots / noindex qua theme Liquid thay vì. Remember thông thường rule — robots.txt controls crawling, noindex controls lập chỉ mục, và họ’re không interchangeable.

auto-generated sitemap

Shopify generates XML sitemap tự động tại /sitemap.xml. nó thực ra sitemap chỉ mục đó links out để child sitemaps cho các sản phẩm, collections, các trang, và blog posts. bạn submit yourstore.com/sitemap.xml để Google Search Console và Bing Quản trị viên web Tools và Shopify giữ nó hiện tại. Bạn có thể’t hand-edit nó; nếu bạn muốn URL out của sitemap bạn control đó qua trang lập chỉ mục settings / theme, không by editing file.

Dữ liệu có cấu trúc là theme-phụ thuộc, không nền tảng-guaranteed

Đây là khoảng trống đó trips lên phần lớn stores. Shopify không reliably output Product JSON-LD on mỗi theme, và giống nhau goes cho BreadcrumbList. Liệu của bạn sản phẩm các trang là eligible cho rich kết quả — price, availability, review stars — phụ thuộc hoàn toàn on liệu của bạn theme emits markup. Some của newer Shopify themes làm bao gồm Product schema; plenty của older hoặc thứ ba-party themes không, hoặc emit incomplete version.

Google own hướng dẫn là worth giữ trong front của bạn ở đây. Của nó Sản phẩm dữ liệu có cấu trúc tài liệu spells out Điều gì merchant-listing-grade sản phẩm markup là cho:

“Merchant listings: For pages where customers can purchase products from you. This markup has more options for specifying detailed product information, like apparel sizing, shipping details, and return policy information.” (bản dịch) «Merchant listings: Cho các trang nơi customers có thể purchase các sản phẩm từ bạn. Này markup có hơn options cho specifying detailed sản phẩm information, như apparel sizing, shipping details, và trả về policy information.»

và giống nhau trang là rõ ràng đó pairing on-trang dữ liệu có cấu trúc với Merchant Center feed maximizes của bạn eligibility:

“Providing both structured data on web pages and a Merchant Center feed maximizes your eligibility to experiences and helps Google correctly understand and verify your data.” (bản dịch) «Providing cả hai dữ liệu có cấu trúc on web các trang và một Merchant Center feed maximizes của bạn eligibility để experiences và helps Google correctly understand và verify của bạn dữ liệu.»

Practically, Điều này có nghĩ là: kiểm tra Điều gì của bạn theme thực ra outputs với Rich Kết quả Kiểm thử, và nếu nó bị thiếu hoặc thin, thêm nó — either by editing theme Liquid templates hoặc với schema app. không assume Shopify đã làm nó cho bạn.

Một caution worth stating plainly: dữ liệu có cấu trúc là visibility và CTR play, không xếp hạng shortcut. nó có thể win bạn rich kết quả; nó sẽ không, on của nó own, move của bạn position.

SEO quốc tế: Shopify Markets và hreflang

nếu của bạn store dùng Shopify Markets, Shopify adds hreflang tags để của bạn theme tự động — qua content_for_header object đó của bạn theme renders trong <head> của layout/theme.liquid. những điều đó tags reflect mỗi market language và region ( country-cụ thể market produces region-qualified tag như fr-ca; rộng hơn market produces language-chỉ tag như fr), họ cập nhật tự động bất cứ khi nào bạn thêm, xóa, hoặc thay đổi market domains hoặc languages, và họ stay trong sync với mỗi trang canonical URL so localized versions đọc as related các trang, không duplicates.

Hai điều worth knowing trước khi bạn touch điều này yourself:

  • không stack của bạn own hreflang tags on top of đó tự động ones. Shopify own tài liệu là blunt về đó risk: đang làm so “can produce duplicate or conflicting annotations, which can hurt your store’s search ranking.” (bản dịch) «có thể produce duplicate hoặc conflicting các chú thích, mà có thể hurt của bạn store tìm kiếm xếp hạng.» Nếu một theme hoặc app là đã emitting hreflang, turn đó tự động tags off đầu tiên (Online Store > Preferences > Social sharing và SEO > Tự động hreflang tags) thay vì layering hơn on top.
  • Manual hreflang là cho các trường hợp biên Markets không thể coordinate — đó được ghi lại ví dụ là linking alternate-language versions of một trang trên tách biệt Shopify stores on khác nhau domains. Nếu bạn làm go manual, xây dựng đó tags từ đó store localization dữ liệu thay vì hardcoding sản phẩm hoặc collection xử lý, since một xử lý có thể differ theo language.

Collections, facets, và URL explosion

Collection các trang là thường của bạn highest-giá trị landing các trang, và họ’re nơi thực SEO thương mại điện tử hoạt động lives — giống nhau faceted-navigation vấn đề bạn’d có on bất kỳ nền tảng.

  • Ghi unique collection các mô tả. họ’re rỗng theo mặc định, leaving trang as bare sản phẩm grid. Đây là single phần lớn phổ biến on-trang miss on Shopify.
  • Watch loại và filter parameters. Shopify filtering và sorting append URL parameters (e.g. ?sort_by=, và tag/filter paths). Tại quy mô những điều này multiply vào lớn near-duplicate URL space — kinh điển faceted-navigation crawl vấn đề. Shopify canonicals help, nhưng cho filter combinations bạn không muốn được lập chỉ mục, lean on canonicals để sạch collection URL và noindex nơi appropriate. đầy đủ strategy lives trong SEO thương mại điện tử hub.
  • Mind pagination. Cho mỗi paginated trang của nó own URL và self-referencing canonical; không try để noindex deep các trang, và không rely on rel=prev/next (Google đã dừng sử dụng những điều đó trong 2019).

nơi Shopify sits versus khác các nền tảng

AreaShopifyÝ nghĩ
URL structureFixed /products/, /collections/, etc.có thể’t strip prefixes (so với BigCommerce); minor xếp hạng impact
robots.txtGenerated theo mặc định; customizable qua Liquidsử dụng meta robots cho lập chỉ mục control
SitemapAuto-generated /sitemap.xmlKhông manual editing; submit và forget
Canonical tagsAuto on mỗi trang; consolidates collection sản phẩm các URLduplicate-URL vấn đề là handled cho bạn
Sản phẩm schemaTheme-phụ thuộc, không guaranteedVerify với Rich Kết quả Kiểm thử; thêm qua theme/app nếu bị thiếu
SSL / CDNĐược bao gồmSolid speed/security baseline
App ecosystemrất lớn (hundreds của SEO apps)Plenty của schema/chuyển hướng/meta tooling khả dụng
hreflangAuto-đã thêm sau khi Markets là configured; syncs với canonicalkhông thêm manual tags on top — turn tự động tags off đầu tiên nếu theme/app đã emits them

honest summary: Shopify xóa lot của ways Bạn có thể hurt yourself và một vài của ways Bạn có thể help yourself. defaults là good; hoạt động đó left là nội dung, schema verification, và faceted-navigation discipline — không fighting nền tảng.

Add an expert note

Pin an expert quote

New person? Create their unclaimed profile at /admin/experts/ → Pin a quote first.