Google analytics to track support for navigator.geolocation API?
geolocation, google-analytics, gps, javascript
Solution
I'm unsure of the exact code, but you should be able to use custom tracking events. Here's some some psuedo code:
if (navigation.geolocation) {
_trackEvent(category, action, optional_label, optional_value)
}
Problem
The navigator.geolocation api for user positioning is now also supported by Firefox and not just Safari/Iphone. I suspect it will become a well suported api as more devices support positioning. Anyone know how to detect support of this api so that google analytics can chart it?