Olá! Nós temos uma Comunidade em Português!

How to display language specific pages based on user country hubspot


How to display language specific pages based on user country hubspot

0 Avaliação positiva
1 Resposta 1

Hi @nutanhaspe,


I don't know if this would work for what you're trying to accomplish, but we have this article on our knowledge base about managing multi-language content: https://knowledge.hubspot.com/articles/kcs_article/cos-general/how-to-manage-multi-language-content-.... It walks you through creating translated versions of pages, adding the language switcher to your pages, getting the translated page URLs set up, and enabling language-specific redirects.


There's also an option of creating smart content, which you can read about here: https://knowledge.hubspot.com/articles/kcs_article/cos-general/add-smart-content-to-your-website-pag.... There's an option specifically for country-based smart content.


And if you're looking for something a bit more advanced, you can find the visitor's country through HubL. I'd suggest exploring the Developer Info tab of a HubSpot-hosted page, which you can read about here: https://designers.hubspot.com/docs/hubl/how-to-use-developer-info-on-cos-pages. You can find information about the visitor's request through a "request" dictionary. So you could access the visitor's country (determined through IP address) with request.geoip_country .


Does this help with what you're trying to do?

Leland Scanlan

HubSpot Developer Support