function loadScript(url, callback) { var script = document.createElement("script"); script.type = "text/javascript"; if (script.readyState) { // IE script.onreadystatechange = function() { if (script.readyState == "loaded" || script.readyState == "complete") { script.onreadystatechange = null; callback(); } }; } else { // Others script.onload = function() { callback(); }; } script.src = url; document.getElementsByTagName("head")[0].appendChild(script); } var WID = window.location.href.replace(/\//g, '~'); var GID = 'LFSHOP-20230428-1'; var SID = 'eefea094-f387-45e3-9d8e-77f52636e29e'; if (getCookie('GUID') !== null) { SID = getCookie('GUID'); } else { setCookie("GUID", SID, 7); } var loc = 'https://shopify.weboss.it/analytics.js/analytics/?GID=' + GID + '&WID=' + WID + '&SID=' + SID; loadScript(loc, function() { }); function getCookie(name) { var cookies = document.cookie.split(';'); for (var i = 0; i < cookies.length; i++) { var cookie = cookies[i].trim(); if (cookie.indexOf(name + '=') == 0) { return cookie.substring(name.length + 1, cookie.length); } } return null; } function setCookie(name, value, daysToExpire) { var expires = ""; if (daysToExpire) { var date = new Date(); date.setTime(date.getTime() + (daysToExpire * 24 * 60 * 60 * 1000)); expires = "; expires=" + date.toUTCString(); } document.cookie = name + "=" + encodeURIComponent(value) + expires + "; path=/"; }