Google Can Process Canonical Tags In JavaScript

Aug 30, 2018 - 7:45 am 1 by

Google Java

Google's John Mueller said in a video hangout that Google can technically process canonicals within JavaScript. This is assuming that what is shown in the JavaScript doesn't conflict with other signals. John confirmed this on Twitter when Patrick Stox summarized it.

John said this at the 12:35 mark into the video when the question was presented:

Question from Darcy Burk: I guess my question is implementing hreflang and then modifying a canonical tag using JavaScript. So you see that being an issue or something that Google would recognize?

John Mueller's Answer: That could work.

Here is the video embed because John then goes into some of the difficulty around this:

Here is Patrick's tweet summarizing it with John from Google confirming:

Forum discussion at Twitter.

 

Popular Categories

The Pulse of the search community

Google Search Volatility

More Details

Search Video Recaps

 
Video Details More Videos Subscribe to Videos

Most Recent Articles

Search Forum Recap

Daily Search Forum Recap: June 16, 2026

Jun 16, 2026 - 10:00 am
Google Search Engine Optimization

Google: HTML The Standard For SEO, Not Markdown Files

Jun 16, 2026 - 7:51 am
Google Search Engine Optimization

Google: No Practical SEO Difference By Going With Folder For US Site

Jun 16, 2026 - 7:41 am
Google Ads

Google Image Search Mixes Ads Within Organic Results Too

Jun 16, 2026 - 7:31 am
Bing Ads

New Microsoft Advertising Product Explorer

Jun 16, 2026 - 7:21 am
Google Search Engine Optimization

Google: LLMS.txt Files Won't Help Or Hurt Your Search Rankings

Jun 16, 2026 - 7:11 am
 
Previous Story: Google Launches Structured Data Codelab