Pagination
15-30 minIntermediate
Properly handle paginated collection and blog pages to ensure search engines can crawl and index all products while avoiding duplicate content issues.
Prerequisites
- Access to Shopify theme code (Online Store > Themes > Edit code)
- Basic understanding of Liquid templating
Intermediate
Canonical Tags for Pagination
Ensure each paginated page has a self-referencing canonical.
1
Locate theme.liquid
1
Go to Online Store > Themes > Actions > Edit code
2
Open 'Layout' > 'theme.liquid'
2
Update Canonical Tag
1
Shopify's default canonical should be self-referencing.
2
Verify the canonical tag in <head> includes page parameter for paginated URLs.
3
If using a custom canonical, ensure it reflects the current page.
Example
<link rel="canonical" href="{{ canonical_url }}">Verification Checklist
Pro Tips
- Avoid infinite scroll without a fallback - Google needs crawlable links
- Use 'Load More' buttons that append ?page=N to the URL
- Keep pagination depth under 5 clicks from homepage for important collections
Common Issues & Fixes
Problem:
Solution: Check theme code for pagination logic errors
Problem:
Solution: Ensure canonicals are self-referencing on each page