The key to making sure your content is indexed correctly is adding the right self-referencing hreflangs to your webpages.
The first step is to identify all the different languages and regions you want to target with your content. Once you have identified these languages/regions, you need to add hreflangs for each one.
Here’s an example:
In this example, there are four different versions of the same page (one US English version, one Mexico Spanish version, one Canada French version, and one “default,” which points back to the US English version).
Each version has its unique URL and its corresponding self-referencing hreflang tag pointing back to it so that search engines know where it can find each version of the page when someone searches for it in their native language or region.