Hey,
I’m working as Freelance SEO Manager, and I’m currently trying to set the canonical tag on a recently translated website (German and English version) in the right formatting. Currently, the canonical is set as:
This technically works, but it’s not adding the pagination (e.g.: ?page=4) at all. Which is an issue for this website.
I also don’t know which parameters to use, so that the information for the hreflang element for the locale and the url are getting populated correctly.
Does anyone know with which code I can achieve that the canonical is getting generated incl. pagination and how to populate the information about the de, en and url for the hreflang tags?
thank you so much for your response! I realized that the code from the initial post got removed. Let me try again, currently, I have only added the following code into the “head” partial of the page.
Additionally, I’d like to add the following hreflang tags but don’t know how to populate the information for the hreflang and href elements for each version.