Google: Don’t modify Canonical-Hyperlink later utilizing JavaScript


For Google, it’s appropriate to outline canonical hyperlinks through JavaScript. Modifying these hyperlinks later through JavaScript will be problematic.

Google acknowledges metadata and different info outlined on a web site utilizing JavaScript. It really works, for instance web page title and on meta robots tags, Google may take into consideration canonical hyperlinks generated by JavaScript after a web page has been rendered by Google.

This may be problematic, nonetheless, if a sure canonical hyperlink is contained within the preliminary HTML code, which is then later modified utilizing JavaScript. That explains Johannes Müller within the Webmaster Hangout on January 10,

By modifying the canonical hyperlink, you ship completely different alerts to Google. Google then doesn’t know which of the alerts is legitimate. In consequence, Google can ignore the canonical hyperlink and index the mistaken URL.

The setting of canonical hyperlinks through JavaScript is completely tremendous, so long as there is no such thing as a canonical hyperlink within the authentic HTML code.

Cowl picture: Copyright Paul Pirosca –

Christian Kunz

By Christian Kunz

search engine marketing knowledgeable. Do you want recommendation to your web site? Click on right here.

Clixado show

Article publications on stable magazines and blogs

We cooperate with numerous publishers and bloggers and may due to this fact supply article spots on virtually 4000 blogs on virtually all topics:

    – Creation of lasting hyperlinks, no search engine marketing community
    – Excessive visibility values, no expired domains
    – Single fee, no contract

For every article publication, we create prime quality content material with not less than 400 phrases and publish the article with a DoFollow Bach hyperlink to your web page in {a magazine} or weblog of your alternative.

Ask us for examples with out obligation