We have a Sitecore 9.1.1 site with SXA 1.8.1. We're getting duplicate results in analytics because the urls will appear there with and without the
\en part. We only have 1 language in the site.
I have since patched the Sitecore link provider and our custom one to have
We have the always strip language set to true - and the description to me sounds like it should be stripping out the language code from the url.
<setting name="Languages.AlwaysStripLanguage" value="true"/>
We also have a canonical url now dynamically generated for each page.
Should this be sufficient for analytics to stop showing the duplicate /en entries? Or is further action required?
It seems like someone could go to the site url with /en and it will be logged to analytics as that duplicate - although all the internal links should never have that language code.