Hreflang and canonical

2 コメント

  • Gorka Cardona-Lauridsen
    Zendesk Product Manager

    Rodrigo Demetrio
    While we don't have a no-code feature to manage these tags in individual pages you can set it with some custom coding, that can be used at least for canonical tags. There are basically two approaches:

    1. You can use our templating language curlybars to add some IF statements in the document_head.hbs that ads the tags based on the article ID.
    2. OR you can can add metatags via JS. Either coding your own or by implementing a tool like Google Tag Manager (Zendesk docs on GTM) or Pageimprove.
    The advantage of solution 1. is that it will be rendered server side and thus all search engines will be able to read it. The disadvantage is that your template code can become pretty bloated if you have many pages that need a canonical tag and you need to code.

    The advantage of solution 2 with GTM is that once the GTM snippet is implemented in the theme template code you can change the meta tags and canonical tags without coding. Though some search engines may not be able to read client side injected meta tags Google does read JS injected canonical tags, but does not recommend it.

    Hope it helps!
    1
  • Rodrigo Demetrio

    Gorka Cardona-Lauridsen

    Thank you for creating this step-by-step plan. I am leaning towards option 1 due to your SEO considerations.

    I hope to bring good news soon.

    0

サインインしてコメントを残してください。

Powered by Zendesk