xktnxxx

Untitled

Oct 30th, 2018
264
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.75 KB | None | 0 0
  1. Bootstrapper.bindImmediate(function(){var Bootstrapper=window["Bootstrapper"];var ensightenOptions=Bootstrapper.ensightenOptions;var isBaseTagReady=Bootstrapper.propertyWatcher.create(function(){return window._gabt});isBaseTagReady.change=function(props,isReady){if(isReady){var ga=window.ga;if(!ga){console.error("analytics.js is undefined.");Bootstrapper.reportException(new Error("476680 - DCM-MerchantSignup-BizSignupSuS-SuF - analytics.js is undefined."))}window["ensightenVariables"]=function(){var custId=
  2. merchId=totalAmt=currencyCode=XOFlowId=fptiPage=flowName=pageGroup=urlConstruct="";urlConstruct=window.location.host+window.location.pathname;if(window.fpti!==null&&window.fpti!==undefined){if(window.fpti.cust&&window.fpti.cust.length>0)custId=window.fpti.cust;if(window.pre!==null&&window.pre!==undefined)if(window.pre.payee!==null&&window.pre.payee!==undefined){if(window.pre.payee.res.data.merchant.id)merchId=window.pre.payee.res.data.merchant.id;if(window.pre.cart.res.data.purchase.amounts.total.amount)totalAmt=
  3. window.pre.cart.res.data.purchase.amounts.total.amount;if(window.pre.cart.res.data.purchase.amounts.total.currency_code)currencyCode=window.pre.cart.res.data.purchase.amounts.total.currency_code;if(window.pre.checkoutAppData.res.data.flow_id)XOFlowId=window.pre.checkoutAppData.res.data.flow_id}if(window.fpti.page&&window.fpti.page.length>0)fptiPage=window.fpti.page;if(window.fpti.flnm&&window.fpti.flnm.length>0)flowName=window.fpti.flnm;if(window.fpti.pgrp&&window.fpti.pgrp.length>0)pageGroup=window.fpti.pgrp}var dcmVars,
  4. mediaplexVars,mathVars,allVariables={};dcmVars="u1\x3d"+custId+";u2\x3d"+merchId+";u3\x3d"+totalAmt+";u4\x3d"+currencyCode+";u5\x3d;u6\x3d"+fptiPage+";u7\x3d"+urlConstruct+" "+";u8\x3d"+flowName+";u9\x3d"+Bootstrapper.data.resolve(["19470"])+";u10\x3d"+window.dataLayer.contentCountry+";u11\x3d;u12\x3d;u13\x3d;u14\x3d;u15\x3d;u16\x3d;u17\x3d;u18\x3d;u19\x3d;u20\x3d;"+"dc_lat\x3d;dc_rdid\x3d;tag_for_child_directed_treatment\x3d;ord\x3d1?";mediaplexVars="mpuid\x3d"+custId+";;;;"+merchId+";;;;"+totalAmt+
  5. ";;;;;"+currencyCode+";;"+pageGroup+";;;;"+";;;;"+Bootstrapper.data.resolve(["19470"])+";";mathVars="v1\x3d"+Bootstrapper.data.resolve(["19470"])+"\x26v2\x3d"+totalAmt+"\x26v3\x3d\x26s1\x3d"+merchId+"\x26s2\x3d\x26s3\x3d";allVariables={u1_CustomerId:custId,u2_MerchantId:merchId,u3_TotalAmount:totalAmt,u4_CurrencyCode:currencyCode,u5_FPTIPage:fptiPage,u6_FPTIPageGroup:pageGroup,u7_HREF:urlConstruct,u8_FPTIFlowName:flowName,XOFLOWID:XOFlowId,u9_FPTICookie:Bootstrapper.data.resolve(["19470"])[0],u10_CountryCode:window.dataLayer.contentCountry,
  6. u11_ContentLanguage:window.dataLayer.contentLanguage};return{dcmVars:dcmVars,mediaplexVars:mediaplexVars,mathVars:mathVars,allVariables:allVariables}};var countryCode=Bootstrapper.getProp(window,"dataLayer.contentCountry","").toLowerCase();var urlChange=Bootstrapper.propertyWatcher.create(function(){return window.location.href.toLowerCase()});var getFptiPage=Bootstrapper.propertyWatcher.create(function(){if(window.fpti&&window.fpti.page)return window.fpti.page});var custIdWatcher=Bootstrapper.propertyWatcher.create(function(){if(window.fpti&&
  7. window.fpti.cust)return window.fpti.cust});if(window.location.href.indexOf("merchantsignup/applicationChecklist")>1&&window.dataLayer&&window.dataLayer.contentCountry&&window.dataLayer.contentCountry.toLowerCase().match("gb|fr|it|es|pt|nl|be|lu|de|at|ch|ie|dk|se|no|pl|ru|il|za|ae")){Bootstrapper.imageRequest("https://ad.doubleclick.net/ddm/activity/src\x3d6386697;type\x3dmerch0;cat\x3dmerch000;"+window.ensightenVariables().dcmVars);ga("PayPal.send","event","DCM: MerchantSUStartPreEmail",countryCode,
  8. "")}urlChange.change=function(oldUrl,newUrl){getFptiPage.change=function(oldVal,newVal){if(oldVal!==newVal&&newVal&&newVal.toLowerCase().indexOf("onbrd:falconnode::create")>-1&&newUrl&&newUrl.indexOf("/create")>-1&&sessionStorage.getItem("MerchantSUStartFired")===null){Bootstrapper.imageRequest("https://ad.doubleclick.net/ddm/activity/src\x3d6386697;type\x3dmerch0;cat\x3dbizac0;"+window.ensightenVariables().dcmVars);ga("PayPal.send","event","DCM: MerchantSUStart",countryCode,"");sessionStorage.setItem("MerchantSUStartFired",
  9. true)}}};Bootstrapper.ensEvent.add("finishSuccess",function(){if(sessionStorage.getItem("MerchantSUSuccessEventFired")===null&&countryCode.match("au|in"))sessionStorage.setItem("MerchantSUSuccessEventFired",true);else{Bootstrapper.imageRequest("https://ad.doubleclick.net/ddm/activity/src\x3d6386697;type\x3dmerch0;cat\x3dbizac00;"+window.ensightenVariables().dcmVars);ga("PayPal.send","event","DCM: MerchantSUFin",countryCode,"")}});Bootstrapper.ensEvent.add("formSuccess",function(){if(window.location.pathname.toLowerCase().indexOf("personalinfo")>
  10. -1||window.location.pathname.toLowerCase().indexOf("reviewapplication")>-1)if(sessionStorage.getItem("MerchantSUSuccessEventFired")===null&&countryCode.match("au|in"))sessionStorage.setItem("MerchantSUSuccessEventFired",true);else{Bootstrapper.imageRequest("https://ad.doubleclick.net/ddm/activity/src\x3d6386697;type\x3dmerch0;cat\x3dbizac00;"+window.ensightenVariables().dcmVars);ga("PayPal.send","event","DCM: MerchantSUFin",countryCode,"")}});custIdWatcher.change=function(oldCust,newCust){if((window.location.pathname.indexOf("/activation")>
  11. -1||window.location.pathname.indexOf("/merchantsignup/congrats")>-1||window.location.pathname.indexOf("/invoice/create")>-1)&&newCust&&oldCust!==newCust&&countryCode.match("au|in")&&sessionStorage.getItem("MerchantSUFinFired")===null&&sessionStorage.getItem("MerchantSUSuccessEventFired")){Bootstrapper.imageRequest("https://ad.doubleclick.net/ddm/activity/src\x3d6386697;type\x3dmerch0;cat\x3dbizac00;"+window.ensightenVariables().dcmVars);ga("PayPal.send","event","DCM: MerchantSUFin",countryCode,"");
  12. sessionStorage.setItem("MerchantSUFinFired",true)}}}}},2632494,476680);
Advertisement
Add Comment
Please, Sign In to add comment