Shoora
6/30/2016 - 8:39 AM

Google Tag Manager BlueKai Tag Code Template.js

Google Tag Manager BlueKai Tag Code Template.js

<!-- Begin BlueKai Tag --> 
<script type="text/javascript"> 
window.bk_async = function() { 

// ALLOW MULTIPLE CALLS/SINGLE PAGE APP HANDLING
 bk_allow_multiple_calls=true; 
 bk_use_multiple_iframes=true;

 // <optional> PHINTS : This is where you can declare variables about this page (or user) to BlueKai
 bk_addPageCtx('example_var', {{Replace with Google Tag Manager Variable Name}});
 bk_addPageCtx('another_example_var', {{Replace with Google Tag Manager Variable Name}});
 
 // <optional> For ID swap, if you have a specific customer ID you can populate you may put it here
 bk_addPageCtx('id', {{Replace with Google Tag Manager Variable Name}});
 
 // <optional> For ID swap, if you have the customer's email address - add it here (we will MD5 hash it before it is sent to BlueKai)
 bk_addEmailHash({{Replace with Google Tag Manager Variable Name}});

 // <optional> For ID swap, if you have the customer's phone number - add it here (we will MD5 hash it before it is sent to BlueKai)
 bk_addPhoneHash({{Replace with Google Tag Manager Variable Name}});

 // Send data to BlueKai
 BKTAG.doTag(ENTER YOUR CONTAINER ID HERE, 1); // you will be supplied with this (or you can retrieve it from the BlueKai UI)
}; 
(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 -->