64" data-partner="WL_NUXIT" data-url="//analytics.yolacdn.net/tracking.js" data-user="35de4fa5fd5f41f0b110bad57b80b68f" id="site_analytics_tracking"> var _yts = _yts || []; var tracking_tag = document.getElementById("site_analytics_tracking"); _yts.push(["_siteId", tracking_tag.getAttribute('data-id')]); _yts.push(["_userId", tracking_tag.getAttribute('data-user')]); _yts.push(["_partnerId", tracking_tag.getAttribute('data-partner')]); _yts.push(["_trackPageview"]); (function() { function isRunInEditor() { try { return Boolean(window.parent.ws); } catch (e) { return false; } } function injectScript() { var yts = document.createElement("script"); yts.type = "text/javascript"; yts.async = true; yts.src = document.getElementById("site_analytics_tracking").getAttribute('data-url'); (document.getElementsByTagName("head")[0] || document.getElementsByTagName("body")[0]).appendChild(yts); } if (!isRunInEditor()) { var isCookiesAccepted = false; var windowLoaded = false; document.addEventListener('DOMContentLoaded', function() { var wsCookieBannerElement = document.querySelector('ws-cookie-banner'); if (wsCookieBannerElement) { wsCookieBannerElement.addEventListener('ws:cookie-banner', function(event) { if (event.detail && event.detail.accepted) { if (windowLoaded){ injectScript(); } else { isCookiesAccepted = true; } } }); } else { isCookiesAccepted = true; } }); window.addEventListener('load', function() { if (isCookiesAccepted){ injectScript(); } windowLoaded = true; }) } })();