roshanoracle
1/14/2020 - 9:32 AM

BlueKai CoreTag Code Template

<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> PHINTS : Declare variables about this page (or user)

bk_addPageCtx('page_type', 'article'); // example phint (change to your own useful variabes)
bk_addPageCtx('section', 'news'); // example phint (change to your own useful variabes)
bk_addPageCtx('another_example_var', 'another value'); // example phint (change to your own useful variabes)

/*
<optional> IDs : Depending on your deployment, IDs may be useful for joining offline data to a visitor's profile to add additional targeting capabilities. If you have these for users, please declare them
*/

// <optional> Customer ID
bk_addPageCtx('customer_id', 'YOUR CUSTOMER ID');

// <optional> Email Address (this will be MD5 and SHA-256 hashed)
bk_addEmailHash('ENTER EMAIL ADDRESS HERE');

// <optional> Phone Number (this will be MD5 and SHA-256 hashed)
bk_addPhoneHash('ENTER PHONE NUMBER HERE');

// Send Data 
BKTAG.doTag(ENTER CONTAINER ID HERE, 4);  // change "ENTER CONTAINER ID HERE" to the container ID/Site ID you want to use
};
(function() {
  var scripts = document.getElementsByTagName('script')[0];
  var s = document.createElement('script');
  s.async = true;
  s.src = "https://tags.bkrtx.com/js/bk-coretag.js";
  scripts.parentNode.insertBefore(s, scripts);
}());
</script>