Reputation: 9486
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?
Upvotes: 4
Views: 754
Reputation: 14086
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)
}
Upvotes: 3