All events for Rapid Retargeter
<!-- Notes:
- Can use (1) JS tag or (2) Pixel method
- Both methods require fake ID Swap on phint to required container ID
-->
<!-- 1/2 JS Method -->
<script type="text/javascript">
window.bk_async = function() {
// ALLOW MULTIPLE CALLS/SINGLE PAGE APPS
bk_allow_multiple_calls=true; bk_use_multiple_iframes=true ;
// <optional> Email Address (this will be MD5 and SHA-256 hashed)
bk_addEmailHash('ENTER EMAIL ADDRESS HERE');
bk_addPhoneHash('ENTER PHONE NUMBER HERE');
// Send Data
BKTAG.doTag(ENTER CONTAINER ID HERE, 4);
};
(function() {
var scripts = document.getElementsByTagName('script')[0];
var s = document.createElement('script');
s.async = true;
s.src = "//tags.bkrtx.com/js/bk-coretag.js";
scripts.parentNode.insertBefore(s, scripts);
}());
</script>
<!-- 2/2 Pixel Method -->
<img src=https://tags.bluekai.com/site/<CONTAINERID>?phint=e_id_s=<SHA256HASHEDEMAIL>&phint=e_id_m=<MD5HASHEDEMAIL>&phint=p_id_s=<SHA256HASHEDPHONE>&phint=p_id_m=<MD5HASHEDPHONE>">
<script type="text/javascript">
window.bk_async = function() {
// ALLOW MULTIPLE CALLS/SINGLE PAGE APPS
bk_allow_multiple_calls=true; bk_use_multiple_iframes=true;
// FUNCTION : Timestamp
function getRRDate(y) {
var x = new Date();
var z = {
M: x.getMonth() + 1,
d: x.getDate(),
h: x.getHours(),
m: x.getMinutes(),
s: x.getSeconds(),
z: x.getMilliseconds()
};
y = y.replace(/(M+|d+|h+|m+|s+|z+)/g, function(v) {
return ((v.length > 1 ? "0" : "") + eval('z.' + v.slice(-1))).slice(-2)
});
return y.replace(/(y+)/g, function(v) {
return x.getFullYear().toString().slice(-v.length)
});
}
bk_addPageCtx('Aid', '<Responsys Account ID>');
bk_addPageCtx('Etype', 'SEARCH');
bk_addPageCtx('t', getRRDate("yyyy-mm-dd-hh-ss-zz"));
bk_addPageCtx('TagTriggeredDt',Date.now());
// optional
bk_addPageCtx('Searchterm', '<Search Term>');
// Send Data
BKTAG.doTag(ENTER CONTAINER ID HERE, 4);
// Reset
BKTAG._reset();
};
(function() {
var scripts = document.getElementsByTagName('script')[0];
var s = document.createElement('script');
s.async = true;
s.src = "//tags.bkrtx.com/js/bk-coretag.js";
scripts.parentNode.insertBefore(s, scripts);
}());
</script>
<script type="text/javascript">
window.bk_async = function() {
// ALLOW MULTIPLE CALLS/SINGLE PAGE APPS
bk_allow_multiple_calls=true; bk_use_multiple_iframes=true;
// FUNCTION : Timestamp
function getRRDate(y) {
var x = new Date();
var z = {
M: x.getMonth() + 1,
d: x.getDate(),
h: x.getHours(),
m: x.getMinutes(),
s: x.getSeconds(),
z: x.getMilliseconds()
};
y = y.replace(/(M+|d+|h+|m+|s+|z+)/g, function(v) {
return ((v.length > 1 ? "0" : "") + eval('z.' + v.slice(-1))).slice(-2)
});
return y.replace(/(y+)/g, function(v) {
return x.getFullYear().toString().slice(-v.length)
});
}
bk_addPageCtx('Aid', '<Responsys Account ID>');
bk_addPageCtx('Etype', 'BROWSE');
// optional
bk_addPageCtx('pid', '<PRODUCTID>');
bk_addPageCtx('pc', '<PRODUCTCATEGORY>');
bk_addPageCtx('pcardid', '<CARTID>');
bk_addPageCtx('pprice', '<product price>'); // URL encoded, e.g. 500%2E00
bk_addPageCtx('t', getRRDate("yyyy-mm-dd-hh-ss-zz"));
bk_addPageCtx('TagTriggeredDt',Date.now());
// Send Data
BKTAG.doTag(ENTER CONTAINER ID HERE, 4);
// Reset
BKTAG._reset();
};
(function() {
var scripts = document.getElementsByTagName('script')[0];
var s = document.createElement('script');
s.async = true;
s.src = "//tags.bkrtx.com/js/bk-coretag.js";
scripts.parentNode.insertBefore(s, scripts);
}());
</script>
<script type="text/javascript">
window.bk_async = function() {
// ALLOW MULTIPLE CALLS/SINGLE PAGE APPS
bk_allow_multiple_calls=true; bk_use_multiple_iframes=true;
// FUNCTION : Timestamp
function getRRDate(y) {
var x = new Date();
var z = {
M: x.getMonth() + 1,
d: x.getDate(),
h: x.getHours(),
m: x.getMinutes(),
s: x.getSeconds(),
z: x.getMilliseconds()
};
y = y.replace(/(M+|d+|h+|m+|s+|z+)/g, function(v) {
return ((v.length > 1 ? "0" : "") + eval('z.' + v.slice(-1))).slice(-2)
});
return y.replace(/(y+)/g, function(v) {
return x.getFullYear().toString().slice(-v.length)
});
}
bk_addPageCtx('Aid', '<Responsys Account ID>');
bk_addPageCtx('Etype', 'CART');
bk_addPageCtx('Action', 'ADD');
// optional
bk_addPageCtx('pid', '<PRODUCTID>');
bk_addPageCtx('pc', '<PRODUCTCATEGORY>');
bk_addPageCtx('pcardid', '<CARTID>');
bk_addPageCtx('pprice', '<product price>'); // URL encoded, e.g. 500%2E00
bk_addPageCtx('t', getRRDate("yyyy-mm-dd-hh-ss-zz"));
bk_addPageCtx('TagTriggeredDt',Date.now());
// Send Data
BKTAG.doTag(ENTER CONTAINER ID HERE, 4);
// Reset
BKTAG._reset();
};
(function() {
var scripts = document.getElementsByTagName('script')[0];
var s = document.createElement('script');
s.async = true;
s.src = "//tags.bkrtx.com/js/bk-coretag.js";
scripts.parentNode.insertBefore(s, scripts);
}());
</script>
<script type="text/javascript">
window.bk_async = function() {
// ALLOW MULTIPLE CALLS/SINGLE PAGE APPS
bk_allow_multiple_calls=true; bk_use_multiple_iframes=true;
// FUNCTION : Timestamp
function getRRDate(y) {
var x = new Date();
var z = {
M: x.getMonth() + 1,
d: x.getDate(),
h: x.getHours(),
m: x.getMinutes(),
s: x.getSeconds(),
z: x.getMilliseconds()
};
y = y.replace(/(M+|d+|h+|m+|s+|z+)/g, function(v) {
return ((v.length > 1 ? "0" : "") + eval('z.' + v.slice(-1))).slice(-2)
});
return y.replace(/(y+)/g, function(v) {
return x.getFullYear().toString().slice(-v.length)
});
}
bk_addPageCtx('Aid', '<Responsys Account ID>');
bk_addPageCtx('Etype', 'CART');
bk_addPageCtx('Action', 'REMOVE');
// optional
bk_addPageCtx('pid', '<PRODUCTID>');
bk_addPageCtx('t', getRRDate("yyyy-mm-dd-hh-ss-zz"));
bk_addPageCtx('TagTriggeredDt',Date.now());
// Send Data
BKTAG.doTag(ENTER CONTAINER ID HERE, 4);
// Reset
BKTAG._reset();
};
(function() {
var scripts = document.getElementsByTagName('script')[0];
var s = document.createElement('script');
s.async = true;
s.src = "//tags.bkrtx.com/js/bk-coretag.js";
scripts.parentNode.insertBefore(s, scripts);
}());
</script>
<script type="text/javascript">
window.bk_async = function() {
// ALLOW MULTIPLE CALLS/SINGLE PAGE APPS
bk_allow_multiple_calls=true; bk_use_multiple_iframes=true;
// FUNCTION : Timestamp
function getRRDate(y) {
var x = new Date();
var z = {
M: x.getMonth() + 1,
d: x.getDate(),
h: x.getHours(),
m: x.getMinutes(),
s: x.getSeconds(),
z: x.getMilliseconds()
};
y = y.replace(/(M+|d+|h+|m+|s+|z+)/g, function(v) {
return ((v.length > 1 ? "0" : "") + eval('z.' + v.slice(-1))).slice(-2)
});
return y.replace(/(y+)/g, function(v) {
return x.getFullYear().toString().slice(-v.length)
});
}
bk_addPageCtx('Aid', '<Responsys Account ID>');
bk_addPageCtx('Etype', 'CART');
bk_addPageCtx('Action', 'CLEAR');
bk_addPageCtx('t', getRRDate("yyyy-mm-dd-hh-ss-zz"));
bk_addPageCtx('TagTriggeredDt',Date.now());
// Send Data
BKTAG.doTag(ENTER CONTAINER ID HERE, 4);
// Reset
BKTAG._reset();
};
(function() {
var scripts = document.getElementsByTagName('script')[0];
var s = document.createElement('script');
s.async = true;
s.src = "//tags.bkrtx.com/js/bk-coretag.js";
scripts.parentNode.insertBefore(s, scripts);
}());
</script>
<script type="text/javascript">
window.bk_async = function() {
// ALLOW MULTIPLE CALLS/SINGLE PAGE APPS
bk_allow_multiple_calls=true; bk_use_multiple_iframes=true;
// FUNCTION : Timestamp
function getRRDate(y) {
var x = new Date();
var z = {
M: x.getMonth() + 1,
d: x.getDate(),
h: x.getHours(),
m: x.getMinutes(),
s: x.getSeconds(),
z: x.getMilliseconds()
};
y = y.replace(/(M+|d+|h+|m+|s+|z+)/g, function(v) {
return ((v.length > 1 ? "0" : "") + eval('z.' + v.slice(-1))).slice(-2)
});
return y.replace(/(y+)/g, function(v) {
return x.getFullYear().toString().slice(-v.length)
});
}
bk_addPageCtx('Aid', '<Responsys Account ID>');
bk_addPageCtx('Etype', 'CART');
bk_addPageCtx('Action', 'UPDATE');
bk_addPageCtx('Stage', '<stage>'); // custom stage names, e.g. "Product(s) in Cart", "Shipping Information Page", "Billing Information Page" or "Purchase Summary"
bk_addPageCtx('t', getRRDate("yyyy-mm-dd-hh-ss-zz"));
bk_addPageCtx('TagTriggeredDt',Date.now());
// Send Data
BKTAG.doTag(ENTER CONTAINER ID HERE, 4);
// Reset
BKTAG._reset();
};
(function() {
var scripts = document.getElementsByTagName('script')[0];
var s = document.createElement('script');
s.async = true;
s.src = "//tags.bkrtx.com/js/bk-coretag.js";
scripts.parentNode.insertBefore(s, scripts);
}());
</script>
<script type="text/javascript">
window.bk_async = function() {
// ALLOW MULTIPLE CALLS/SINGLE PAGE APPS
bk_allow_multiple_calls=true; bk_use_multiple_iframes=true;
// FUNCTION : Timestamp
function getRRDate(y) {
var x = new Date();
var z = {
M: x.getMonth() + 1,
d: x.getDate(),
h: x.getHours(),
m: x.getMinutes(),
s: x.getSeconds(),
z: x.getMilliseconds()
};
y = y.replace(/(M+|d+|h+|m+|s+|z+)/g, function(v) {
return ((v.length > 1 ? "0" : "") + eval('z.' + v.slice(-1))).slice(-2)
});
return y.replace(/(y+)/g, function(v) {
return x.getFullYear().toString().slice(-v.length)
});
}
bk_addPageCtx('Aid', '<Responsys Account ID>');
bk_addPageCtx('Etype', 'CART');
bk_addPageCtx('Action', 'PURCHASE');
bk_addPageCtx('t', getRRDate("yyyy-mm-dd-hh-ss-zz"));
bk_addPageCtx('TagTriggeredDt',Date.now());
// Send Data
BKTAG.doTag(ENTER CONTAINER ID HERE, 4);
// Reset
BKTAG._reset();
};
(function() {
var scripts = document.getElementsByTagName('script')[0];
var s = document.createElement('script');
s.async = true;
s.src = "//tags.bkrtx.com/js/bk-coretag.js";
scripts.parentNode.insertBefore(s, scripts);
}());
</script>