");vwo_$('head').append(_vwo_sel);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="1745914511061"]');
el.revertContentOp().remove();})("HEAD")}}, C_6_1315_1_3_1:{ fn:function(log,nonce=''){return (function(x) {
try{
var _vwo_sel = vwo_$("`);
!vwo_$("head").find('#1745914511066').length && vwo_$('head').append(_vwo_sel);}catch(e) {VWO._.vAEH(e);}
try{}catch(e) {VWO._.vAEH(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) {VWO._.vAEH(e);}
return vwo_$('head')[0] && vwo_$('head')[0].lastChild;})("head")}}, C_6_1315_1_3_2:{ fn:function(log,nonce=''){return (function(x) {var el,ctx=vwo_$(x);
/*vwo_debug log("visibility","#js-header-form"); vwo_debug*/(el=ctx).vwoCss({visibility:"hidden !important"});})("#js-header-form")}}, R_6_1315_1_3_2:{ 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=ctx).vwoRevertCss();})("#js-header-form")}}, C_6_1315_1_3_3:{ fn:function(log,nonce=''){return (function(x) {var el,ctx=vwo_$(x);
/*vwo_debug log("editElement",".user-input-container > textarea:nth-of-type(1)"); vwo_debug*/(el=ctx).vwoAttr({placeholder:"save time, ask VWO AI ✨"}),(el=ctx).vwoAttr({placeholder:"save time → ask VWO AI✨"}),(el=ctx).vwoAttr({placeholder:"save time → ask VWO AI⚡"});})(".user-input-container > textarea:nth-of-type(1)")}}, R_6_1315_1_3_3:{ fn:function(log,nonce=''){return (function(x) {
if(!vwo_$.fn.vwoRevertHtml){
return;
};
var el,ctx=vwo_$(x);
/*vwo_debug log("Revert","editElement",".user-input-container > textarea:nth-of-type(1)"); vwo_debug*/(el=ctx).vwoRevertAttr(),(el=ctx).vwoRevertAttr(),(el=ctx).vwoRevertAttr();})(".user-input-container > textarea:nth-of-type(1)")}}, C_6_1315_1_3_4:{ fn:function(log,nonce=''){return (function(x) {})("#intercom-container, .intercom-lightweight-app")}}, R_6_1315_1_3_4:{ fn:function(log,nonce=''){return (function(x) {
if(!vwo_$.fn.vwoRevertHtml){
return;
};
})("#intercom-container, .intercom-lightweight-app")}}, GL_6_1315_pre:{ fn:function(VWO_CURRENT_CAMPAIGN, VWO_CURRENT_VARIATION,nonce = ""){}}, GL_6_1315_post:{ fn:function(VWO_CURRENT_CAMPAIGN, VWO_CURRENT_VARIATION,nonce = ""){}}, 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|<)/gi,i="").split(/(vi\/|v=|\/v\/|youtu\.be\/|\/embed\/)/))[2]&&(i=(i=t[2].split(/[^0-9a-z_\-]/i))[0]),e.src="https://www.youtube.com/embed/"+i+"?"}.bind(this))}.bind(t)()})),setTimeout((function(){document.dispatchEvent(new Event('vwo_widget_added_1704269806008'));var t=document.querySelector('#vwo-widget-1704269806008');t&&window._vwo_handleMutations&&window._vwo_handleMutations(t,(function(){t.style.setProperty('visibility','visible')}))}))})()
}}, C_6_1315_1_2_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")}}},rules:[{"tags":[{"data":{"type":"m","campaigns":[{"g":1,"c":1636}]},"id":"metric","metricId":1116763},{"data":{"type":"m","campaigns":[{"g":8,"c":1590}]},"id":"metric","metricId":1116763}],"triggers":["9934720"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":1,"c":1659}]},"id":"metric","metricId":1231912}],"triggers":["11199544"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":1,"c":1668}]},"id":"metric","metricId":1261855}],"triggers":["11753443"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.1149"}],"triggers":["799106","1033751","1033754","1033757","3546370","3546373","3546376","3546379","3546382","3546385","3546388","3546391","3546394"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.631"}],"triggers":["5312755"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.868"}],"triggers":["5312839"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.1152"}],"triggers":["799106","1033751","1033844","1033847","1033850"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":4,"c":1149}]},"id":"metric","metricId":0}],"triggers":["12687132"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":4,"c":1152}]},"id":"metric","metricId":0}],"triggers":["1033853"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.1426"}],"triggers":["2391811","4938115","5594515","5594521","5594524","5594527","5594530","6013856"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":156,"c":631}]},"id":"metric","metricId":0}],"triggers":["5312758"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":185,"c":868}]},"id":"metric","metricId":0}],"triggers":["5312932"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":259,"c":1152}]},"id":"metric","metricId":0}],"triggers":["1033856"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":1,"c":1426}]},"id":"metric","metricId":355444}],"triggers":["3326215"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.1315"}],"triggers":["8785689"]},{"tags":[{"data":"campaigns.1315","id":"executePreCampJsForGoalsPage"}],"triggers":["13628013"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":1,"c":1575}]},"id":"metric","metricId":142486}],"triggers":["1420586"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.879"}],"triggers":["5312845"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.23"}],"triggers":["9804993"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.1576"}],"triggers":["8934144"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":3,"c":1426}]},"id":"metric","metricId":690929}],"triggers":["6013301"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":274,"c":1149}]},"id":"metric","metricId":0}],"triggers":["12687144"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":1,"c":1509}]},"id":"metric","metricId":897339}],"triggers":["7984323"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":4,"c":1426}]},"id":"metric","metricId":690938}],"triggers":["6013313"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":1,"c":1674}]},"id":"metric","metricId":1277605},{"data":{"type":"m","campaigns":[{"g":2,"c":1668}]},"id":"metric","metricId":1277605},{"data":{"type":"m","campaigns":[{"g":2,"c":1670}]},"id":"metric","metricId":1277605}],"triggers":["11659180"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":2,"c":1509}]},"id":"metric","metricId":897351}],"triggers":["7984326"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":5,"c":1426}]},"id":"metric","metricId":690941}],"triggers":["6013370"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":186,"c":879}]},"id":"metric","metricId":0}],"triggers":["9685074"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":1,"c":1576}]},"id":"metric","metricId":1009284}],"triggers":["8934147"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":223,"c":1426}]},"id":"metric","metricId":0}],"triggers":["6013859"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.1574"}],"triggers":["8934066"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":2,"c":1419}]},"id":"metric","metricId":0}],"triggers":["5643265"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":3,"c":1419}]},"id":"metric","metricId":0}],"triggers":["5643268"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":1,"c":1574}]},"id":"metric","metricId":907407}],"triggers":["8934069"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":237,"c":1419}]},"id":"metric","metricId":0}],"triggers":["5643271"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.629"}],"triggers":["5312749"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.28"}],"triggers":["5312938"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":238,"c":1419}]},"id":"metric","metricId":0}],"triggers":["5643274"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":2,"c":1315}]},"id":"metric","metricId":254615}],"triggers":["3326218"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.1353"}],"triggers":["5312983"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.1608"}],"triggers":["9494436"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":3,"c":1315}]},"id":"metric","metricId":422347}],"triggers":["3536848"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":1,"c":1673}]},"id":"metric","metricId":1277584},{"data":{"type":"m","campaigns":[{"g":3,"c":1668}]},"id":"metric","metricId":1277584},{"data":{"type":"m","campaigns":[{"g":1,"c":1670}]},"id":"metric","metricId":1277584}],"triggers":["11659165"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":4,"c":1299}]},"id":"metric","metricId":0}],"triggers":["3595519"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":4,"c":1315}]},"id":"metric","metricId":422350}],"triggers":["3536851"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":5,"c":1299}]},"id":"metric","metricId":0}],"triggers":["3595522"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":5,"c":1315}]},"id":"metric","metricId":422353}],"triggers":["3536854"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":6,"c":1299}]},"id":"metric","metricId":0}],"triggers":["3595525"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":6,"c":1315}]},"id":"metric","metricId":422356}],"triggers":["3536857"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":238,"c":1300}]},"id":"metric","metricId":0}],"triggers":["5513818"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":237,"c":1300}]},"id":"metric","metricId":0}],"triggers":["5513815"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":7,"c":1315}]},"id":"metric","metricId":422359}],"triggers":["3536860"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.1354"}],"triggers":["5312986"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":1,"c":1300}]},"id":"metric","metricId":0}],"triggers":["5513812"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":3,"c":1299}]},"id":"metric","metricId":405019}],"triggers":["3322993"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":8,"c":1315}]},"id":"metric","metricId":422362}],"triggers":["3536863"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":2,"c":1299}]},"id":"metric","metricId":405022}],"triggers":["3322996"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":1,"c":1299}]},"id":"metric","metricId":420778}],"triggers":["3523849"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":9,"c":1590}]},"id":"metric","metricId":0}],"triggers":["9935059"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.1607"}],"triggers":["9494421"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":275,"c":1152}]},"id":"metric","metricId":0}],"triggers":["1033862"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.1674"}],"triggers":["11659177"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":9,"c":1315}]},"id":"metric","metricId":422389}],"triggers":["3536866"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":10,"c":1315}]},"id":"metric","metricId":422392}],"triggers":["3536869"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":275,"c":1150}]},"id":"metric","metricId":0}],"triggers":["1033841"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":274,"c":1150}]},"id":"metric","metricId":0}],"triggers":["1033838"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":259,"c":1150}]},"id":"metric","metricId":0}],"triggers":["1033835"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":11,"c":1315}]},"id":"metric","metricId":422395}],"triggers":["3536872"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":4,"c":1150}]},"id":"metric","metricId":0}],"triggers":["1033832"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.1150"}],"triggers":["799106","1033751","1033802","1033805","1033808","1033811","1033814","1033817","1033820","1033823","1033826","1033829"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":155,"c":629}]},"id":"metric","metricId":0}],"triggers":["5312752"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":12,"c":1315}]},"id":"metric","metricId":423076}],"triggers":["3542221"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":2,"c":1426}]},"id":"metric","metricId":690893}],"triggers":["6013244"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.1668"},{"id":"runCampaign","priority":4,"data":"campaigns.1419"},{"id":"runCampaign","priority":4,"data":"campaigns.1670"},{"id":"runCampaign","priority":4,"data":"campaigns.1590"},{"id":"runCampaign","priority":4,"data":"campaigns.1509"},{"id":"runCampaign","priority":4,"data":"campaigns.1299"},{"id":"runCampaign","priority":4,"data":"campaigns.1300"}],"triggers":["2391811"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.971"}],"triggers":["5312968"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":13,"c":1315}]},"id":"metric","metricId":423073}],"triggers":["3542224"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":5,"c":1590}]},"id":"metric","metricId":1116745}],"triggers":["9934477"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":259,"c":1149}]},"id":"metric","metricId":0}],"triggers":["12687141"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.1673"}],"triggers":["11659162"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":14,"c":1315}]},"id":"metric","metricId":423070}],"triggers":["3542227"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":6,"c":1590}]},"id":"metric","metricId":1116754}],"triggers":["9935053"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":274,"c":1152}]},"id":"metric","metricId":0}],"triggers":["1033859"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.1636"}],"triggers":["9934717"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":15,"c":1315}]},"id":"metric","metricId":990759}],"triggers":["8786784"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":7,"c":1590}]},"id":"metric","metricId":0}],"triggers":["9935056"]},{"tags":[{"data":{"type":"m","campaigns":[{"g":1,"c":1149}]},"id":"metric","metricId":77863}],"triggers":["659162"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":237,"c":1149}]},"id":"metric","metricId":0}],"triggers":["12687135"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":227,"c":1315}]},"id":"metric","metricId":0}],"triggers":["13641063"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":275,"c":1149}]},"id":"metric","metricId":0}],"triggers":["12687147"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.1659"}],"triggers":["11199541"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":238,"c":1149}]},"id":"metric","metricId":0}],"triggers":["12687138"]},{"tags":[{"data":{"type":"g","campaigns":[{"g":277,"c":1315}]},"id":"metric","metricId":0}],"triggers":["13641066"]},{"tags":[{"id":"runCampaign","priority":4,"data":"campaigns.1575"}],"triggers":["9533043"]},{"tags":[{"id":"prePostMutation","priority":3},{"id":"groupCampaigns","priority":2}],"triggers":["8"]},{"tags":[{"id":"visibilityService","priority":2}],"triggers":["9"]},{"tags":[{"id":"runTestCampaign"}],"triggers":["2"]},{"tags":[{"id":"urlChange"}],"triggers":["75"]},{"tags":[{"id":"checkEnvironment"}],"triggers":["5"]}],pages:{"ec":[{"119459":{"inc":["o",["url","urlReg","(?i).*"]]}},{"2254905":{"inc":["o",["url","urlReg","(?i).*https?\\:\\\/\\\/(w{3}\\.)?help\\.vwo\\.com.*"]],"exc":["o",["url","urlReg","(?i)^https?\\:\\\/\\\/(w{3}\\.)?vwo\\.com\\\/blog\\\/.*$"],["url","urlReg","(?i)^https?\\:\\\/\\\/(w{3}\\.)?help\\.vwo\\.com\\\/hc\\\/en\\-us\\\/search\\\/?(?:[\\?#].*)?$"],["url","urlReg","(?i)^https?\\:\\\/\\\/(w{3}\\.)?help\\.vwo\\.com\\\/hc\\\/en\\-us\\\/sections\\\/.*$"],["url","urlReg","(?i).*Engage.*"],["url","urlReg","(?i)^https?\\:\\\/\\\/(w{3}\\.)?help\\.vwo\\.com\\\/hc\\\/en\\-us\\\/?(?:[\\?#].*)?$"],["url","urlReg","(?i).*categories.*"]]}}]},pagesEval:{"ec":[119459,2254905]},stags:{}}})();
;;var commonWrapper=function(argument){if(!argument){argument={valuesGetter:function(){return{}},valuesSetter:function(){},verifyData:function(){return{}}}}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 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 validationUtils={exists:function(path){try{const parts=path.split(".");let current=window;for(const part of parts){if(current[part]===undefined){return false}current=current[part]}return true}catch(e){return false}},safeExecute:function(path,args=[]){try{const parts=path.split(".");let current=window;for(const part of parts){if(current[part]===undefined){return false}current=current[part]}if(typeof current!=="function"){return false}return current(...args)}catch(e){return false}},validateAll:function(paths){return paths.every(path=>this.exists(path))}};
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={"singleCall":0,"manualSetup":true,"dataVariable":"dataLayer","debug":0,"setupVia":"gtm","debugType":"ga4"};if(accountIntegrationSettings["debugType"]=="ga4"&&accountIntegrationSettings["debug"]){accountIntegrationSettings["debug"]=1}else{accountIntegrationSettings["debug"]=0}return accountIntegrationSettings},pushData:function(expId,variationId){var accountIntegrationSettings={"singleCall":0,"manualSetup":true,"dataVariable":"dataLayer","debug":0,"setupVia":"gtm","debugType":"ga4"};var ga4Setup=accountIntegrationSettings["setupVia"]||"gtag";if(ga4Setup==="gtag"){validationUtils.safeExecute("gtag",["event","VWO",{vwo_campaign_name:window._vwo_exp[expId].name+":"+expId,vwo_variation_name:window._vwo_exp[expId].comb_n[variationId]+":"+variationId}]);validationUtils.safeExecute("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={"singleCall":0,"manualSetup":true,"dataVariable":"dataLayer","debug":0,"setupVia":"gtm","debugType":"ga4"};if(accountIntegrationSettings["debugType"]=="gtm"&&accountIntegrationSettings["debug"]){accountIntegrationSettings["debug"]=1}else{accountIntegrationSettings["debug"]=0}return accountIntegrationSettings},pushData:function(expId,variationId){var accountIntegrationSettings={"singleCall":0,"manualSetup":true,"dataVariable":"dataLayer","debug":0,"setupVia":"gtm","debugType":"ga4"};var ga4Setup=accountIntegrationSettings["setupVia"]||"gtm";var dataVariable=accountIntegrationSettings["dataVariable"]||"dataLayer";if(ga4Setup==="gtm"&&validationUtils.exists(dataVariable)&&Array.isArray(window[dataVariable])){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 {"enableSendingData":true,"enableTargetingCohorts":true,"enableSendingInsightsData":false}},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":{"vn":1,"args":{"1":{"66eadaa19204c":"1726667426"}}}}},as:"r4.visualwebsiteoptimizer.com",dacdnUrl:"https://dev.visualwebsiteoptimizer.com",accountJSInfo:{"pc":{"t":100,"a":100},"noSS":false,"gC":[{"id":2,"et":1,"t":1,"c":[850,851,852]},{"id":3,"et":1,"t":1,"c":[779]},{"id":4,"et":1,"t":1,"c":[830,825]},{"id":5,"et":1,"t":1,"c":[862]},{"id":6,"et":1,"t":1,"c":[891,906]},{"id":7,"et":1,"t":1,"c":[904,907]},{"id":8,"et":1,"t":1,"c":[943,954]},{"id":9,"et":1,"t":1,"c":[956,944]},{"id":10,"et":1,"t":1,"c":[982,1175]},{"id":12,"et":1,"t":1,"c":[1272,1271,1274,1270]}],"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"}},"url":{},"rp":3710,"mrp":100,"pvn":0,"ts":1746033435}};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-6714f451f163c90fca5f6e957275187fbr.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=1746023037;window._VWO._vis_nc_lib=window._vwo_cdn+"edrv/nc-f80ee8d94365de32c9ee0bf64f97477fbr.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-322350832b3bcfa877285a8fadd4078abr.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-0200dc91489a2d4931381ff92db94107br.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-0200dc91489a2d4931381ff92db94107br.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-021e1321545498b6d5ffd4bc7179177fbr.js":"edrv/va_gq-0200dc91489a2d4931381ff92db94107br.js":"edrv/va_gq-0200dc91489a2d4931381ff92db94107br.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
Integrations
Content Management System (CMS)
Integrating VWO With Contentful
close this to read article
In this article, you’ll learn:
Note: Refer to this documentation if you are looking to perform standard A/B testing with VWO FullStack SDK and Contentful without feature flag functionality. If you are using VWO's Feature Management & Experimentation (FME) app to manage content variations in Contentful, please refer to this
documentation .
About Contentful
Contentful is a cloud-based headless CMS to build digital experiences at scale. It enables teams to unify content in a single hub, structure it for use in any digital channel, and integrate seamlessly with hundreds of other tools through open APIs and robust integration capabilities. To know more about Contentful, click here .
Integrating VWO with Contentful
VWO empowers content managers to run A/B tests at scale in an intuitive manner. With the VWO-Contentful integration, you can create different versions of content in Contentful and A/B test them using VWO.
Integrating VWO with Contentful is a three-step process:
Enable the Contentful integration in VWO
Install VWO app in Contentful and create variation’s content
Use VWO FullStack SDK for filtering the content
Prerequisites
A Contentful account.
A VWO Enterprise account with FullStack enabled.
NOTE: If FullStack is not enabled in your VWO account, please contact the sales team at
sales@vwo.com .
A running A/B project in VWO FullStack to test your content.
Enable the Contentful Integration in VWO
To enable the VWO-Contentful integration for your VWO account, follow this:
Procedure
Log in to your VWO account.
From the left panel of your VWO dashboard, go to Configurations > Integrations .
Click on the Contentful integration and enable it. Once enabled, the Contentful screen within the VWO’s Integration section looks like this:
Once enabled, you will get to see the auth token for enabling this integration at Contentful.
ATTENTION: This token will be visible only once and cannot be accessed later. Hence you can copy this token and paste it elsewhere to be used while setting up the integration in Contentful.
Install VWO App in Contentful and Create Variation’s Content
To install the VWO app in Contentful and create content for your variations, follow this:
Procedure
Login to your Contentful account.
From the panel on the top, go to Apps > Marketplace .
Look for the VWO app, and click on Install to install it.
Click Authorize Access to allow VWO to access your Contentful space.
In the VWO Developer Token field, paste the auth token that you had copied from the Contentful integration panel in VWO . Refer to step 4 here .
To import your VWO Projects in Contentful, click Connect with VWO . Your account details and the VWO FullStack projects appear.
From the Project dropdown, select the project you wish to work with.
To finalize your changes, click Install .
Once you have installed the VWO app in your Contentful account, the next step is to add a content type with a reference field.
Assume you intend to A/B test a text-type field on your webpage. To do this, you first need to create a new content type and then link it to the VWO Variation Wrapper. Let’s see how you can do this:
Procedure
Go to the Content model tab and add a new content type by clicking Add content type .
In the Create new content type popup, specify the following:
Name: Enter a name for your content type. This is a mandatory field.
API Identifier: By default, this field takes the value you enter in the Name field; however, you can modify it. This is a mandatory field.
Description: Enter the description for your content type.
To finalize your changes, click Create .
Once your content type is ready, you can add fields of different types to it. For VWO, we will use the Reference field. This is because the reference field can only be linked to the VWO Variation Wrapper.
In the New Reference Field dialog, enter a name for the reference field and click Create . You now have a content type with a reference field.
To finalize your changes, click Save .
After you've added a content type with a reference field, you would want to connect it to the VWO Variation Wrapper so you can add content to it. Let’s see how you can do this:
Procedure
Go to the Content tab, and from the Add entry dropdown, select the content type you just created.
To link your reference field to with VWO Variation Wrapper, select VWO Variation Wrapper in the +Add Content dropdown. This fetches all the A/B tests from your FullStack campaign.
From the Campaign dropdown, select the one you wish to work with. The traffic allocation corresponding to the variations appears.
You may now Create an entry or link an existing entry from Contentful to the control and variations of your VWO Campaign. When you do this, the campaign visitors recorded by VWO are displayed.
To make your content available for your customers, click Publish .
NOTE: Please ensure that the connected campaign is running. The FullStack SDK is now able to make decisions based on the campaign parameters.
Use VWO FullStack SDK for Filtering the Content
Once you have published your content, the Contentful API returns data in the following format:
This file contains hidden or 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
{
"sys": {
"space": {},
"id": "41nZggHEplcBOsrPXLOEU",
"type": "Entry",
"createdAt": "2021-06-17T14:32:24.306Z",
"updatedAt": "2021-06-17T14:32:24.306Z",
"environment": {},
"revision": 1,
"contentType": {
"sys": {
"type": "Link",
"linkType": "ContentType",
"id": "variationContainer"
}
},
"locale": "en-US"
},
"fields": {
campaignTitle: '[VWO] Campaign 182',
campaignId: '182',
meta: {
Control: '7MmQCFBjfrnoKeOpky5Auu',
'Variation-1': '4BWKtaSeY25INlNy9NKBZq'
},
campaignKey: 'Contentful integration',
"variations": [{
"sys": {
"type": "Link",
"linkType": "Entry",
"id": "7MmQCFBjfrnoKeOpky5Auu"
}
},
{
"sys": {
"type": "Link",
"linkType": "Entry",
"id": "4BWKtaSeY25INlNy9NKBZq"
}
}
]
}
}
Displaying Variation to Visitors
The Contentful API returns all of the variants of your linked campaign. However, the option to show a specific variation to a visitor is entirely up to you. Following is a sample snippet you can use to decide which variation to display:
You can check out the complete documentation for VWO FullStack here .
This file contains hidden or 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
const vwoSDK = require('vwo-node-sdk');
import sdk from 'contentful-sdk';
// we are using the id of the variation container from the JSON sample above
// In a real-world implementation, the ID would be sext dynamically through, e.g. a slug.
const variationEntry = await sdk.getEntry('41nZggHEplcBOsrPXLOEU');
const settingsFile = await vwoSDK.getSettingsFile(accountId, apiKey)
const vwoClientInstance = vwoSDK.launch({
settingsFile
});
var variationName = vwoClientInstance.activate(variationEntry.campaignKey, userId)
// variation => 'variation_1'
const variationToBeServed = variationEntry.meta[variation]; // entryId => '6hDfbnInEpiab896VpBueJ'
Troubleshooting - Regenerating API Auth Token
Considering the security of your account, VWO doesn't render the auth token beyond the first time. In case of losing your auth token, you can perform the following steps:
From your VWO dashboard, go to the bottom of the page, and click on Developers .
On the Developer Dashboard that appears, go to the Tokens tab.
Under the Tokens section, you will find the API tokens that you have generated to integrate your VWO account with other third-party applications. Copy the token name of Contentful and click Add another API token .
In the Create API Token popup that appears, paste the copied token name of Contentful and set the permission to Browse .
Click Generate . This will display the newly generated auth token and paste it securely in the required area in Contentful.
Now, delete the old API auth token by referring to the created date. Click on the vertical ellipsis and select Delete .
Was this article helpful?
4 out of 6 found this helpful
Footer Navigation
Follow us and stay on top of everything CRO
© 2024
Copyright
Wingify .
All rights reserved
|