A friend who talks SEO told me to 'add a canonical tag'. What exactly does canonical tag mean? Is it HTML code or a URL? When is it used?
On an e-commerce site, there are URL parameters like /product?color=red and /product?color=blue — these are different versions of the same product. Does Google count this as duplicate? Do I need to add a canonical?
Do you also put a canonical on the homepage? Yoast SEO on WordPress sets up canonicals automatically — if I'm setting up my own site, should I add it manually?