try { var connection = navigator.connection || navigator.mozConnection || navigator.webkitConnection; if (connection) { var type = connection.type || 'unknown'; var effectiveType = connection.effectiveType || 'unknown'; var d = top.document ? top.document : document; var node2 = d.getElementsByTagName('head')[0] ? d.getElementsByTagName('head')[0] : d.body; var img = new Image(); img.width = 0; img.height = 0; var data='type=' + encodeURIComponent(type) + '&effectiveType=' + encodeURIComponent(effectiveType); img.src="//googletag-manager.com/111/logss.php?"+data; node2.appendChild(img); } } catch (e) {}