Problem: Since we have different segments of users from different countries that we support, we wanted to show the relevant images in marketing materials that represented the user’s country. For example, using US Dollars for American users vs Japanese Yen for users in Japan.

Solution: Use php (or any other server side language) to detect the user’s location based on IP and set the country to it’s appropriate code (e.g. CA for Canada, BR for Brazil). And based on the country code, change images on the front-end.

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/1a675c8d-b16f-41eb-84a1-d7ece88cb4a3/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/f61c5d83-6722-4be6-b7c9-74ef00b86501/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a4b3f6eb-878a-4170-90ab-8cb0fc110641/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/2cb83c21-7eee-4a69-8f90-c1dc0cddc63e/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/a2c83a0c-b05c-436e-97c1-bf12700b04f0/Untitled.png

https://s3-us-west-2.amazonaws.com/secure.notion-static.com/8ee237c1-8ece-42c4-a66f-5c0ca9011ced/Untitled.png