Google then: Injecting canonical tags with JS doesn't work.
Me in 2018 years ago: Yes, it does. Here's the tweet with the test.
Google 4 years later: Oh yeah, that works but we don't recommend it. developers.google.com/search/docs/ad
🦥
Quote Tweet
What does the URL Inspection tool say about JavaScript inserted canonicals? Here's one for stoxseo.com (no canonical in html), which was definitely respected and switched in the SERPs a while back but now even the tools are telling me they see and respect it. @JohnMu


