I only want to show a toastr notification only if the user is coming from the state of California. Is there a package that can do this or is there another approach someone has done?
If these are front end users of your site will they be logged in having registered on your site or will some / all be anonymous. If they are anonymous you will only really have their ip address which you will then need to interface with a good ip to location provider (a lot of them are poor & inaccurate), you might also add in html5 location detection.
An important technique rather than a solution per se that i've seen is to create a basic profile for anonymous users on initial visit and then enhance that profile with more accurate info if or when you are able to funnel them through a data capture mechanism and glean accurate details provided from the visitor themselves. Even then though you only identify that a particular device is associated with a given location.
This demonstrates the problem, I was looking for the ip to location service we used in a project a while back I found it was http://ip-api.com/ but the location it returns for my ip is inaccurate displaying london instead of cardiff. This is also the case with several other services tested. One I just found reported correctly http://www.tracemyip.org/. My IP is 188.39.145.66 if it helps when testing with any others.
Well i just tried it and also visited their website on my mobile at home and the only thing it came up with was that i was in the uk dont know if its any better for US
you can maybe take a look at the Personalisation Groups-package (https://our.umbraco.org/projects/website-utilities/personalisation-groups/). It's created exactly for this task.
You still have to get the IP-to-location-lookup working, but it's a great way of personalizing your content.
Good spot jeffrey, i thought there was a package that did some of this but couldnt remember which, the only.one i came back across was footprint but that didnt look to really do the same job.
Have you used the personalisation groups package, how would you rate it?
I've used it for one production project and it's really easy to use for both developers and marketeers and it's fully extendable, so if you're missing something (which I doubt) you can built it on your own or get into contact with Andy (the maker of the package).
I was looking at this package and I guess I could pass the Ip to a Ip to location service. I noticed it provides Country IP, but doesn't go down to the state level in the US for example.
I have also noticed some of the services that translate ip to a location such as California are not reliable.
Show only content based on USA State?
Hi,
I only want to show a toastr notification only if the user is coming from the state of California. Is there a package that can do this or is there another approach someone has done?
Thanks, Saied
Hi Saied,
What is toastr notification ?
Thanks
Toastr is just a js file that shows notifications similar to the umbraco notifications.
If these are front end users of your site will they be logged in having registered on your site or will some / all be anonymous. If they are anonymous you will only really have their ip address which you will then need to interface with a good ip to location provider (a lot of them are poor & inaccurate), you might also add in html5 location detection.
An important technique rather than a solution per se that i've seen is to create a basic profile for anonymous users on initial visit and then enhance that profile with more accurate info if or when you are able to funnel them through a data capture mechanism and glean accurate details provided from the visitor themselves. Even then though you only identify that a particular device is associated with a given location.
Hi
The users will most likely be anonymous
Thanks
Saied, you have to use IP.
This demonstrates the problem, I was looking for the ip to location service we used in a project a while back I found it was http://ip-api.com/ but the location it returns for my ip is inaccurate displaying london instead of cardiff. This is also the case with several other services tested. One I just found reported correctly http://www.tracemyip.org/. My IP is 188.39.145.66 if it helps when testing with any others.
Yes, I was looking at many options. I found one called freegeoip.net. Here is a fiddle I was trying out:
http://jsfiddle.net/FTkxV/52/
Well i just tried it and also visited their website on my mobile at home and the only thing it came up with was that i was in the uk dont know if its any better for US
Hi Saied,
you can maybe take a look at the Personalisation Groups-package (https://our.umbraco.org/projects/website-utilities/personalisation-groups/). It's created exactly for this task.
You still have to get the IP-to-location-lookup working, but it's a great way of personalizing your content.
Jeffrey
Good spot jeffrey, i thought there was a package that did some of this but couldnt remember which, the only.one i came back across was footprint but that didnt look to really do the same job.
Have you used the personalisation groups package, how would you rate it?
Hi Ian,
I've used it for one production project and it's really easy to use for both developers and marketeers and it's fully extendable, so if you're missing something (which I doubt) you can built it on your own or get into contact with Andy (the maker of the package).
Happy personalizing!
Jeffrey
Hi Jeffrey,
I was looking at this package and I guess I could pass the Ip to a Ip to location service. I noticed it provides Country IP, but doesn't go down to the state level in the US for example.
I have also noticed some of the services that translate ip to a location such as California are not reliable.
Thanks for the help Saied
is working on a reply...