Is there any way for me to pass a visitor's latitude and longitude to a static lander hosted on a CDN?
Here's how I have it set up right now with generic values:
<script type="text/javascript">
var lat = 11.1111, lng = -11.1111, city = "";
</script>
You can use location sharing but I wouldn't recommend this since it requires user intervention.
The best way would be if the tracker can look this info up and then pass it through in the URL.
The second best way would be getting the info from a GeoIP service - either your own hosted on a server somewhere or a service like Maxmind's.
Never thought about the Maxmind World Cities database, not sure how accurate it is? Seems they openly don't support it, contains incorrect/dupe info etc.
Thanks for the help, Zeno.
I think I'm just going to set the database up on my own server like you said. If passing the lat & long from there to the CDN lander becomes too complicated I'll just move the pages over to the server as well.
Will report back with my results. 