");vwo_$('head').append(_vwo_sel);return vwo_$('head')[0] && vwo_$('head')[0].lastChild;})("HEAD")}}, R_6_1315_1_2_0:{ fn:function(log,nonce=''){return (function(x) {
if(!vwo_$.fn.vwoRevertHtml){
return;
};
var ctx=vwo_$(x),el;
/*vwo_debug log("Revert","content",""); vwo_debug*/;
el=vwo_$('[vwo-element-id="1729489786301"]');
el.revertContentOp().remove();})("HEAD")}}, C_6_1315_1_2_1:{ fn:function(log,nonce=''){return (function(x) {var el,ctx=vwo_$(x);
/*vwo_debug log("visibility",".search-full > input:nth-of-type(2)"); vwo_debug*/(el=vwo_$(".search-full > input:nth-of-type(2)")).vwoCss({visibility:"hidden !important"}),el.vwoCss({transition:"none !important"}),(el=vwo_$("#js-header-form")).vwoCss({visibility:"hidden !important"});})("#js-header-form")}}, R_6_1315_1_2_1:{ fn:function(log,nonce=''){return (function(x) {
if(!vwo_$.fn.vwoRevertHtml){
return;
};
var el,ctx=vwo_$(x);
/*vwo_debug log("Revert","visibility","#js-header-form"); vwo_debug*/(el=vwo_$("#js-header-form")).vwoRevertCss(),(el=vwo_$(".search-full > input:nth-of-type(2)")).vwoRevertCss(),el.vwoRevertCss();})("#js-header-form")}}, C_6_1315_1_2_2:{ fn:function(log,nonce=''){return (function(x) {})("#intercom-container, .intercom-lightweight-app")}}, C_6_1590_1_2_0:{ fn:function(log,nonce=''){return (function(x) {var el,ctx=vwo_$(x);
/*vwo_debug log("editElement",".Fz\\(\\$font-size-18\\)--md"); vwo_debug*/(el=vwo_$(".Fz\\(\\$font-size-18\\)--md")).html("<Replace Text Here With Your Own One Liner>"),el.vwoCss({display:"none !important"});})(".Fz\\(\\$font-size-18\\)--md")}}, C_6_1315_1_3_1:{ fn:function(log,nonce=''){return (function(x) {
try{
var _vwo_sel = vwo_$("`);
!vwo_$("head").find('#1729489786315').length && vwo_$('head').append(_vwo_sel);}catch(e) {console.error(e)}
try{}catch(e) {console.error(e)}
try{document.querySelector(".feedback-btn").addEventListener("click",(function(){window.VWO=window.VWO||[],VWO.event=VWO.event||function(){VWO.push(["event"].concat([].slice.call(arguments)))},VWO.event("alfredNotHelpfullClick",{notHelpful:!0,details:"HelpfulNotHelful button clicked."})}));}catch(e) {console.error(e)}
return vwo_$('head')[0] && vwo_$('head')[0].lastChild;})("head")}}, R_6_1315_1_3_0:{ fn:function(log,nonce=''){return (function(x) {
if(!vwo_$.fn.vwoRevertHtml){
return;
};
var ctx=vwo_$(x),el;
/*vwo_debug log("Revert","content",""); vwo_debug*/;
el=vwo_$('[vwo-element-id="1729489786308"]');
el.revertContentOp().remove();})("HEAD")}}, C_6_1315_1_3_0:{ fn:function(log,nonce=''){return (function(x) {;var _vwo_sel=vwo_$("");vwo_$('head').append(_vwo_sel);return vwo_$('head')[0] && vwo_$('head')[0].lastChild;})("HEAD")}}, R_6_1315_1_2_2:{ fn:function(log,nonce=''){return (function(x) {
if(!vwo_$.fn.vwoRevertHtml){
return;
};
})("#intercom-container, .intercom-lightweight-app")}}, C_6_1509_1_2_0:{ fn:function(log,nonce=''){return (function(x) {var el,ctx=vwo_$(x);
/*vwo_debug log("editElement",".Mend\\(15px\\)--md"); vwo_debug*/(el=vwo_$(".Mend\\(15px\\)--md")).html("Get Session Recordings for Free"),el.vwoCss({transition:"none !important"});})(".Mend\\(15px\\)--md")}}, R_6_1509_1_2_0:{ fn:function(log,nonce=''){return (function(x) {
if(!vwo_$.fn.vwoRevertHtml){
return;
};
var el,ctx=vwo_$(x);
/*vwo_debug log("Revert","editElement",".Mend\\(15px\\)--md"); vwo_debug*/(el=vwo_$(".Mend\\(15px\\)--md")).vwoRevertHtml(),el.vwoRevertCss();})(".Mend\\(15px\\)--md")}}, C_6_1509_1_2_1:{ fn:function(log,nonce=''){return (function(x) {var el,ctx=vwo_$(x);
/*vwo_debug log("editElement",".Bdc\\(\\$color-purple\\)"); vwo_debug*/(el=vwo_$(".Bdc\\(\\$color-purple\\)")).html("Get Session Recordings for Free"),el.vwoCss({transition:"none !important"});})(".Bdc\\(\\$color-purple\\)")}}, R_6_1509_1_2_1:{ fn:function(log,nonce=''){return (function(x) {
if(!vwo_$.fn.vwoRevertHtml){
return;
};
var el,ctx=vwo_$(x);
/*vwo_debug log("Revert","editElement",".Bdc\\(\\$color-purple\\)"); vwo_debug*/(el=vwo_$(".Bdc\\(\\$color-purple\\)")).vwoRevertHtml(),el.vwoRevertCss();})(".Bdc\\(\\$color-purple\\)")}}, GL_6_1509_pre:{ fn:function(VWO_CURRENT_CAMPAIGN, VWO_CURRENT_VARIATION,nonce = ""){try{!function(){try{var e=function(e){return Object.keys(e).find((function(e){return e.startsWith("__reactInternalInstance$")||e.startsWith("__reactFiber$")}))},t=function(e,t){if(e&&t)return e[t]},n=function(e,t,n){var i=(i=e.nodeName)&&i.toLowerCase();t.stateNode=e,t.child=null,t.tag=e.nodeType===Node.ELEMENT_NODE?5:6,t.type&&(t.type=t.elementType="vwo-"+i),t.alternate&&(t.alternate.stateNode=e),e[n]=t},i=function(e,t){var n=Date.now();!function i(){var o=Object.keys(t).find((function(e){return e.startsWith("__reactProps$")}))||"",r=Date.now();if(o&&t[o])switch(e.name){case"href":t[o].href=e.value;break;case"onClick":t[o].onClick&&delete t[o].onClick;break;case"onChange":t[o].onChange&&t[o].onChange({target:t})}o||3e3 div:nth-of-type(1) > button:nth-of-type(1)"); vwo_debug*/!(el=vwo_$(".W\\(11\\/12\\)--sm > div:nth-of-type(1) > button:nth-of-type(1)")).parent().find('[vwo-op-1733475143394=""]').length&&el.execCode((function(){var e=document.createElement("style");e.className="vwo_variation",e.innerHTML="/** CSS START **/\n/** Message ID: 1778, Generation Index: 0 **//** GENERATION END **//** CSS END **/",document.body.append(e),
/** JS START **/
/** Message ID: 1778, Generation Index: 0 **/
vwo_$(".W\\(11\\/12\\)--sm > div:nth-of-type(1) > button:nth-of-type(1)").vwoCss({transition:"transform 0.3s ease",display:"inline-block"}).each((function(){this.addEventListener("mouseover",(function(){this.style.transform="scale(1.1)"})),this.addEventListener("mouseout",(function(){this.style.transform="scale(1)"}))}))})),el.attr("vwo-op-1733475143394","");})(".W\\(11\\/12\\)--sm > div:nth-of-type(1) > button:nth-of-type(1)")}}, R_6_1590_1_2_1:{ fn:function(log,nonce=''){return (function(x) {
if(!vwo_$.fn.vwoRevertHtml){
return;
};
var el,ctx=vwo_$(x);
/*vwo_debug log("Revert","AIEditor",".W\\(11\\/12\\)--sm > div:nth-of-type(1) > button:nth-of-type(1)"); vwo_debug*/(el=vwo_$(".W\\(11\\/12\\)--sm > div:nth-of-type(1) > button:nth-of-type(1)")).revertContentOp();})(".W\\(11\\/12\\)--sm > div:nth-of-type(1) > button:nth-of-type(1)")}}, C_6_1590_1_2_3:{ fn:function(log,nonce=''){return (function(x) {var el,ctx=vwo_$(x);
/*vwo_debug log("editElement",".Fz\\(\\$font-size-60\\)--md"); vwo_debug*/(el=vwo_$(".Fz\\(\\$font-size-60\\)--md")).html("Get smarter on CRO");})(".Fz\\(\\$font-size-60\\)--md")}}, R_6_1590_1_2_3:{ fn:function(log,nonce=''){return (function(x) {
if(!vwo_$.fn.vwoRevertHtml){
return;
};
var el,ctx=vwo_$(x);
/*vwo_debug log("Revert","editElement",".Fz\\(\\$font-size-60\\)--md"); vwo_debug*/(el=vwo_$(".Fz\\(\\$font-size-60\\)--md")).vwoRevertHtml();})(".Fz\\(\\$font-size-60\\)--md")}}, R_6_1590_1_2_2:{ fn:function(log,nonce=''){return (function(x) {
if(!vwo_$.fn.vwoRevertHtml){
return;
};
var el,ctx=vwo_$(x);
/*vwo_debug log("Revert","AIEditor",".Bxsh\\(\\$enterprise-csm-box-shadow\\) > div:nth-of-type(1)"); vwo_debug*/(el=vwo_$(".Bxsh\\(\\$enterprise-csm-box-shadow\\) > div:nth-of-type(1)")).revertContentOp();})(".Bxsh\\(\\$enterprise-csm-box-shadow\\) > div:nth-of-type(1)")}}, C_6_1150_1_9_0:{ fn:function(log,nonce=''){return (function(x) {var el,ctx=vwo_$(x);
/*vwo_debug log("editElement",".Fz\\(\\$font-size-50\\)--sm"); vwo_debug*/(el=vwo_$(".Fz\\(\\$font-size-50\\)--sm")).html("All-in-one AB Testing Software");})(".Fz\\(\\$font-size-50\\)--sm")}}, C_6_1150_1_8_0:{ fn:function(log,nonce=''){return (function(x) {var el,ctx=vwo_$(x);
/*vwo_debug log("editElement",".Fz\\(\\$font-size-50\\)--sm"); vwo_debug*/(el=vwo_$(".Fz\\(\\$font-size-50\\)--sm")).html("We make split testing uncomplicated");})(".Fz\\(\\$font-size-50\\)--sm")}}, C_6_1668_1_2_0:{ fn:function(log,nonce=''){return (function(x) {
try{
var _vwo_sel = vwo_$("`);
!vwo_$("head").find('#1739537028631').length && vwo_$('head').append(_vwo_sel);}catch(e) {console.error(e)}
try{;
/*vwo_debug log("addElement","body"); vwo_debug*/;
el=vwo_$("body")
;
!el.find('[vwo-op-1739537028633=""]').length && el.vwoElement({"position":"append","html":""});}catch(e) {console.error(e)}
try{$(window).on("scroll",(function(){let o=$(window).scrollTop(),e=$(window).height(),s=$("#js-content-wrap").offset().top,t=$("footer").offset().top;o>=s-e/2&&o+e=1037725){return window.VWO&&window.VWO.get("visitor.id")}else{return window.VWO._&&window.VWO._.cookies&&window.VWO._.cookies.get("_vwo_uuid")}};var pollInterval=100;var timeout=6e4;return function(){var accountIntegrationSettings={};var _interval=null;function waitForAnalyticsVariables(){try{accountIntegrationSettings=argument.valuesGetter();accountIntegrationSettings.visitorUuid=getVisitorUuid()}catch(error){accountIntegrationSettings=undefined}if(accountIntegrationSettings&&argument.verifyData(accountIntegrationSettings)){argument.valuesSetter(accountIntegrationSettings);return 1}return 0}var currentTime=0;_interval=setInterval((function(){currentTime=currentTime||performance.now();var result=waitForAnalyticsVariables();if(result||performance.now()-currentTime>=timeout){clearInterval(_interval)}}),pollInterval)}};
commonWrapper({valuesGetter:function(){return {"ga4s":0}},valuesSetter:function(data){var singleCall=data["ga4s"]||0;if(singleCall){window.sessionStorage.setItem("vwo-ga4-singlecall",true)}var ga4_device_id="";if(typeof window.VWO._.cookies!=="undefined"){ga4_device_id=window.VWO._.cookies.get("_ga")||""}if(ga4_device_id){window.vwo_ga4_uuid=ga4_device_id.split(".").slice(-2).join(".")}},verifyData:function(data){if(typeof window.VWO._.cookies!=="undefined"){return window.VWO._.cookies.get("_ga")||""}else{return false}}})();
var pushBasedCommonWrapper=function(argument){var firedCamp={};if(!argument){argument={integrationName:"",getExperimentList:function(){},accountSettings:function(){},pushData:function(){}}}return function(){window.VWO=window.VWO||[];const getVisitorUuid=function(){if(window._vwo_acc_id>=1037725){return window.VWO&&window.VWO.get("visitor.id")}else{return window.VWO._&&window.VWO._.cookies&&window.VWO._.cookies.get("_vwo_uuid")}};var sendDebugLogsOld=function(expId,variationId,errorType,user_type,data){try{var errorPayload={f:argument["integrationName"]||"",a:window._vwo_acc_id,url:window.location.href,exp:expId,v:variationId,vwo_uuid:getVisitorUuid(),user_type:user_type};if(errorType=="initIntegrationCallback"){errorPayload["log_type"]="initIntegrationCallback";errorPayload["data"]=JSON.stringify(data||"")}else if(errorType=="timeout"){errorPayload["timeout"]=true}if(window.VWO._.customError){window.VWO._.customError({msg:"integration debug",url:window.location.href,lineno:"",colno:"",source:JSON.stringify(errorPayload)})}}catch(e){window.VWO._.customError&&window.VWO._.customError({msg:"integration debug failed",url:"",lineno:"",colno:"",source:""})}};var sendDebugLogs=function(expId,variationId,errorType,user_type){var eventName="vwo_debugLogs";var eventPayload={};try{eventPayload={intName:argument["integrationName"]||"",varId:variationId,expId:expId,type:errorType,vwo_uuid:getVisitorUuid(),user_type:user_type};if(window.VWO._.event){window.VWO._.event(eventName,eventPayload,{enableLogs:1})}}catch(e){eventPayload={msg:"integration event log failed",url:window.location.href};window.VWO._.event&&window.VWO._.event(eventName,eventPayload)}};const callbackFn=function(data){if(!data)return;var expId=data[1],variationId=data[2],repeated=data[0],singleCall=0,debug=0;var experimentList=argument.getExperimentList();var integrationName=argument["integrationName"]||"vwo";if(typeof argument.accountSettings==="function"){var accountSettings=argument.accountSettings();if(accountSettings){singleCall=accountSettings["singleCall"];debug=accountSettings["debug"]}}if(debug){sendDebugLogs(expId,variationId,"intCallTriggered",repeated)}if(singleCall&&(repeated==="vS"||repeated==="vSS")||firedCamp[expId]){return}window.expList=window.expList||{};var expList=window.expList[integrationName]=window.expList[integrationName]||[];if(expId&&variationId&&["VISUAL_AB","VISUAL","SPLIT_URL"].indexOf(_vwo_exp[expId].type)>-1){if(experimentList.indexOf(+expId)!==-1){firedCamp[expId]=variationId;var visitorUuid=getVisitorUuid();var pollInterval=100;var currentTime=0;var timeout=6e4;var user_type=_vwo_exp[expId].exec?"vwo-retry":"vwo-new";var interval=setInterval((function(){if(expList.indexOf(expId)!==-1){clearInterval(interval);return}currentTime=currentTime||performance.now();var toClearInterval=argument.pushData(expId,variationId,visitorUuid);if(debug&&toClearInterval){sendDebugLogsOld(expId,variationId,"",user_type);sendDebugLogs(expId,variationId,"intDataPushed",user_type)}var isTimeout=performance.now()-currentTime>=timeout;if(isTimeout&&debug){sendDebugLogsOld(expId,variationId,"timeout",user_type);sendDebugLogs(expId,variationId,"intTimeout",user_type)}if(toClearInterval||isTimeout){clearInterval(interval)}if(toClearInterval){window.expList[integrationName].push(expId)}}),pollInterval||100)}}};window.VWO.push(["onVariationApplied",callbackFn]);window.VWO.push(["onVariationShownSent",callbackFn])}};
var surveyDataCommonWrapper=function(argument){if(!argument){argument={getCampaignList:function(){return[]},surveyStatusChange:function(){},answerSubmitted:function(){}}}return function(){window.VWO=window.VWO||[];function getValuesFromAnswers(answers){var values=[];for(var i=0;i=timeout;if(toClearInterval||isTimeout){clearInterval(interval)}}),pollInterval)}}window.VWO.push(["onSurveyShown",function(data){commonSurveyCallback(data,argument.surveyStatusChange,"surveyShown")}]);window.VWO.push(["onSurveyCompleted",function(data){commonSurveyCallback(data,argument.surveyStatusChange,"surveyCompleted")}]);window.VWO.push(["onSurveyAnswerSubmitted",function(data){commonSurveyCallback(data,argument.answerSubmitted,"surveySubmitted")}])}};
(function(){var VWOOmniTemp={};window.VWOOmni=window.VWOOmni||{};for(var key in VWOOmniTemp)Object.prototype.hasOwnProperty.call(VWOOmniTemp,key)&&(window.VWOOmni[key]=VWOOmniTemp[key]);window._vwoIntegrationsLoaded=1;pushBasedCommonWrapper({integrationName:"GA4",getExperimentList:function(){return [1300,1426,1590,1668,1670]},accountSettings:function(){var accountIntegrationSettings={"manualSetup":true,"dataVariable":"dataLayer","setupVia":"gtm","singleCall":0,"debugType":"ga4","debug":0};if(accountIntegrationSettings["debugType"]=="ga4"&&accountIntegrationSettings["debug"]){accountIntegrationSettings["debug"]=1}else{accountIntegrationSettings["debug"]=0}return accountIntegrationSettings},pushData:function(expId,variationId){var accountIntegrationSettings={"manualSetup":true,"dataVariable":"dataLayer","setupVia":"gtm","singleCall":0,"debugType":"ga4","debug":0};var ga4Setup=accountIntegrationSettings["setupVia"]||"gtag";if(typeof window.gtag!=="undefined"&&ga4Setup=="gtag"){window.gtag("event","VWO",{vwo_campaign_name:window._vwo_exp[expId].name+":"+expId,vwo_variation_name:window._vwo_exp[expId].comb_n[variationId]+":"+variationId});window.gtag("event","experience_impression",{exp_variant_string:"VWO-"+expId+"-"+variationId});return true}return false}})();pushBasedCommonWrapper({integrationName:"GA4-GTM",getExperimentList:function(){return [1300,1426,1590,1668,1670]},accountSettings:function(){var accountIntegrationSettings={"manualSetup":true,"dataVariable":"dataLayer","setupVia":"gtm","singleCall":0,"debugType":"ga4","debug":0};if(accountIntegrationSettings["debugType"]=="gtm"&&accountIntegrationSettings["debug"]){accountIntegrationSettings["debug"]=1}else{accountIntegrationSettings["debug"]=0}return accountIntegrationSettings},pushData:function(expId,variationId){var accountIntegrationSettings={"manualSetup":true,"dataVariable":"dataLayer","setupVia":"gtm","singleCall":0,"debugType":"ga4","debug":0};var ga4Setup=accountIntegrationSettings["setupVia"]||"gtm";var dataVariable=accountIntegrationSettings["dataVariable"]||"dataLayer";if(typeof window[dataVariable]!=="undefined"&&ga4Setup=="gtm"){window[dataVariable].push({event:"vwo-data-push-ga4",vwo_exp_variant_string:"VWO-"+expId+"-"+variationId});return true}return false}})();
pushBasedCommonWrapper({integrationName:"mixpanel",getExperimentList:function(){return [1590,1668,1670]},accountSettings:function(){return {"enableSendingInsightsData":false,"enableSendingData":true,"enableTargetingCohorts":true}},pushData:function(expId,variationId,visitorUuid){var _vis_data={mixpanel:{}};if(window.mixpanel&&window.mixpanel.track){if(!window.uuidSet){window.mixpanel.people.set({$vwo_user_id:visitorUuid||""});window.uuidSet=true}var vwo_account_id=window._vwo_acc_id;if(vwo_account_id!=565905){_vis_data["mixpanel"]["VWO-Test-ID-"+expId]=window._vwo_exp[expId].comb_n[variationId];_vis_data["mixpanel"]["experiments"]=_vis_data["mixpanel"]["experiments"]||[];_vis_data["mixpanel"]["experiments"].push({eN:window._vwo_exp[expId].name,vN:window._vwo_exp[expId].comb_n[variationId]});window.mixpanel.track("VWO",_vis_data["mixpanel"])}window.mixpanel.track("$experiment_started",{"Experiment name":window._vwo_exp[expId].name,"Variant name":window._vwo_exp[expId].comb_n[variationId]});_vis_data["mixpanel"]={};return true}return false}})();
;})();(function(){window.VWO=window.VWO||[];var pollInterval=100;var _vis_data={};var intervalObj={};var analyticsTimerObj={};var experimentListObj={};window.VWO.push(["onVariationApplied",function(data){if(!data){return}var expId=data[1],variationId=data[2];if(expId&&variationId&&["VISUAL_AB","VISUAL","SPLIT_URL"].indexOf(window._vwo_exp[expId].type)>-1){}}])})();;
;var vD=VWO.data||{};VWO.data={content:{"fns":{"list":{"args":{"1":{"66eadaa19204c":"1726667426"}},"vn":1}}},as:"r4.visualwebsiteoptimizer.com",dacdnUrl:"https://dev.visualwebsiteoptimizer.com",accountJSInfo:{"url":{},"mrp":100,"noSS":false,"pc":{"a":100,"t":100},"pvn":0,"rp":3710,"frn":{"dc":{"bl":"#content > div.Fz\\(\\$font-size-18\\).C\\(\\$color-black-light-3\\).Lts\\(0\\).Mt\\(-80px\\) > section.Px\\(50px\\)--md.Bxz\\(bb\\) > div > div > div:nth-child(4) > div"}},"gC":[{"et":1,"c":[850,851,852],"id":2,"t":1},{"et":1,"c":[779],"id":3,"t":1},{"et":1,"c":[830,825],"id":4,"t":1},{"et":1,"c":[862],"id":5,"t":1},{"et":1,"c":[891,906],"id":6,"t":1},{"et":1,"c":[904,907],"id":7,"t":1},{"et":1,"c":[943,954],"id":8,"t":1},{"et":1,"c":[956,944],"id":9,"t":1},{"et":1,"c":[982,1175],"id":10,"t":1},{"et":1,"c":[1272,1271,1274,1270],"id":12,"t":1}],"ts":1743564666}};for(var k in vD){VWO.data[k]=vD[k]};(function(){ try {window._vwoCc = { sGifDelay: 10 }} catch(e){ } })();var gcpfb=function(a,loadFunc,status,err,success){function vwoErr() {_vwo_err({message:"Google_Cdn failing for " + a + ". Trying Fallback..",code:"cloudcdnerr",status:status});} if(a.indexOf("/cdn/")!==-1){loadFunc(a.replace("cdn/",""),err,success); vwoErr(); return true;} else if(a.indexOf("/dcdn/")!==-1&&a.indexOf("evad.js") !== -1){loadFunc(a.replace("dcdn/",""),err,success); vwoErr(); return true;}};window.VWO=window.VWO || [];window.VWO._= window.VWO._ || {};window.VWO._.gcpfb=gcpfb;;var d={cookie:document.cookie,URL:document.URL,referrer:document.referrer};var w={VWO:{_:{}},location:{href:window.location.href,search:window.location.search},_vwoCc:window._vwoCc};window._vis_apm_lib = 'apmLib-7811d704c028af17051fda53f4b02d3bbr.js';window._vwo_cdn="https://dev.visualwebsiteoptimizer.com/cdn/";window._vwo_apm_debug_cdn="https://dev.visualwebsiteoptimizer.com/cdn/";window.VWO._.useCdn=true;window.vwo_eT="br";window._VWO=window._VWO||{};window._VWO.fSeg=["1499"];window._VWO.dcdnUrl="/dcdn/settings.js";window.VWO.sTs=1743527772;window._VWO._vis_nc_lib=window._vwo_cdn+"edrv/nc-027330777ece73059cc92c6141e45cb3br.js";var loadWorker=function(url){_vwo_code.load(url, { dSC: true, onloadCb: function(xhr,a){window._vwo_wt_l=true;if(xhr.status===200 ||xhr.status===304){var code="var window="+JSON.stringify(w)+",document="+JSON.stringify(d)+";window.document=document;"+xhr.responseText;var blob=new Blob([code||"throw new Error('code not found!');"],{type:"application/javascript"}),url=URL.createObjectURL(blob);window.mainThread={webWorker:new Worker(url)};window.vwoChannelFW=new MessageChannel();window.vwoChannelToW=new MessageChannel();window.mainThread.webWorker.postMessage({vwoChannelToW:vwoChannelToW.port1,vwoChannelFW:vwoChannelFW.port2},[vwoChannelToW.port1, vwoChannelFW.port2]);if(!window._vwo_mt_f)return window._vwo_wt_f=true;_vwo_code.addScript({text:window._vwo_mt_f});delete window._vwo_mt_f}else{if(gcpfb(a,loadWorker,xhr.status)){return;}_vwo_code.finish("&e=loading_failure:"+a)}}, onerrorCb: function(a){if(gcpfb(a,loadWorker)){return;}window._vwo_wt_l=true;_vwo_code.finish("&e=loading_failure:"+a);}})};loadWorker("https://dev.visualwebsiteoptimizer.com/cdn/edrv/worker-1135852b6bc11a94eb64017a8d120ad8br.js");;var _vis_opt_file;var _vis_opt_lib;if(window.VWO._.allSettings.dataStore.previewExtraSettings!=undefined&&window.VWO._.allSettings.dataStore.previewExtraSettings.isSurveyPreviewMode){var surveyHash=window.VWO._.allSettings.dataStore.plugins.LIBINFO.SURVEY_DEBUG_EVENTS.HASH;var param1="evad.js?va=";var param2="&d=debugger_new";var param3="&sp=1&a=6&sh="+surveyHash;_vis_opt_file=vwoCode.use_existing_jquery&&typeof vwoCode.use_existing_jquery()!=="undefined"?vwoCode.use_existing_jquery()?param1+"vanj"+param2:param1+"va_gq"+param2:param1+"edrv/va_gq-3adf809ea7b0629d1cfde6b0f4969635br.js"+param2;_vis_opt_file=_vis_opt_file+param3;_vis_opt_lib="https://dev.visualwebsiteoptimizer.com/dcdn/"+_vis_opt_file}else if(window.VWO._.allSettings.dataStore.mode!=undefined&&window.VWO._.allSettings.dataStore.mode=="PREVIEW"){ var path1 = 'edrv/pd_'; var path2 = window.VWO._.allSettings.dataStore.plugins.LIBINFO.EVAD.HASH + ".js"; ;_vis_opt_file=vwoCode.use_existing_jquery&&typeof vwoCode.use_existing_jquery()!=="undefined"?vwoCode.use_existing_jquery()?path1+"vanj"+path2:path1+"va_gq"+path2:path1+"edrv/va_gq-3adf809ea7b0629d1cfde6b0f4969635br.js"+path2;_vis_opt_lib="https://dev.visualwebsiteoptimizer.com/cdn/"+_vis_opt_file}else{_vis_opt_file=vwoCode.use_existing_jquery&&typeof vwoCode.use_existing_jquery()!=="undefined"?vwoCode.use_existing_jquery()?"edrv/vanj-7340efabe014aa7ac36a54293558de41br.js":"edrv/va_gq-3adf809ea7b0629d1cfde6b0f4969635br.js":"edrv/va_gq-3adf809ea7b0629d1cfde6b0f4969635br.js"}window._vwo_library_timer=setTimeout((function(){vwoCode.removeLoaderAndOverlay&&vwoCode.removeLoaderAndOverlay();vwoCode.finish()}),vwoCode.library_tolerance&&typeof vwoCode.library_tolerance()!=="undefined"?vwoCode.library_tolerance():2500),_vis_opt_lib=typeof _vis_opt_lib=="undefined"?window._vwo_cdn+_vis_opt_file:_vis_opt_lib;var loadLib=function(url){_vwo_code.load(url, { dSC: true, onloadCb:function(xhr,a){window._vwo_mt_l=true;if(xhr.status===200 || xhr.status===304){if(!window._vwo_wt_f)return window._vwo_mt_f=xhr.responseText;_vwo_code.addScript({text:xhr.responseText});delete window._vwo_wt_f;}else{if(gcpfb(a,loadLib,xhr.status)){return;}_vwo_code.finish("&e=loading_failure:"+a);}}, onerrorCb: function(a){if(gcpfb(a,loadLib)){return;}window._vwo_mt_l=true;_vwo_code.finish("&e=loading_failure:"+a);}})};loadLib(_vis_opt_lib);VWO.load_co=function(u,opts){return window._vwo_code.load(u,opts);};;;}}catch(e){_vwo_code.finish();_vwo_code.removeLoaderAndOverlay&&_vwo_code.removeLoaderAndOverlay();_vwo_err(e);window.VWO.caE=1}})();
VWO
VWO Testing
VWO Testing FAQs
How To Track Clicks on YouTube Videos Using VWO?
close this to read article
NOTE: If your VWO account is enabled with
Data360 , you will be able to use
Metrics instead of Goals for tracking standard and custom events on your website. Unlike Goals, Metrics can be used across campaigns and can track multiple conversions.
Tracking clicks on elements on your website page using VWO is a simple process where you define the element to track and then add the VWO SmartCode snippet to the source code of the webpage.
However, tracking clicks for YouTube videos is different because the videos are present inside the iFrame hosted on the YouTube domain, where it is not possible to place the VWO code.
To track clicks on your YouTube videos using VWO, follow these steps:
Add Custom Conversion goal to track clicks.
Add the code snippet under the Pre-JS section inside the VWO editor.
Add Custom Conversion Goal to Track Clicks
In the section for defining goals, add Custom Conversion as the goal you want to track.
In the URL field, type the URL of the page where the YouTube video is present and then click Next .
On the last page of the campaign creation process, copy the corresponding code snippet generated for the Custom Conversion goal you have added to the campaign. You will need this code snippet in the next step.
Add the code snippet under the Pre-JS section inside the VWO editor
To complete the videos, click tracking configuration, add the following code snippet in the Pre-JS section of the VWO code editor. Adding the Pre-JS code snippet ensures that the code is executed first before the variation changes are displayed.
NOTE: The code will be executed on both the campaign and goal pages, which does not happen in the case of post-js. Hence the code has to be added in pre-js.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function initYTAPI() {
if (typeof(window.YT) == "undefined") {
vwo_$.getScript("https://www.youtube.com/iframe_api", function(data, textStatus, jqxhr) {
if (window.timerX) clearInterval(window.timerX);
window.timerX = setInterval(function() {
if (typeof(window.YT.Player) != "undefined") {
window.vwo_player = new YT.Player('vwo_YT', {
events: {
'onStateChange': onPlayerStateChange
}
});
clearInterval(window.timerX);
}
}, 100);
});
} else {
window.vwo_player = new YT.Player('vwo_YT', {
events: {
'onStateChange': onPlayerStateChange
}
});
}
}
function YTurlCheck(videoURL) {
var yTCSS = `iframe[src*='${videoURL}']`;
var vwoRetries = 0; // Track the number of retries
var vwoMaxRetries = 10;
// Function to update the iframe source with enablejsapi=1
function updateIframeSrc() {
var iframe = vwo_$(yTCSS);
var vidSrc = iframe.attr("src");
// Check if vidSrc is defined
if (vidSrc !== undefined && vidSrc !== null) {
clearInterval(vwointerval123); // Clear the interval when vidSrc is defined
if (vidSrc.indexOf("enablejsapi=1") === -1) {
iframe.attr("id", "vwo_YT");
var separator = vidSrc.indexOf("?") > -1 ? "&" : "?";
iframe.attr("src", vidSrc + separator + "enablejsapi=1");
} else {
iframe.attr("id", "vwo_YT");
}
}
// Check if maximum retries have been reached
if (vwoRetries >= vwoMaxRetries) {
clearInterval(vwointerval123); // Stop the interval after reaching the limit
}
vwoRetries++; // Increment the retry count
}
// Start the polling process with setInterval
var vwointerval123 = setInterval(updateIframeSrc, 100);
}
function onPlayerStateChange(event) {
if (event.data == YT.PlayerState.PLAYING) {
console.log('Video Played');
/* Place your custom conversion goal code here. You can get this code from the summary page of the A/B test inside VWO dashboard */
};
};
try {
vwo_$(function() {
YTurlCheck("Replace this with the actual embed youtube URL you want to track");
initYTAPI();
});
} catch (e) {
console.log('Reach out to us:support@vwo.com');
}
Replace the goal code snippet with your own goal code snippet in the above code snippet.
You can get the embed video URL from the embed code, as shown below:
Tracking YouTube Video Clicks for a Split URL Test
Tracking YouTube video clicks in a Split URL test is slightly different and involves making changes to the source code of the website where the video is posted, or you can also use Google Tag Manager (GTM) for the same.
After creating the custom conversion goal and adding the page URL where the video is , add the code snippet, that is shown in the above section to the webpage where the YouTube video is available or add the same code snippet via GTM. Make sure to replace the following text in the code snippet with your custom conversion goal code:
/* Place your custom conversion goal code here. You can get this code from the summary page of the A/B test inside VWO dashboard */
Was this article helpful?
2 out of 3 found this helpful
Footer Navigation
Follow us and stay on top of everything CRO
© 2024
Copyright
Wingify .
All rights reserved
|