<link rel="canonical" href="..."> looks like the simplest tag in your <head> . Then someone asks "should paginated pages be canonical to page one?" or "why is Google ignoring our canonical?" and the simplicity disappears.
Here are ten questions developers ask about canonical tags, with direct answers. Where search engines' behaviour is involved, I'm describing how they document it; check the current official documentation for anything you plan to rely on.
1. What does a canonical tag actually do?
It tells search engines which URL you consider the main version of a page when several URLs show the same or very similar content. For example:
https://example.com/shoes/red-trainers https://example.com/shoes/red-trainers?utm_source=newsletter https://example.com/shoes/red-trainers?sort=price
Enter fullscreen mode
Exit fullscreen mode
All three show the same product.…