adservices.brandcdn.com Open in urlscan Pro
52.52.14.216  Public Scan

URL: https://adservices.brandcdn.com/pixel/cv_pixel.js
Submission: On November 17 via api from CA — Scanned from CA

Form analysis 0 forms found in the DOM

Text Content

function addLoadEvent(e){var n=window.onload;"function"!=typeof window.onload?window.onload=e:window.onload=function(){n&&n(),e()}}function generateUUID(){var e=(new Date).getTime();return window.performance&&"function"==typeof window.performance.now&&(e+=performance.now()),"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(n){var o=(e+16*Math.random())%16|0;return e=Math.floor(e/16),("x"==n?o:3&o|8).toString(16)})}function getCookie(e){for(var n=e+"=",o=document.cookie.split(";"),d=0;d<o.length;d++){for(var t=o[d];" "==t.charAt(0);)t=t.substring(1);if(0==t.indexOf(n))return t.substring(n.length,t.length)}return""}function setCookie(e,n,o){var d=new Date;d.setTime(d.getTime()+24*o*60*60*1e3);var t="expires="+d.toUTCString();document.cookie=e+"="+n+"; "+t+"; SameSite=None; Secure; path=/"}addLoadEvent(function(){if(null!=document.body){var e=getCookie("brandcdn_uid"),n="";void 0!==document.referrer&&document.referrer.length>2&&(n=document.referrer.split("/")[2]);var o=location.hostname;if((void 0===e||""==e)&&setCookie("brandcdn_uid",e=generateUUID(),365),"object"==typeof adv_id&&null!=adv_id)for(pxl_idx=0;pxl_idx<adv_id.length;pxl_idx++){var d;(d=document.createElement("iframe")).src+="https://adservices.brandcdn.com/pixel/cv?aid="+adv_id[pxl_idx]+"&cv_ck="+e+"&m="+o+"&r="+n,d.style.display="none",document.body.appendChild(d)}else(d=document.createElement("iframe")).src="https://adservices.brandcdn.com/pixel/cv?aid="+adv_id+"&cv_ck="+e+"&m="+o+"&r="+n,d.style.display="none",document.body.appendChild(d);adv_id=[]}});