Detect visitor country!

Hello everyone. please I need help

I'm building my website entirely on Hype,
but I want to detect the visitor's country on the home page to separate customers by language. (English and Spanish)

Is it possible to detect if a visitor is not in the US and trigger a scene so the visitor can choose which language they prefer?

Here you go. Using ip-api.com and JSONP:

Detect-IP.hype.zip (32,0 KB)

2 Likes

Does it have to be so complicated though? Why not just detect the browser language and display the correct content accordingly?

Here's a Hype Template that shows how to do it…

…and there's a video…

3 Likes