html Spur - GTM代码 - 所有标签
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html Spur - GTM代码 - 所有标签相关的知识,希望对你有一定的参考价值。
<!-- Run this code as close to the top of the <body> as you can -->
<!-- Begin BlueKai Tag -->
<script type="text/javascript">
if(document.cookie.indexOf('bkdebug=true')>-1){debugger;}
// CHECK : is BK library available?
if(window.BKTAG && BKTAG.doTag){
setTimeout(function(){
bk_ignore_meta=true;
bk_addPageCtx('__bk_l', document.location.href);
// Advanced URL tracking
bk_addPageCtx('url_1', document.location.href);
bk_addPageCtx('url_2', document.location.href);
bk_addPageCtx('url_3', document.location.href);
bk_addPageCtx('urlpath_1', document.location.pathname);
bk_addPageCtx('urlpath_2', document.location.pathname);
bk_addPageCtx('urlpath_3', document.location.pathname);
// Email Grabbing Code
if({{sha_256_email}}){
bk_addPageCtx('e_id_s', {{sha_256_email}});
};
// SEND DATA IMMEDIATELY
BKTAG.doTag(43390, 4);
}, 1000);
} else {
// LOAD LIBRARY THEN SEND DATA
window.bk_async = function() {
// ALLOW MULTIPLE CALLS/SINGLE PAGE APPS
bk_allow_multiple_calls=true; bk_use_multiple_iframes=true ;
// Advanced URL tracking
bk_addPageCtx('url_1', document.location.href);
bk_addPageCtx('url_2', document.location.href);
bk_addPageCtx('url_3', document.location.href);
bk_addPageCtx('urlpath_1', document.location.pathname);
bk_addPageCtx('urlpath_2', document.location.pathname);
bk_addPageCtx('urlpath_3', document.location.pathname);
// Email Grabbing Code
if({{sha_256_email}}){
bk_addPageCtx('e_id_s', {{sha_256_email}});
};
// Send Data
BKTAG.doTag(43390, 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>
<!-- End BlueKai Tag -->
<!-- Run this code as close to the top of the <body> as you can -->
<!-- Begin BlueKai Tag -->
<script type="text/javascript">
if(document.cookie.indexOf('bkdebug=true')>-1){debugger;}
// CHECK : is BK library available?
if(window.BKTAG && BKTAG.doTag){
setTimeout(function(){
bk_ignore_meta=true;
bk_addPageCtx('__bk_l', document.location.href);
// Advanced URL tracking
bk_addPageCtx('url_1', document.location.href);
bk_addPageCtx('url_2', document.location.href);
bk_addPageCtx('url_3', document.location.href);
bk_addPageCtx('urlpath_1', document.location.pathname);
bk_addPageCtx('urlpath_2', document.location.pathname);
bk_addPageCtx('urlpath_3', document.location.pathname);
// Email Grabbing Code
if({{sha_256_email}}){
bk_addPageCtx('e_id_s', {{sha_256_email}});
};
// SEND DATA IMMEDIATELY
BKTAG.doTag(80058, 4);
}, 1000);
} else {
// LOAD LIBRARY THEN SEND DATA
window.bk_async = function() {
// ALLOW MULTIPLE CALLS/SINGLE PAGE APPS
bk_allow_multiple_calls=true; bk_use_multiple_iframes=true ;
// Advanced URL tracking
bk_addPageCtx('url_1', document.location.href);
bk_addPageCtx('url_2', document.location.href);
bk_addPageCtx('url_3', document.location.href);
bk_addPageCtx('urlpath_1', document.location.pathname);
bk_addPageCtx('urlpath_2', document.location.pathname);
bk_addPageCtx('urlpath_3', document.location.pathname);
// Email Grabbing Code
if({{sha_256_email}}){
bk_addPageCtx('e_id_s', {{sha_256_email}});
};
// Send Data
BKTAG.doTag(80058, 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>
<!-- End BlueKai Tag -->
<!-- Run this code as close to the top of the <body> as you can -->
<!-- Begin BlueKai Tag -->
<script type="text/javascript">
if(document.cookie.indexOf('bkdebug=true')>-1){debugger;}
// CHECK : is BK library available?
if(window.BKTAG && BKTAG.doTag){
setTimeout(function(){
bk_ignore_meta=true;
bk_addPageCtx('__bk_l', document.location.href);
// Advanced URL tracking
bk_addPageCtx('url_1', document.location.href);
bk_addPageCtx('url_2', document.location.href);
bk_addPageCtx('url_3', document.location.href);
bk_addPageCtx('urlpath_1', document.location.pathname);
bk_addPageCtx('urlpath_2', document.location.pathname);
bk_addPageCtx('urlpath_3', document.location.pathname);
// Email Grabbing Code
if({{sha_256_email}}){
bk_addPageCtx('e_id_s', {{sha_256_email}});
};
// SEND DATA IMMEDIATELY
BKTAG.doTag(80062, 4);
}, 1000);
} else {
// LOAD LIBRARY THEN SEND DATA
window.bk_async = function() {
// ALLOW MULTIPLE CALLS/SINGLE PAGE APPS
bk_allow_multiple_calls=true; bk_use_multiple_iframes=true ;
// Advanced URL tracking
bk_addPageCtx('url_1', document.location.href);
bk_addPageCtx('url_2', document.location.href);
bk_addPageCtx('url_3', document.location.href);
bk_addPageCtx('urlpath_1', document.location.pathname);
bk_addPageCtx('urlpath_2', document.location.pathname);
bk_addPageCtx('urlpath_3', document.location.pathname);
// Email Grabbing Code
if({{sha_256_email}}){
bk_addPageCtx('e_id_s', {{sha_256_email}});
};
// Send Data
BKTAG.doTag(80062, 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>
<!-- End BlueKai Tag -->
<!-- Run this code as close to the top of the <body> as you can -->
<!-- Begin BlueKai Tag -->
<script type="text/javascript">
if(document.cookie.indexOf('bkdebug=true')>-1){debugger;}
// CHECK : is BK library available?
if(window.BKTAG && BKTAG.doTag){
setTimeout(function(){
bk_ignore_meta=true;
bk_addPageCtx('__bk_l', document.location.href);
// Advanced URL tracking
bk_addPageCtx('url_1', document.location.href);
bk_addPageCtx('url_2', document.location.href);
bk_addPageCtx('url_3', document.location.href);
bk_addPageCtx('urlpath_1', document.location.pathname);
bk_addPageCtx('urlpath_2', document.location.pathname);
bk_addPageCtx('urlpath_3', document.location.pathname);
// Email Grabbing Code
if({{sha_256_email}}){
bk_addPageCtx('e_id_s', {{sha_256_email}});
};
// SEND DATA IMMEDIATELY
BKTAG.doTag(77909, 4);
}, 1000);
} else {
// LOAD LIBRARY THEN SEND DATA
window.bk_async = function() {
// ALLOW MULTIPLE CALLS/SINGLE PAGE APPS
bk_allow_multiple_calls=true; bk_use_multiple_iframes=true ;
// Advanced URL tracking
bk_addPageCtx('url_1', document.location.href);
bk_addPageCtx('url_2', document.location.href);
bk_addPageCtx('url_3', document.location.href);
bk_addPageCtx('urlpath_1', document.location.pathname);
bk_addPageCtx('urlpath_2', document.location.pathname);
bk_addPageCtx('urlpath_3', document.location.pathname);
// Email Grabbing Code
if({{sha_256_email}}){
bk_addPageCtx('e_id_s', {{sha_256_email}});
};
// Send Data
BKTAG.doTag(77909, 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>
<!-- End BlueKai Tag -->
以上是关于html Spur - GTM代码 - 所有标签的主要内容,如果未能解决你的问题,请参考以下文章
html Spur App - iOS和Android BlueKai像素指南
html Paysafe:BlueKai CoreTag:GTM建议代码
GTM 在模板中发现无效的 HTML、CSS 或 JavaScript