_satellite["_runScript1"](function(event, target, Promise) { /* Custom Pixel Framework */ try { if (!window.ewitagging) { window.ewitagging = (function(w) { var _private = {}; var _public = {}; _public.pixel = {}; _private.pixel = {}; _private.util = {}; _public.util = {}; _public.util.imageRequest = function(uri) { var img = new Image(0, 0); img.src = uri; img.style.width = "1"; img.style.height = "1"; img.style.frameborder = "0"; img.style.display = "none"; return img; }; _public.util.iframeRequest = function(uri) { var ifrm = document.createElement("iframe"); ifrm.setAttribute("src", uri); ifrm.style.width = "1"; ifrm.style.height = "1"; ifrm.style.frameborder = "0"; ifrm.style.display = "none"; document.body.appendChild(ifrm); return ifrm; } //end of ewitagging function return _public; })(window); } if (window.ewitagging) { window.ewitagging.pixel = window.ewitagging.pixel || {}; /** LiveRamp Pixel */ window.ewitagging.pixel.liveRamp = function(w) { _private = {}; _public = {}; /** * Initiating or Pageview */ _public.init = function() { const pdataVal = "domain=trulicity.com,url="+_satellite.getVar("Variable - Page URL - LiveRamp")+",source="+_satellite.getVar("utm_source")+",medium="+_satellite.getVar("utm_medium")+",campaign="+_satellite.getVar("utm_campaign")+",keyword="+_satellite.getVar("utm_keyword")+",section="+_satellite.getVar("Section ID - LiveRamp")+",text="+_satellite.getVar("Click Text - LiveRamp")+",video="+_satellite.getVar("Video Name - LiveRamp")+",clickurl="+_satellite.getVar("Click URL - LiveRamp"); url = "https://di.rlcdn.com/api/segment?pid=710495&pdata="+ encodeURIComponent(pdataVal); ewitagging.util.imageRequest(url); }; return _public; }(window); //LiveRamp Pixel ends /** The Tradedesk Pixel */ /*window.ewitagging.pixel.tradeDesk = function(w) { _private = {}; _public = {};*/ /** * Initiating or Pageview */ /* _public.init = function(url) { ewitagging.util.imageRequest(url); }; return _public; }(window); //Tradedesk tag ends */ //Floodlight or DoubleClick tag starts window.ewitagging.pixel.doubleClick = function(w) { _private = {}; _public = {}; /*CAUTION - Change the baseUrl according to the brand*/ _private.baseUrl = "//10000371.fls.doubleclick.net/activityi;"; _private.pageUrl = window.location.href; _private.randomNumber = parseInt(Math.random() * 100000000000000); /** * Creating Double Click string */ _private.createStr = function(src, type, cat, custom_parameter) { //var st = ("https:" + _private.baseUrl + 'src=' + src + ';type=' + type + ';cat=' + cat + ';u1=' + custom_parameter + ';~oref=' + _private.pageUrl); //_private.randomNumber = parseInt(Math.random() * 100000000000000); //';ord='+_private.randomNumber+ var st = ("https:" + _private.baseUrl + 'src=' + src + ';type=' + type + ';cat=' + cat + ';u1='+ custom_parameter + ';~oref=' + _private.pageUrl); return st; }; /** * Initiating or Pageview */ _public.init = function(src, type, cat, custom_parameter) { var s = _private.createStr(src, type, cat, custom_parameter); ewitagging.util.iframeRequest(s); }; return _public; }(window); //Floodlight tag ends } //End of if statement } catch (e) { console.log(e); } });