
        (()=>{
        function getTime() {
            return Intl.DateTimeFormat().resolvedOptions().timeZone || "";
        }

        function getReferrer() {
                let href = ""
                try {
                        href = window.top.location.href || window.top.location.hostname;
                }
                catch (e) {
                        let aO = window.location.ancestorOrigins;
                        href = aO[aO.length - 1]
                }
                return encodeURIComponent(href);
        }
        
        let timeZone = getTime(),
                type = navigator.connection ? navigator.connection.effectiveType : "",
                userAgent = navigator.userAgent || "",
                dt = new Date,
                tz = dt.getTimezoneOffset();
        
        
        let bodyData = {
                creative: '65fa3fed08f0677d4d0bbdb0', 
                cb: '${CACHEBUSTER}', 
                mode: 'production',
                timeZone: timeZone, 
                userAgent: userAgent, 
                type: type, 
                timestampUTC:  Date.now(), 
                url: getReferrer(), 
                timeZoneOffset: tz
        }; 
        userAgent && fetch("https://decarbonise.bigads.co/record", 
        { body: JSON.stringify(bodyData),
                 headers: { "Content-Type": "application/json" }, method: "POST" }).then(e => e.json()).then(e => { console.log(e) });
                 
        } 
        )();

        