How to implement different landing pages for different countries? How can I get Drupal 8 to use different landing pages for different countries?

I can create the pages but how do I tell Drupal which page to show for each country? Is geo location the only way, or is there another way?
First thing is, how are you identifying your user's country?


You could use JS and the geolocation API
Or you could use the IP of the user and use a database


Id depends on how accurate you need this.
Once you translate the information to an actual country. Then you can decide what to show.

&nbsp;

Something to keep in mind is the penalty for this. Instead of showing a different page per country, you might consider showing the same page and maybe via some JS modify an element once you have the location.