geo location with safari - dictionary

This will appear to a duplicate question but please consider this. I am doing an application with google map. my client need to load the places around the visitor, so i am trying to use geolocation. But all the google results and stackoverflow results shows, its impossible with wired network in Safari to get the location. Is there any other possibility that it can be implemented?(i have tried to use Modernizr and the Webshims even its example fails in safari, so i think no hope for that too)
my reference website is foursquare.com. its work perfect with map. is it using google map geolocation?

First of all i dont know is this the exact answer. But i find out a solution for my problem. I used geoLiteCity.dta database to get the location details from the IP addess. Then i Used geocoder to get the location in the map from that address. I am not sure is it a proper way or not, but as far as i am getting the locations. If there is any better way please let me know. Thanks

Related

Tracking links within my site

I want to track particular links on my site to see where they come from. For example, I want to know which links on my navigation are being clicked, so if something is not being clicked I could potentially remove it.
I have been using UTM's, super easy, but results in skewed analytics data.
I looked into Google Tag Manager, but I don't want to slow down my website. I can change the site easily, so not sure if this is the best solution.
I found an article dated 2008 that says I can do this:
https://www.example.com/?from=topnav
Is that still valid? Is there a better way. I can't seem to find any information on this and assume somebody wants to acquire this information.
Thank you.
I have been using UTM's, super easy, but results in skewed analytics
data.
UTM codes are meant to track inbound traffic. Don't use them to track internal/outbound navigation, as it will seriously mess up your reporting.
I looked into Google Tag Manager, but I don't want to slow down my
website.
GTM is loading async, just like GA, so performance-wise they are equivalent.
I found an article dated 2008 that says I can do this:
https://www.example.com/?from=topnav
By default GA will not track link clicks. You can indeed add parameters to URLs and then use those to build custom reports and see which links are being clicked.
Since what you're trying to do is custom implementation, you won't find a single best answer, it's up to you to implement something that fits your needs. These are some examples:
https://analytical42.com/2017/track-internal-links-google-analytics-gtm/
https://www.gravitatedesign.com/blog/can-google-analytics-track-link-clicks/

Locality parameter not working with googlemapsapi

I have code that used to work great which was taken directly from google developers tools. It is the autocomplete addressform. It still works but it is not saving the city parameter? Everything else is working and even if I check it on the google developers site it does not work? Have they changed something or is there an error they need to know about?
Googlemaps have changed the parameters, locality is now postal_town. I imagine a lot of people may be affected by this. Strange there is no documentation for this change and even their own site has not implemented it??!!!
I can confirm, google recently changed this field for UK. I have an web app that depended of this and I had to fix it.

How to stop Google Analytics Hacks?

What people are doing is basically taking the UA-XXXXXX code that you normally get with analytics, and they are generating calls against it. This is skewing my analytics stats. On top of that, in Google WebMaster tools, it's also causing this:
It looks like somehow these pages, with my code on or at least with the generated code on, is making Google Webmaster tools think I have lots of 404's. This can't possibly be good for my rankings.
Anyone know if there is anything you can do to stop this?
Try making async call from your server end using CURL.That way you will never expose your GA code.
I have not implemented it, but it might work as per theory
Since you can filter by custom dimensions you can set a "token" in a custom dimension on every page and filter out any traffic in your view settings that does not include the token.
Obviously this will not help against people who use the code from your website (unless you also implement shahmanthan9s suggestion - which is a lot of work but will give you cleaner data), but it will work against drive-by shooters who randomly select UAIDs to send data to (which is the situation you refer to in your comment).

How do i add the direction function to custom Google Map

I followed this guys tutorial
http://stiern.com/tutorials/adding-custom-google-maps-to-your-website/
The tutorial is on adding a custom google map to a website.
Everything works fine, as you can see http://olivegrove.com.gr/?page_id=7
I just really would like to have the directions function on the map,
as it is done on the actual google maps.
Is there a way of adding this?
Does any one a good tutorial on the internet for it?
It's not exactly the same, but it has powerful directions search capabilities; you may want to use the DirectionsServicedev-guide. If you are just starting out with Google Maps, you will also want to check out:
API-Doc
Code Samples
Utility Libraries

Displaying Google Map/Streetview on webpage with a dynamic address

I'm trying to display a google map on a webpage. The address that the map displays is dynamic. I'm getting the address from a database. Is there anyway to use this address and display it on a webpage?
I followed this tutorial with no luck: http://www.thetutorialblog.com/php/php-class-for-google-maps-api/
If anyone has any other links or suggestions i'd appreciate it.
Here's a SO post that does the geocoding on the client. The only thing your php would have to do is provide the address string.
Maybe try this PHP Google Map API, which appears to be a fork/update of the API talked about in the tutorial that you used. The demos look pretty clear.

Resources