<!-- See lines 11 to 29 for code to add -->
<!-- Begin BlueKai Tag -->
<script type='text/javascript'>
window.bk_async = function() {
// ALLOW MULTIPLE CALLS/SINGLE PAGE APPS
bk_allow_multiple_calls = true;
bk_use_multiple_iframes = true;
// ID_PERS QUERY-STRING GRABBER CODE : START
var urlP;
var match,
pl = /\+/g, // Regex for replacing addition symbol with a space
search = /([^&=]+)=?([^&]*)/g,
decode = function(s) {
return decodeURIComponent(s.replace(pl, " "));
},
query = window.location.search.substring(1);
urlP = {};
while (match = search.exec(query))
urlP[decode(match[1]).toLowerCase()] = decode(match[2]);
if(urlP.id){
// Declares "id_pers"
bk_addPageCtx('id_pers', urlP.id);
}
// ID_PERS QUERY-STRING GRABBER CODE : END
// PHINTS : Declare variables about this page (or user)
bk_addPageCtx('page_name', 'VALUE OF "page_name"');
bk_addPageCtx('page_cat1', 'VALUE OF "page_cat1"');
///...etc...
// Send Data to BlueKai
BKTAG.doTag(XXXXX, 4); // XXXXX is the container ID for your site
};
(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>
<!-- End BlueKai Tag -->