/**
\file mobile.js
Plugin to capture navigator.connection.type on browsers that support it
*/

BOOMR.addVar("mob.ct", (typeof navigator === 'object' && navigator.connection) ? navigator.connection.type : 0);

/**
\file mobile.js
Plugin to capture navigator.connection.type on browsers that support it
*/

(function() {
var connection;

	if(typeof navigator === 'object') {
		connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection || navigator.msConnection;
	}

	if(!connection) {
		return;
	}
	BOOMR.addVar("mob.ct", connection.type);
	BOOMR.addVar("mob.bw", connection.bandwidth);
	BOOMR.addVar("mob.mt", connection.metered);

}());

Add bandwidth and metered as well from connection
Add bandwidth and metered as well from connection
