Depending on location changing the content of website
Hello Everyone,
I have developed the umbraco basic website with only one "home.cshtml" file. Now I want to add some features like below mentioned.
Add country specific website where some sections will be hidden -
1. For example, if I am browsing from India, I will see login login
2. When I browse from US, I will see simple sign up button (instead of login button)
Can anyone help me to solve this. Please provide the information like in steps not in paragraph and mention file if it is possible.
Using a geolocation API like https://ip-api.com/, you can pass in the users IP address and get the location. Though its not completely accurate, it's probably your best bet. You can get the users IP adress from the Request object, like Request.UserHostAddress - read more here
You can also use the browsers geolocation API, but that would depend on the user having a GPS in their device, AND allowing access to it - the browser will prompt the user when you try to get it the first time. This can be annoying for the user.
another alternative could be the uMarketingSuite. What you want to achieve is a sort of explicit personalisation. Based on an IP-address serve different functionality and/or content. The uMarketingSuite does this and is fully integrated in Umbraco.
Depending on location changing the content of website
Hello Everyone,
I have developed the umbraco basic website with only one "home.cshtml" file. Now I want to add some features like below mentioned.
Add country specific website where some sections will be hidden -
1. For example, if I am browsing from India, I will see login login
2. When I browse from US, I will see simple sign up button (instead of login button)
Can anyone help me to solve this. Please provide the information like in steps not in paragraph and mention file if it is possible.
Thank you,
Iliyaj
Using a geolocation API like https://ip-api.com/, you can pass in the users IP address and get the location. Though its not completely accurate, it's probably your best bet. You can get the users IP adress from the Request object, like Request.UserHostAddress - read more here
You can also use the browsers geolocation API, but that would depend on the user having a GPS in their device, AND allowing access to it - the browser will prompt the user when you try to get it the first time. This can be annoying for the user.
Hi Iliyaj,
another alternative could be the uMarketingSuite. What you want to achieve is a sort of explicit personalisation. Based on an IP-address serve different functionality and/or content. The uMarketingSuite does this and is fully integrated in Umbraco.
Check the functionality out on their website https://www.umarketingsuite.com/features/personalization/
Have a great day,
Jeffrey
is working on a reply...