undefined
Skip to content
Moz logo Menu open Menu close
  • Products
    • Moz Pro
    • Moz Pro Home
    • Moz Local
    • Moz Local Home
    • STAT
    • Moz API
    • Moz API Home
    • Compare SEO Products
    • Moz Data
  • Free SEO Tools
    • Domain Analysis
    • Keyword Explorer
    • Link Explorer
    • Competitive Research
    • MozBar
    • More Free SEO Tools
  • Learn SEO
    • Beginner's Guide to SEO
    • SEO Learning Center
    • Moz Academy
    • MozCon
    • Webinars, Whitepapers, & Guides
  • Blog
  • Why Moz
    • Digital Marketers
    • Agency Solutions
    • Enterprise Solutions
    • Small Business Solutions
    • The Moz Story
    • New Releases
  • Log in
  • Log out
  • Products
    • Moz Pro

      Your all-in-one suite of SEO essentials.

    • Moz Local

      Raise your local SEO visibility with complete local SEO management.

    • STAT

      SERP tracking and analytics for enterprise SEO experts.

    • Moz API

      Power your SEO with our index of over 44 trillion links.

    • Compare SEO Products

      See which Moz SEO solution best meets your business needs.

    • Moz Data

      Power your SEO strategy & AI models with custom data solutions.

    Let your business shine with Listings AI
    Moz Local

    Let your business shine with Listings AI

    Learn more
  • Free SEO Tools
    • Domain Analysis

      Get top competitive SEO metrics like DA, top pages and more.

    • Keyword Explorer

      Find traffic-driving keywords with our 1.25 billion+ keyword index.

    • Link Explorer

      Explore over 40 trillion links for powerful backlink data.

    • Competitive Research

      Uncover valuable insights on your organic search competitors.

    • MozBar

      See top SEO metrics for free as you browse the web.

    • More Free SEO Tools

      Explore all the free SEO tools Moz has to offer.

    NEW Keyword Suggestions by Topic
    Moz Pro

    NEW Keyword Suggestions by Topic

    Learn more
  • Learn SEO
    • Beginner's Guide to SEO

      The #1 most popular introduction to SEO, trusted by millions.

    • SEO Learning Center

      Broaden your knowledge with SEO resources for all skill levels.

    • On-Demand Webinars

      Learn modern SEO best practices from industry experts.

    • How-To Guides

      Step-by-step guides to search success from the authority on SEO.

    • Moz Academy

      Upskill and get certified with on-demand courses & certifications.

    • MozCon

      Save on Early Bird tickets and join us in London or New York City

    Unlock flexible pricing & new endpoints
    Moz API

    Unlock flexible pricing & new endpoints

    Find your plan
  • Blog
  • Why Moz
    • Digital Marketers

      Simplify SEO tasks to save time and grow your traffic.

    • Small Business Solutions

      Uncover insights to make smarter marketing decisions in less time.

    • Agency Solutions

      Earn & keep valuable clients with unparalleled data & insights.

    • Enterprise Solutions

      Gain a competitive edge in the ever-changing world of search.

    • The Moz Story

      Moz was the first & remains the most trusted SEO company.

    • New Releases

      Get the scoop on the latest and greatest from Moz.

    Surface actionable competitive intel
    New Feature

    Surface actionable competitive intel

    Learn More
  • Log in
    • Moz Pro
    • Moz Local
    • Moz Local Dashboard
    • Moz API
    • Moz API Dashboard
    • Moz Academy
  • Avatar
    • Moz Home
    • Notifications
    • Account & Billing
    • Manage Users
    • Community Profile
    • My Q&A
    • My Videos
    • Log Out

The Moz Q&A Forum

  • Forum
  • Questions
  • Users
  • Ask the Community

Welcome to the Q&A Forum

Browse the forum for helpful insights and fresh discussions about all things SEO.

  1. Home
  2. SEO Tactics
  3. Intermediate & Advanced SEO
  4. How (or if) to apply re canonical tags to Shopify?

Moz Q&A is closed.

After more than 13 years, and tens of thousands of questions, Moz Q&A closed on 12th December 2024. Whilst we’re not completely removing the content - many posts will still be possible to view - we have locked both new posts and new replies. More details here.

How (or if) to apply re canonical tags to Shopify?

Intermediate & Advanced SEO
4
13
8.3k
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as question
Log in to reply
This topic has been deleted. Only users with question management privileges can see it.
  • muzzmoz
    muzzmoz last edited by Jan 22, 2017, 11:56 PM

    Anyone familiar with Shopify will understand the problems of their directory structure. Every time you add a product to a 'collection' it essentially creates a duplicate. For example...

    • https://www.domain.com/products/product-slim-regular-bikini

    may also appear as:

    • https://www.domain.com/collections/all/products/product-slim-regular-bikini
    • https://www.domain.com/collections/new-arrivals/products/product-slim-regular-bikini
    • https://www.domain.com/collections/bikinis/products/product-slim-regular-bikini
    • etc, etc

    It's not uncommon to have up to six duplicates of each product.

    So my question is twofold:

    1. Firstly, should I worry about this from an SEO point of view? I understand the desire to minimise potential duplicate content issues and also in focussing the 'juice' on just one page per product. But I also planned on trying to build the authority of the collection pages. If I request Google not to index the product pages which link off the collections, does this not devalue these collections pages?
    2. Secondly, I understand the correct way to fix these is using 'rel canonical' tags, but I'm not clear about HOW to actually do this. Shopify support has not been very helpful. They have provided two different instructions, so just added to the confusion (see below).

    Shopify instruction #1: Add the following to the theme.liquid file...

    <title><br />{{ page_title }}{% if current_tags %} – tagged "{{ current_tags | join: ', ' }}"{% endif %}{% if current_page != 1 %} – Page {{ current_page }}{% endif %}{% unless page_title contains shop.name %} – {{ shop.name }}{% endunless %}<br /></title>
    {% if page_description %}

    {% endif %}

    Shopify instruction #2: Add the following to each individual product page...

    So, can anyone help clarify:

    1. The best strategic approach to this inherent SEO issue with Shopify (besides moving to another platform!)? and
    2. If 'rel canonical' tags is the way to go, exactly where and how to apply them?

    Regards,

    Murray

    1 Reply Last reply Reply Quote 1
    • DmitriiK
      DmitriiK @Insightful_Media last edited by Apr 30, 2019, 5:38 PM Apr 30, 2019, 5:38 PM

      Howdy,

      I assume that in your case it doesn't happen automatically. In this case you'll need to use an IF statements in the head/header file. Basically, it would be this:

      IF current page url = url you want THEN display canonical tag with wanted url

      Repeat that for all needed url and you are good.

      If there are many of those, CASE might be better.

      1 Reply Last reply Reply Quote 0
      • Insightful_Media
        Insightful_Media @DmitriiK last edited by Apr 27, 2019, 3:54 PM Apr 27, 2019, 3:54 PM

        Good answer!

        I have a question! If I just wanna add one or two canoncial tags on specific page(s), how I can do it on shopify coding?

        DmitriiK 1 Reply Last reply Apr 30, 2019, 5:38 PM Reply Quote 0
        • topic:timeago_earlier,about a year
        • jeffpape
          jeffpape last edited by Jan 9, 2018, 3:06 PM Jan 9, 2018, 3:06 PM

          How can I fix this problem with Shopify? Shopify does not seem like it is a problem. One of their solutions is to no index the other pages, but I want all the google juice and google love going to the main page.

          Current Setup:

          https://wrestlinggear.com/collections/wrestling-shoes rel canonical - https://wrestlinggear.com/collections/wrestling-shoes

          https://wrestlinggear.com/collections/wrestling-shoes/accessory rel - https://wrestlinggear.com/collections/wrestling-shoes/accessory

          https://wrestlinggear.com/collections/wrestling-shoes/adidas rel canonical - https://wrestlinggear.com/collections/wrestling-shoes/adidas

          I want it like this:

          https://wrestlinggear.com/collections/wrestling-shoes - rel canonical - https://wrestlinggear.com/collections/wrestling-shoes

          https://wrestlinggear.com/collections/wrestling-shoes/accessory - rel canonical - https://wrestlinggear.com/collections/wrestling-shoes

          https://wrestlinggear.com/collections/wrestling-shoes/adidas- rel canonical - https://wrestlinggear.com/collections/wrestling-shoes

          Of course there are a lot more pages like this that I would like to rel cannoical back to the main collections pages.

          1 Reply Last reply Reply Quote 0
          • topic:timeago_earlier,12 months
          • DmitriiK
            DmitriiK @muzzmoz last edited by Jan 25, 2017, 4:53 PM Jan 25, 2017, 4:53 PM

            Use tools like SEO Frog

            1 Reply Last reply Reply Quote 0
            • DmitriiK
              DmitriiK @muzzmoz last edited by Jan 25, 2017, 4:52 PM Jan 25, 2017, 4:52 PM

              Well, if it automatically doesn't work, then you gotta do it manually, right 🙂

              1 Reply Last reply Reply Quote 0
              • muzzmoz
                muzzmoz @DmitriiK last edited by Jan 25, 2017, 1:27 AM Jan 25, 2017, 1:27 AM

                I don't believe this is the answer. I have several other clients on Shopify who do not have goals for macro conversions, but we are seeing conversion data in GA.

                Besides, I was always under the impression that if you have ecommerce enabled, it's better not to use goals for transactions as it might duplicate. Is this not the case?

                DmitriiK 1 Reply Last reply Jan 25, 2017, 4:52 PM Reply Quote 0
                • muzzmoz
                  muzzmoz @DmitriiK last edited by Jan 25, 2017, 1:14 AM Jan 25, 2017, 1:14 AM

                  I know how to check whether the code is there. But how do you check whether or not specific pages have been indexed by Google?

                  As far as I can see Google Search Console only reports on the number of pages indexed, not which pages have been indexed. Is there any way to get an actual list of indexed pages?

                  I know running a site: query will show up all the results, but I just want a list (eg CSV) of the URLs indexed.

                  DmitriiK 1 Reply Last reply Jan 25, 2017, 4:53 PM Reply Quote 0
                  • DmitriiK
                    DmitriiK @muzzmoz last edited by Jan 24, 2017, 8:53 PM Jan 24, 2017, 8:53 PM

                    Yes, I am. Here is a link with answers to your troubles: https://help.shopify.com/manual/reports-and-analytics/google-analytics/google-analytics-goals-and-funnels

                    muzzmoz 1 Reply Last reply Jan 25, 2017, 1:27 AM Reply Quote 0
                    • DmitriiK
                      DmitriiK @muzzmoz last edited by Jan 24, 2017, 8:52 PM Jan 24, 2017, 8:52 PM

                      Yes, it is supposed to. Try it, check it - it's pretty easy 🙂

                      muzzmoz 1 Reply Last reply Jan 25, 2017, 1:14 AM Reply Quote 0
                      • muzzmoz
                        muzzmoz @DmitriiK last edited by Jan 24, 2017, 7:50 PM Jan 24, 2017, 7:50 PM

                        Are you familiar with Shopify?

                        I have another issue where GA tracking code is not firing on the Thank_You page. I have double checked GA config with the GA implementation twice! But the problem seems to be with Shopify, since this page sites on their site (checkout.shopify.com) and they seem unable to fix it.

                        DmitriiK 1 Reply Last reply Jan 24, 2017, 8:53 PM Reply Quote 0
                        • muzzmoz
                          muzzmoz @DmitriiK last edited by Jan 24, 2017, 7:45 PM Jan 24, 2017, 7:45 PM

                          Thanks Dmitrii,

                          So will that one line of code fix the issue for ALL products and ALL collections?

                          DmitriiK 1 Reply Last reply Jan 24, 2017, 8:52 PM Reply Quote 0
                          • DmitriiK
                            DmitriiK last edited by Jan 24, 2017, 2:54 PM Jan 24, 2017, 2:54 PM

                            Howdy.

                            Shopify does canonicals automatically. Basically all the collections products urls will have canonical to product url. Like this: https://www.domain.com/collections/all/products/product-slim-regular-bikini will have canonical to
                            https://www.domain.com/products/product-slim-regular-bikini

                            If it doesn't happen for you automatically, simply insert this:

                            In the main theme.liquid file in the head section.

                            muzzmoz Insightful_Media 3 Replies Last reply Apr 27, 2019, 3:54 PM Reply Quote 3
                            • 1 / 1
                            1 out of 13
                            • First post
                              1/13
                              Last post

                            Got a burning SEO question?

                            Subscribe to Moz Pro to gain full access to Q&A, answer questions, and ask your own.


                            Start my free trial


                            Browse Questions

                            Explore more categories

                            • Moz Tools

                              Chat with the community about the Moz tools.

                            • SEO Tactics

                              Discuss the SEO process with fellow marketers

                            • Community

                              Discuss industry events, jobs, and news!

                            • Digital Marketing

                              Chat about tactics outside of SEO

                            • Research & Trends

                              Dive into research and trends in the search industry.

                            • Support

                              Connect on product support and feature requests.

                            • See all categories

                            Related Questions

                            • AndyRSB

                              Near Duplicate Title Tag Checker

                              Hi Everyone, I know there are a lot of tools like Siteliner, which can check the uniqueness of body copy, but are there any that can restrict the check to the title tags alone? Alternatively, is there an Excel or Google Sheets function that would allow me to do the same thing? Thanks, Andy

                              Intermediate & Advanced SEO | Nov 12, 2019, 1:55 PM | AndyRSB
                              0
                            • Nigel_Carr

                              Canonical Chain

                              This is quite advanced so maybe Rand can give me an answer? I often have seen questions surrounding a 301 chain where only 85% of the link juice is passed on to the first target and 85% of that to the next one, up to three targets. But how about a canonical chain? What do I mean by this:? I have a client who sells lighting so I will use a real example (sans domain) I don't want 'new-product' pages appearing in SERPS. They dilute link equity for the categories they replicate and often contain identical products to the main categories and subcategories. I don't want to no index them all together I'd rather tell Google they are the same as the higher category/sub category. (discussion whether a noindex/follow tag would be better?) If I canonicalize new-products/ceiling-lights-c1/kitchen-lighting-c17/kitchen-ceiling-lights-c217 to /ceiling-lights-c1/kitchen-lighting-c17/kitchen-ceiling-lights-c217 I then subsequently discover that everything in kitchen-ceiling-lights-c217 is already in /kitchen-lighting-c17 and I decide to canonicalize those two - so I place a /kitchen-lighting-c17 canonical on /kitchen-ceiling-lights-c217. Then what happens to the new-products canonical? Is it the same rule - does it pass 85% of link equity back to the non new-product URL and 85% of that back to the category? does it just not work? or should I do noindexi/follow Now before you jump in: Let's assume these are done over a period of time because the obvious answer is: Canonicalize both back to /ceiling-lights-c1/kitchen-lighting-c17 I know that and that is not what I am asking. What if they are done in a sequence what is the real result? I don't want to patronise anyone but please read this carefully before giving an answer. Regards Nigel Carousel Projects.

                              Intermediate & Advanced SEO | Sep 27, 2017, 5:07 AM | Nigel_Carr
                              0
                            • unirmk

                              Rel=canonical and internal links

                              Hi Mozzers, I was musing about rel=canonical this morning and it occurred to me that I didnt have a good answer to the following question: How does applying a rel=canonical on page A referencing page B as the canonical version affect the treatment of the links on page A? I am thinking of whether those links would get counted twice, or in the case of ver-near-duplicates which may have an extra sentence which includes an extra link, whther that extra link would count towards the internal link graph or not. I suspect that google would basically ignore all the content on page A and only look to page B taking into account only page Bs  links. Any thoughts? Thanks!

                              Intermediate & Advanced SEO | Jan 17, 2017, 12:32 PM | unirmk
                              0
                            • s_EOgi_Bear

                              Wordpress Tag Pages - NoIndex?

                              Hi there. I am using Yoast Wordpress Plugin. I just wonder if any test have been done around the effects of Index vs Noindex for Tag Pages? ( like when tagging a word relevant to an article ) Thanks 🙂 Martin

                              Intermediate & Advanced SEO | Aug 28, 2015, 2:09 AM | s_EOgi_Bear
                              0
                            • GalcoIndustrial

                              Lowercase VS. Uppercase Canonical tags?

                              Hi MOZ, I was hoping that someone could help shed some light on an issue I'm having with URL structure and the canonical tag. The company I work for is a distributor of electrical products and our E-commerce site is structured so that our URL's (specifically, our product detail page URL's) include a portion (the part #) that is all uppercase (e.g: buy/OEL-Worldwide-Industries/AFW-PG-10-10). The issue is that we have just recently included a canonical tag in all of our product detail pages and the programmer that worked on this project has every canonical tag in lowercase instead of uppercase.  Now, in GWT, I'm seeing over 20,000-25,000 "duplicate title tags" or "duplicate descriptions". Is this an issue?  Could this issue be resolved by simply changing the canonical tag to reflect the uppercase URL's?  I'm not too well versed in canonical tags and would love a little insight. Thanks!

                              Intermediate & Advanced SEO | Jan 7, 2014, 11:33 AM | GalcoIndustrial
                              0
                            • bjs2010

                              Meta NoIndex tag and Robots Disallow

                              Hi all, I hope you can spend some time to answer my first of a few questions 🙂 We are running a Magento site - layered/faceted navigation nightmare has created thousands of duplicate URLS! Anyway, during my process to tackle the issue, I disallowed in Robots.txt anything in the querystring that was not a p (allowed this for pagination). After checking some pages in Google, I did a site:www.mydomain.com/specificpage.html and a few duplicates came up along with the original with
                              "There is no information about this page because it is blocked by robots.txt" So I had added in Meta Noindex, follow on all these duplicates also but I guess it wasnt being read because of Robots.txt. So coming to my question. Did robots.txt block access to these pages? If so, were these already in the index and after disallowing it with robots, Googlebot could not read Meta No index? Does Meta Noindex Follow on pages actually help Googlebot decide to remove these pages from index? I thought Robots would stop and prevent indexation? But I've read this:
                              "Noindex is a funny thing, it actually doesn’t mean “You can’t index this”, it means “You can’t show this in search results”. Robots.txt disallow means “You can’t index this” but it doesn’t mean “You can’t show it in the search results”. I'm a bit confused about how to use these in both preventing duplicate content in the first place and then helping to address dupe content once it's already in the index. Thanks! B

                              Intermediate & Advanced SEO | May 15, 2013, 10:18 PM | bjs2010
                              0
                            • NakulGoyal

                              Wildcard Redirects & Canonical Tags

                              I have an interesting situation. Current URLs Example1: www.domain.com/red-widgets-cid-1234.html
                              www.domain.com/red-widgets-cid-1234-1.html
                              www.domain.com/red-widgets-cid-1234-1-1.html Canonical on All Above URLs:
                              www.domain.com/red-widgets-cid-1234.html New URL:
                              www.domain.com/red-widgets-cid-4567.html Current URLs Example2: www.domain.com/red-widgets-cid-1234+10.html
                              www.domain.com/red-widgets-cid-1234+10-1.html
                              www.domain.com/red-widgets-cid-1234+10-1-1.html Canonical on All Above URLs:
                              www.domain.com/red-widgets-cid-1234+10.html New URL:
                              www.domain.com/red-widgets-cid-6789.html Current URLs Example3: www.domain.com/red-widgets-cid-1234+10+5.html
                              www.domain.com/red-widgets-cid-1234+10+5-1.html
                              www.domain.com/red-widgets-cid-1234+10+5-1-1.html Canonical on All Above URLs:
                              www.domain.com/red-widgets-cid-1234+10+5.html New URL:
                              www.domain.com/american-red-widgets-cid-6789+5.html I want to make sure all variations of the above URL redirect to the new URLs.  However, as you see in Example 3, we are dealing with variables that are passed on. (+5 in this case). Question 1: What wildcard 301 redirect / regular expression can I use to tackle these ? Question 2: If we redirect www.domain.com/red-widgets-cid-1234+10+5.html to www.domain.com/red-widgets-cid-6789+5.html and www.domain.com/red-widgets-cid-6789+5.html contains the canonical tag www.domain.com/american-red-widgets-cid-6789+5.html, any concerns or red flags here ?

                              Intermediate & Advanced SEO | Feb 5, 2013, 11:13 PM | NakulGoyal
                              0
                            • kbbseo

                              How does a canonical work and is it necessary to also have a no index, follow tag in place?

                              Across our site, we have canonical tags in place for URLs that contain duplicate content and for URLs without a trailing slash since we are using URLs WITH a trailing slash for all URLs across our site. We also recently added a no index, follow tag to all non-canonical URLs since we noticed a high number of duplicate content URLs in Google Webmaster Tools. The first part of my question is: How does a canonical work? Does the robot read the canonical and immediately go to the canonical URL or does it continue to read past the canonical tag and get to the no index, follow tag if there is one present? The second part of my question is: Is it necessary to have both a canonical tag and no index, follow tag in place? Or should the canonical tag be sufficient to avoid duplicate content? And lastly, if both a canonical tag and no index, follow tag are in place, should they be in a specific order? Canonical tag first then no index, follow tag second or no index, follow tag first then canonical tag second? I would appreciate any insight you can give. Thank you!

                              Intermediate & Advanced SEO | Aug 16, 2011, 5:09 PM | kbbseo
                              0

                            Get started with Moz Pro!

                            Unlock the power of advanced SEO tools and data-driven insights.

                            Start my free trial
                            Products
                            • Moz Pro
                            • Moz Local
                            • Moz API
                            • Moz Data
                            • STAT
                            • Product Updates
                            Moz Solutions
                            • SMB Solutions
                            • Agency Solutions
                            • Enterprise Solutions
                            • Digital Marketers
                            Free SEO Tools
                            • Domain Authority Checker
                            • Link Explorer
                            • Keyword Explorer
                            • Competitive Research
                            • Brand Authority Checker
                            • Local Citation Checker
                            • MozBar Extension
                            • MozCast
                            Resources
                            • Blog
                            • SEO Learning Center
                            • Help Hub
                            • Beginner's Guide to SEO
                            • How-to Guides
                            • Moz Academy
                            • API Docs
                            About Moz
                            • About
                            • Team
                            • Careers
                            • Contact
                            Why Moz
                            • Case Studies
                            • Testimonials
                            Get Involved
                            • Become an Affiliate
                            • MozCon
                            • Webinars
                            • Practical Marketer Series
                            • MozPod
                            Connect with us

                            Contact the Help team

                            Join our newsletter
                            Moz logo
                            © 2021 - 2025 SEOMoz, Inc., a Ziff Davis company. All rights reserved. Moz is a registered trademark of SEOMoz, Inc.
                            • Accessibility
                            • Terms of Use
                            • Privacy

                            Looks like your connection to Moz was lost, please wait while we try to reconnect.