HREFLANG with Transcribe
HREFLANG tags allow you to tell search engines that a page exists in multiple languages but that all the pages refer to the same content (more or less).
If you're new to HREFLANG, head on over to this Google article for more information:
https://support.google.com/webmasters/answer/189077?hl=en
To setup HREFLANG tags with Transcribe, you can use the {exp:transcribe:uri}
tag by setting the lang
parameter to the language you want to display for the page
and the path
parameter of the {page_uri}
like so:
<link rel="alternate" hreflang="x-default" href="{exp:transcribe:uri lang='en' path='{page_uri}'}" />
<link rel="alternate" hreflang="en-US" href="{exp:transcribe:uri lang='en' path='{page_uri}'}" />
<link rel="alternate" hreflang="en-MX" href="{exp:transcribe:uri lang='en' path='{page_uri}'}" />
<link rel="alternate" hreflang="en-CA" href="{exp:transcribe:uri lang='en' path='{page_uri}'}" />
<link rel="alternate" hreflang="en" href="{exp:transcribe:uri lang='en' path='{page_uri}'}" />
<link rel="alternate" hreflang="es-US" href="{exp:transcribe:uri lang='es' path='{page_uri}'}" />
<link rel="alternate" hreflang="es-MX" href="{exp:transcribe:uri lang='es' path='{page_uri}'}" />
<link rel="alternate" hreflang="es-CA" href="{exp:transcribe:uri lang='es' path='{page_uri}'}" />
<link rel="alternate" hreflang="es" href="{exp:transcribe:uri lang='es' path='{page_uri}'}" />