In a client’s website, I received the following error from the Google Search Console, while inspecting AMP URLS:
“The tag ‘link rel=canonical’ appears more than once in the document”.
The website is a publisher website and uses two plugins to accommodate ADS, both in Desktop and AMP (Mobile) version. Those 2 plugins are designed by the same company and work together perfectly.
- Better ADs
- Better AMP
The website also uses YOAST SEO for indexing the pages. The problem is that both Better AMP and YOAST SEO were adding canonical URL to the AMP code.
I found an article that demonstrates exactly what happens if you inspect the page. The double canonical URL is displayed in the following image.

However, the solution displayed in the article did not work for me, so I was forced to deactivate Better AMP. I downloaded the plugin “AMP for WP”.
After initial setup and customization, I assigned Google Search Console to re-inspect my AMP URLs. The problem was solved.

