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!
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.
Vous devez vous connecter pour laisser un commentaire.