var PostalGrowthVisitorLat=""; var PostalGrowthVisitorLong=""; function PostalGrowthGetGeoCoordinates() { if (navigator.geolocation) { navigator.geolocation.getCurrentPosition(PostalGrowthShareLocation,PostalGrowthHideLocation); } } function PostalGrowthShareLocation(geo){ PostalGrowthVisitorLat = geo.coords.latitude; PostalGrowthVisitorLong = geo.coords.longitude; alert(PostalGrowthVisitorLat + "-" + PostalGrowthVisitorLong) //var url = "//api.postalgrowth.com/geo-tracking/tracker.php?associateid="+associateId+"&page="+trackingPage+"&ref="+escape(document.referrer); //document.write(' < img src = "'+url+'" style="display:none;" />'); } function PostalGrowthHideLocation(geo){ PostalGrowthVisitorLat = "0"; PostalGrowthVisitorLong = "0"; } PostalGrowthGetGeoCoordinates();