Hreflang and canonical
I am getting tons of SEO warnings from SEMRUSH regarding our Zendesk help center (guide), they are all related to HREFLANG and CANONICAL tags, take a look at the image below.
Can we set hreflang and canonical on Zendesk help center articles?
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:
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.
- 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.
- 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 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!
댓글을 남기려면 로그인하세요.