For implementation on bold.dk via GTM
<!-- 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;
// FUNCTION : Type Checker
function toType(obj) {
return ({}).toString.call(obj).match(/\s([a-zA-Z]+)/)[1].toLowerCase();
}
// FUNCTION : Phint Declarer
function declareVar(phintName,dataLayerVar){
if(toType(dataLayerVar) === "string" && dataLayerVar){
bk_addPageCtx(phintName,dataLayerVar);
} else if (toType(dataLayerVar) === "array" && dataLayerVar[0]){
bk_addPageCtx(phintName,dataLayerVar.join('|'));
}
}
// PHINTS : Declare variables about this page (ONLY POPULATE IF VAR IS AVAILABLE IN CALL)
declareVar("countries",{{countries}});
declareVar("hitDate",{{hitDate}});
declareVar("leagues",{{leagues}});
declareVar("teams",{{teams}});
declareVar("type",{{teams}});
declareVar("players",{{players}});
declareVar("articleDate",{{articleDate}});
declareVar("articleAuthor",{{articleAuthor}});
declareVar("categories",{{categories}});
declareVar("id",{{id}});
// Send Data
BKTAG.doTag(76566, 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 = "//tags.bkrtx.com/js/bk-coretag.js";
scripts.parentNode.insertBefore(s, scripts);
}());
</script>
<!-- End BlueKai Tag -->