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...
Are you ready to take your business to the next level? Look no further than the latest ...
By SarahF_Shopify Apr 15, 2024We’re keeping the ball rolling to make sure you’re always ahead of the game. So buckle ...
By JasonH Apr 8, 2024Portrait of Stephen positioned next to an image of planet Earth, with the Stephen's World ...
By JasonH Mar 18, 2024