SEO, AdWords, affiliates, advertising, and promotions
Hi together,
I want to remove the canonical tag from some product pages, but it does not work. I am able to change the canonical URL, but deleting doesn't work.
If I change the code in theme.liquid like that, it works:
{% if handle contains 'pmc' %}
<link rel="canonical" <link rel="canonical" href="https://www.pazls.de/test"/>
{% else %}
<link rel="canonical" href="{{ canonical_url }}"/>
{% endif %}
On pages containing the URL handle 'pmc' the canonical URL is https://www.pazls.de/test
If I change the code like that, I would expect that there is no canonical tag anymore:
{% if handle contains 'pmc' %}
{% else %}
<link rel="canonical" href="{{ canonical_url }}"/>
{% endif %}
But it doesn't work (also when I use a solution with %unless% instead of the solution above). I can still see a canonical tag with {{canonical_url}} in the code.
Why can I still see a canonical URL? And how can we remove it?
For explanation why we are doing that. We are marking pages containing URL handle 'pmc' as no index:
{% if handle contains 'pmc' %}
<meta name="robots" content="noindex">
{% endif %}
We don't want to confuse crawlers. It doesn't make too much sense to mark something as 'noindex' and having a canonical tag at the same time...
Thanks for your help in advance :).
Hi, Canonical tags affect SEO from two points of view. For once, they directly influence how search results display. They can also influence the general rankings of a website due to multiple factors, such as structure, user experience and PageRank flow.
@safetyglasses thanks for your answer 🙂
Unfortunately I cannot find the path you described. When I click on settings in the main menu I cannot see "Advanced". On which Shopify plan are you?
If you are settings meta noindex, there's no need to remove the canonical url. Google will not index your page.
Yes it's not getting indexed, but our SEO expert says it's not good because it sends contradictory signals to the crawler, so it maybe affects the ranking.
Nevertheless I would be interested why Shopify doesn't allow that there's no canonocial URL.
Talk with your SEO expert, if a page is indexed, it should have also a canonical.
Hi @drakedev, thx for your answer.
The topic is about pages NOT being indexed and having a canonical at the same time in Shopify
Is there any SEO expert that also does not want to have a canonical tag for pages that are not indexed, and knows a solution for that?
The Shopify support told me to ask a Shopify expert, but it seems that this a technical issue that can only be solved by Shopify itself...
I'm an SEO expert and I can confirm that a canonical tag should NOT be present on noindex pages. Even if I'm removing <link rel="canonical" href="{{ canonical_url }}"> completely, the canonical tag is still displayed. Shopify team, is there a solution to this?
I can not find these option can you please help share a screenshot or something
We want to take a moment to celebrate the incredible ways you all engage with the Shopi...
By JasonH Oct 15, 2024Starting a B2B store is a big undertaking that requires careful planning and execution. W...
By JasonH Sep 23, 2024By investing 30 minutes of your time, you can unlock the potential for increased sales,...
By Jacqui Sep 11, 2024