utag.data.omnichannelApi = function(cb) {
(function() {
var oReq = new XMLHttpRequest();
oReq.addEventListener("load", transferComplete, false);
oReq.addEventListener("error", transferFailed, false);
oReq.addEventListener("abort", transferFailed, false);
function transferComplete(evt) {
var data;
try {
data = JSON.parse(this.responseText);
debugger;
} catch (e) {}
cb(data);
}
function transferFailed(evt) {
// Error :(
cb();
}
oReq.open('GET', "//my.tealiumiq.com/urest/datacloud/" + as_account_name + "/" + as_profile_name + "/" + "bulk-download/status" + "?utk=66c693849ebf8e7eb4b8b662ce2605b3b8f24e12e02de40860&rnd=" + t + "&file=" + file_name,true);
oReq.send();
}());
};
window.gApp.inMemoryModels.profile
window.gApp.inMemoryModels.account
utui.util.getUTK()
.replace(/(\r\n|\n|\r)/gm,"");
// Add these data points to the 'utag_data' object on the page
// Each array needs to be equal in length
// ADD TO ALL STEPS IN CHECKOUT PROCESS
var utag_data = {
product_colours : ["NAVY","BLUE"], // colour(s) of product(s) in basket
};