Alternative page with proper canonical tag Error for GSC

Niggax

Registered Member
Joined
Jan 1, 2020
Messages
89
Reaction score
20
Hello guys,

How to optimize Alternative page with proper canonical tag for my website?

I have my website most language and currency.

So for example page:

examplesite.com/product/furniture-a/currency=try
examplesite.com/product/furniture-a/?currency=usd
examplesite.com/product/furniture-a/?currency=eur

This pages are error my Google Search console

I think examplesite.com/product/furniture/?currency=try that page for I should add canonical.

<a href="examplesite.com/product/furniture/?currency=try"</a>
<link rel="canonical" href="examplesite.com/product/furniture-a">

Do you think? How to I optimize that problem?
 
If your website is in PHP, use a function for automatic setting of the canonical link from the database. This will not work on non+hosted sites like Shopify, Wix and Weebly.
 
If your website is in PHP, use a function for automatic setting of the canonical link from the database. This will not work on non+hosted sites like Shopify, Wix and Weebly.
My website is not PHP
 
@Niggax Update your robots.txt file to include disallow directives that prevents search engine bots from ever crawling URLs with a special parameter in the permalink.

In the example you provided above, it will be something like this:

Disallow: /product/furniture-a/currency=*
Disallow: /product/furniture-a/?currency=*

Or, if this is something that occurs with other products, you can try this as well:

Disallow: /product/*/currency=*
Disallow: /product/*/?currency=*

That should take care of the problem because, at the end of the day, search engine bots should NOT be crawling those URLs in the first place as they don´t provide any SEO value and it´s just a copy of the original URL that has been dynamically created by user interaction (most likely) when using some sort of on-page filter.

I hope this helps.
 
Back
Top