We're having trouble setting the hreflang. The following is currently displayed for our website.
Example French start page:
<link href="https://www.example.de/en/" rel="alternate" hreflang="en">
<link href="https://www.example.de/de/" rel="alternate" hreflang="de">
<link href="https://www.example.de/es/" rel="alternate" hreflang="es">
<link href="https://www.example.de/it/" rel="alternate" hreflang="it">
<link href="https://www.example.de/fr/" rel="canonical">
Our SEO agency says the correct hreflang must be:
<link href="https://www.example.de/en/" rel="alternate" hreflang="en">
<link href="https://www.example.de/de/" rel="alternate" hreflang="de">
<link href="https://www.example.de/es/" rel="alternate" hreflang="es">
<link href="https://www.example.de/it/" rel="alternate" hreflang="it">
<link href="https://www.example.de/fr/" rel="alternate" hreflang="fr">
<link href="https://www.example.de/fr/" rel="canonical">
Google Reference:
https://developers.google.com/search/docs/advanced/crawling/localized-versions?hl=en "For each variation of the page, include a set of <link> elements in the <head> element, one link for each page variant including itself. The set of links is identical for every version of the page."
=> The "including itself" is missing and our "set of links" is not identical on every page.
Can this be adjusted somewhere?
Example French start page:
<link href="https://www.example.de/en/" rel="alternate" hreflang="en">
<link href="https://www.example.de/de/" rel="alternate" hreflang="de">
<link href="https://www.example.de/es/" rel="alternate" hreflang="es">
<link href="https://www.example.de/it/" rel="alternate" hreflang="it">
<link href="https://www.example.de/fr/" rel="canonical">
Our SEO agency says the correct hreflang must be:
<link href="https://www.example.de/en/" rel="alternate" hreflang="en">
<link href="https://www.example.de/de/" rel="alternate" hreflang="de">
<link href="https://www.example.de/es/" rel="alternate" hreflang="es">
<link href="https://www.example.de/it/" rel="alternate" hreflang="it">
<link href="https://www.example.de/fr/" rel="alternate" hreflang="fr">
<link href="https://www.example.de/fr/" rel="canonical">
Google Reference:
https://developers.google.com/search/docs/advanced/crawling/localized-versions?hl=en "For each variation of the page, include a set of <link> elements in the <head> element, one link for each page variant including itself. The set of links is identical for every version of the page."
=> The "including itself" is missing and our "set of links" is not identical on every page.
Can this be adjusted somewhere?