The Polish and English shipping pages point to each other. The German URL appears in its own sitemap, yet the other versions never list it. Open the <url> entry for each page. The <loc> element gives the page URL and the xhtml:link elements show the alternate languages attached to it.
Compare the relationships across three profiles
Set the same hreflang_group on all profiles and give each profile its own Store View and unique language code. Enable the CMS source and its hreflang option. Enter cms:12=shipping-info, cms:37=shipping-info, and cms:58=shipping-info in the respective profiles. The number after cms: identifies the local page. The value on the right identifies the translation set. Confirm that each local URL is eligible for its sitemap. Module documentation.
Test a different key and a page exclusion
In a local test of Kowal Google Sitemap 0.1.8, the German page with a different key linked only to itself. Using a shared key restored all three alternates on every page. Adding ID 58 to the CMS source's exclude_ids then removed the German entry. The dash in the table means the entire entry was absent.
| PL | EN | DE |
|---|---|---|
pl-PL, en-GB · Different DE key | pl-PL, en-GB | de-DE |
pl-PL, en-GB, de-DE · Shared key | pl-PL, en-GB, de-DE | pl-PL, en-GB, de-DE |
pl-PL, en-GB · DE excluded | pl-PL, en-GB | — |
Read the report and compare the refreshed XML
Run php bin/magento kowal:sitemap:generate --id=12 --dry-run --format=json for each profile, substituting the profile ID. Inspect the accepted count, URL samples, and rejection reasons. After refreshing the entire group, open the relevant XML files and compare the href values and hreflang codes. Each translation in the set should list itself and the other versions. Google's guidelines for sitemaps.
If the versions are already in the sitemap and an individual URL is missing from search, follow the guide to diagnosing a URL missing from Google.
