"|attribute_1="+response.attribute_1+"|attribute_2="+response.attribute_2;
           targetDataProvider(responseVal);
        //Add code to handle a valid decision response here 
      } else if (responseType === 'Error') { 
           responseVal = 'Error';
           targetDataProvider(responseVal);
        //Add code to handle an error response here 
      } else if (responseType === 'Empty') { 
           responseVal = 'Empty';
           targetDataProvider(responseVal);
        //Add code to handle an empty/no-decision response here 
      } 
    }
    //Makes the request to the personalization service and passes the response object to the callback. 
              var checkCNVR = window.setInterval(cnvrExist, 100);
              function cnvrExist(){
                 if(typeof CNVR !== 'undefined'){
                     CNVR.fetchUserDecision(config, callback1); 
                     clearInterval(checkCNVR);
                 }
              }

    })(); 

    //set cookie
    document.cookie = "_rti="+sessionId; 
  }
  
function targetDataProvider(responseVal){
        var epsilonProvider = {
        name: "something",
        version: "1.0.0",
        provider: function(callback) {
            callback(null, {
                t1: responseVal
            });
        }
    };

window.targetGlobalSettings = {
            dataProviders: [
                epsilonProvider
            ]
        };
}

function launchScript(src, async) {
    var newScript = document.createElement('script');
    newScript.type = 'text/javascript';
    newScript.src = src; //URL
    newScript.async = (typeof async !== "undefined")?async:true;
    document.head.appendChild(newScript);
}