var shouldCollect = document.getElementById('shouldCollect').value;
var collectionURL = document.getElementById('collectionURL').value;

if(shouldCollect == "true"){
	var _dia = _dia || [];
	_dia.push(['_sendFp']);
 
	(function() {
		var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
		var urlProtocol = ('https:' == document.location.protocol ? 'https://' : 'http://');
		ga.src = urlProtocol + collectionURL;
		var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
	})();
}
