views:

209

answers:

1

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?

+3  A: 

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)
}
Emil Stenström