html 百事可乐:活动网站
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html 百事可乐:活动网站相关的知识,希望对你有一定的参考价值。
<!-- BlueKai Tag : Auto Detect Social Events : Requires jQuery -->
<!-- Fire on DOM Ready Trigger if using in Google Tag Manager -->
<!-- Otherwise implement at BOTTOM of <body> or DOM Ready as you can -->
<script type="text/javascript">
if(window.jQuery && jQuery.fn && jQuery.fn.jquery){
// Set up object to interact with
window._bk = window._bk || {};
window._bk.config = window._bk.config || {};
// FUNCTION : Link Tracking Function : DO NOT CHANGE
var add_link_tracking = function(social_keyword,social_network_name){
jQuery('a[href*="' + social_keyword + '"]').mousedown(function(event_data){
var current_domain = document.domain;
var link_url = (this && this.href) ? this.href : false;
// Check if on current site/allowed
if(!window._bk.config.internal_social_link_excl){
var allow_link = true;
} else if(link_url && link_url.indexOf(current_domain) === -1 && link_url.charAt(0) !== "/"){
var allow_link = true;
} else {var allow_link = false;}
if(allow_link){
// Fire data if allowed
bk_addPageCtx('event_type','social link click');
bk_addPageCtx('social_network',social_network_name);
bk_addPageCtx('event_detail',this.href);
BKTAG.doTag(46335, 4);
}
})
}
// Config
window._bk.config.internal_social_link_excl = true; // Set to true to exclude links on current domain (or false to include)
// Add social networks here
add_link_tracking("twitter","twitter"); // search keyword in link URL, name of social network to pass to BlueKai
add_link_tracking("facebook","facebook"); // etc
add_link_tracking("youtube","youtube"); // etc
add_link_tracking("instagram","instagram"); // etc
add_link_tracking("websta.me","instagram"); // etc
add_link_tracking("plus.google","googleplus"); // etc
add_link_tracking("linkedin","linkedin"); // etc
add_link_tracking("/vk.com","vk"); // etc
add_link_tracking(".vk.com","vk"); // etc
add_link_tracking("/ok.ru","OK"); // etc
add_link_tracking(".ok.ru","OK"); // etc
add_link_tracking("my.mail.ru","MyMail"); // etc
add_link_tracking("rutube","Rutube"); // etc
}
</script>
<!-- BlueKai Tag : Auto Detect Retailer Links : Requires jQuery-->
<!-- Fire on DOM Ready Trigger if using in Google Tag Manager -->
<!-- Otherwise implement at BOTTOM of <body> or DOM Ready as you can -->
<script type="text/javascript">
if(window.jQuery && jQuery.fn && jQuery.fn.jquery){
// Set up object to interact with
window._bk = window._bk || {};
window._bk.config = window._bk.config || {};
// FUNCTION : Link Tracking Function : DO NOT CHANGE
var add_retailer_tracking = function(retailer_keyword,retailer_name){
jQuery('a[href*="' + retailer_keyword.toLowerCase() + '"]').mousedown(function(event_data){
var current_domain = document.domain.toLowerCase();
var link_url = (this && this.href) ? this.href.toLowerCase() : false;
// Check if on current site/allowed
if(!window._bk.config.internal_retailer_link_excl){
var allow_link = true;
} else if(link_url && link_url.indexOf(current_domain) === -1 && link_url.charAt(0) !== "/"){
var allow_link = true;
} else {var allow_link = false;}
if(allow_link){
bk_addPageCtx('event_type','retailer_click');
bk_addPageCtx('retailer_name',retailer_name);
bk_addPageCtx('event_detail',this.href);
BKTAG.doTag(46335, 4);
}
})
}
// Config
window._bk.config.internal_retailer_link_excl = true; // Set to true to exclude links on current domain (or false to include)
// Add Retailers here
add_retailer_tracking("tesco","tesco"); // term to search for in link, name of retailer
add_retailer_tracking("asmoda","asda"); // Asda
add_retailer_tracking("ocado","ocado"); // Ocado
add_retailer_tracking("easygym","easygym"); // Easy Gym
add_retailer_tracking("morrisons","morrisons"); // etc
add_retailer_tracking("sainsburys","sainsburys"); // etc
add_retailer_tracking("waitrose","waitrose"); // etc
add_retailer_tracking("monoprix","monoprix"); // etc
add_retailer_tracking("Carrefour","Carrefour"); // etc
add_retailer_tracking("intermarche","Intermanche Drive"); // etc
add_retailer_tracking("coursesu","Courses U Drive"); // etc
add_retailer_tracking("colruyt","colruyt"); // etc
add_retailer_tracking("delhaize","delhaize"); // etc
add_retailer_tracking(".ah.nl","Albert Heijn"); // etc
add_retailer_tracking("/ah.nl","Albert Heijn"); // etc
add_retailer_tracking("/ah.be","Albert Heijn"); // etc
add_retailer_tracking("/ah.be","Albert Heijn"); // etc
add_retailer_tracking("utkonos.ru ","utkonos.ru "); // etc
add_retailer_tracking("detmir.ru","Detmir"); // etc
add_retailer_tracking("korablik.ru","Korablik"); // etc
add_retailer_tracking("dochkisinochki.ru","Dochkisinochki"); // etc
add_retailer_tracking("perekrestok.ru","Perekrestok"); // etc
add_retailer_tracking("ozon.ru","Ozon"); // etc
add_retailer_tracking(".av.ru","AV"); // etc
add_retailer_tracking("/av.ru","AV"); // etc
add_retailer_tracking("okeydostavka.ru","Okeydostavka"); // etc
add_retailer_tracking("instamart.ru","Instamart"); // etc
add_retailer_tracking("metro-cc.ru","Metro-cc"); // etc
add_retailer_tracking("komus.ru","Komus"); // etc
add_retailer_tracking("rewe-online","Rewe Online"); // etc
add_retailer_tracking("amazon","amazon"); // etc
add_retailer_tracking("lidl","Lidl Online"); // etc
add_retailer_tracking("edeka24","edeka24"); // etc
add_retailer_tracking(".real.de","real.de"); // etc
add_retailer_tracking("/real.de","real.de"); // etc
add_retailer_tracking(".mytime","mytime"); // etc
add_retailer_tracking("kaufland","Kaufland"); // etc
add_retailer_tracking("allyouneedfresh","Allyouneed Fresh "); // etc
add_retailer_tracking("leshop","LeShop by Migros"); // etc
add_retailer_tracking("penny.de","Penn"); // etc
}
</script>
<!-- If running in Google Tag Manager use DOM Ready trigger to fire -->
<!-- If coding directly to the page, insert at top of <body> (or as close as you can) -->
<!-- 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;
// Grab Query-String Parameters // grab from urlP["nameofparameter"], e.g. urlP["email_id"]
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]);
// <optional> PHINTS : Declare variables about this page (or user)
// CUSTOM VARS YOU WANT TO DECLARE : Uncomment this to declare specific vars
//bk_addPageCtx('change_to_var_name','{{GTM Var Name}}'); // Key must only use (a-z,A-Z,0-9,_) characters. Value can be anything
// bk_addPageCtx('brand_name','pepsi'); // An example
// bk_addPageCtx('brand_name','{{brand name}}'); // An example (using GTM vars)
// MD5 hashed email grabber
if(urlP.e_id_m){
bk_addPageCtx('e_id_m', urlP.e_id_m)
BKTAG.doTag(46295, 4);
};
// CAMPAIGN SITE : Flag campaign site
bk_addPageCtx('campaign_site','true');
// HOMEPAGE DETECTION : Attempts to detect a homepage
if(document.location.pathname === "/" || document.location.href.toLowerCase().match(/index\.h/)){
bk_addPageCtx('homepage_page','true');
};
// SEARCH DETECTION : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/search|chercher|arama|szukanie|buscar|zoeken/)){
bk_addPageCtx('search_page','true');
};
// CLAIM DETECTION : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/coupon|anspruch|nutzeranspruch|ansprüche|reclamo|réclamations|redimi|vinci|claim|żądanie|prośba|domaganie-się|redimir|crédito|cere|iddia-etmek|istemek/)){
bk_addPageCtx('claim','true');
};
// DOWNLOAD : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/herunterladen|descarga|télécharge|scarica|ściągnji|pobierz|download|baixar|descarcă|indirmek|yüklemek/)){
bk_addPageCtx('download','true');
};
// LOGIN : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/login|einloggen|anmelden|ingresar|connexion|se-connecter|identification|identifier|inloggen|aanmelden|logowanie|entrar|autentificare|giriş|dahil-olmak/)){
bk_addPageCtx('login','true');
};
// REGISTER : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/registrieren|registration|registro|s'inscrire|s'enregistrer|inscription|enregistrement|registrati|registreren|registratie|rejestracja|rejestr|increva-se|cadastre-se|înregistrează-te|kaydolmak|yazılmak|register|bedingungen/)){
bk_addPageCtx('registration','true');
};
// CONTACT US DETECTION : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/kontakt|temas|consultas|contáctenos|enquêtes|vragen|zapytania|skontaktuj-się-z-nami|contato|contate-nos|soruşturma|bizimle-iletişime-geçin|bizimle-temas-kurun/)){
bk_addPageCtx('contact_page','true');
};
// FAQ PAGE DETECTION : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/fragen|produktfragen|faq|kundenfragen|preguntas|foire-aux-questions|domande|vragen|stel-hier-je-vraag|vraag|pytania|întrebări-frecvente|sorular|sıkça|sorulan/)){
bk_addPageCtx('faq_page','true');
};
// Ts & Cs PAGE DETECTION : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/bedingungen|t-c|nutzerbedingungen|bedingungen-und-konditionen|nutzerinformationen|condiciones|renuncia-de-responsabilidad|dénégation|conditions|modalités|condizioni|contratto|informazioni|voorwaarden|gebruikersvoorwaarden|zrzeczenie|warunki|regulamin|isenção-de-responsabilidade|şartlar|disclaimer|term/)){
bk_addPageCtx('t_and_c_page','true');
};
// Send Data
BKTAG.doTag(46335, 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>
<!-- If running in Google Tag Manager use DOM Ready trigger to fire -->
<!-- If coding directly to the page, insert at top of <body> (or as close as you can) -->
<!-- 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;
// Grab Query-String Parameters // grab from urlP["nameofparameter"], e.g. urlP["email_id"]
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]);
// <optional> PHINTS : Declare variables about this page (or user)
// CUSTOM VARS YOU WANT TO DECLARE : Uncomment this to declare specific vars
//bk_addPageCtx('change_to_var_name','{{GTM Var Name}}'); // Key must only use (a-z,A-Z,0-9,_) characters. Value can be anything
// bk_addPageCtx('brand_name','pepsi'); // An example
// bk_addPageCtx('brand_name','{{brand name}}'); // An example (using GTM vars)
// MD5 hashed email grabber
if(urlP.e_id_m){
bk_addPageCtx('e_id_m', urlP.e_id_m)
BKTAG.doTag(46295, 4);
};
// CAMPAIGN SITE : Flag campaign site
bk_addPageCtx('campaign_site','true');
// HOMEPAGE DETECTION : Attempts to detect a homepage
if(document.location.pathname === "/" || document.location.href.toLowerCase().match(/index\.h/)){
bk_addPageCtx('homepage_page','true');
};
// SEARCH DETECTION : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/search|chercher|arama|szukanie|buscar|zoeken/)){
bk_addPageCtx('search_page','true');
};
// CLAIM DETECTION : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/anspruch|nutzeranspruch|ansprüche|reclamo|réclamations|redimi|vinci|claim|żądanie|prośba|domaganie-się|redimir|crédito|cere|iddia-etmek|istemek/)){
bk_addPageCtx('claim','true');
};
// DOWNLOAD : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/herunterladen|descarga|télécharge|scarica|ściągnji|pobierz|download|baixar|descarcă|indirmek|yüklemek/)){
bk_addPageCtx('download','true');
};
// LOGIN : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/login|einloggen|anmelden|ingresar|connexion|se-connecter|identification|identifier|inloggen|aanmelden|logowanie|entrar|autentificare|giriş|dahil-olmak/)){
bk_addPageCtx('login','true');
};
// REGISTER : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/registrieren|registration|registro|s'inscrire|s'enregistrer|inscription|enregistrement|registrati|registreren|registratie|rejestracja|rejestr|increva-se|cadastre-se|înregistrează-te|kaydolmak|yazılmak|register|bedingungen/)){
bk_addPageCtx('registration','true');
};
// CONTACT US DETECTION : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/contact|kontakt|temas|consultas|contáctenos|enquêtes|vragen|zapytania|skontaktuj-się-z-nami|contato|contate-nos|soruşturma|bizimle-iletişime-geçin|bizimle-temas-kurun/)){
bk_addPageCtx('contact_page','true');
};
// FAQ PAGE DETECTION : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/fragen|produktfragen|faq|kundenfragen|preguntas|foire-aux-questions|domande|vragen|stel-hier-je-vraag|vraag|pytania|întrebări-frecvente|sorular|sıkça|sorulan/)){
bk_addPageCtx('faq_page','true');
};
// Ts & Cs PAGE DETECTION : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/bedingungen|t-c|nutzerbedingungen|bedingungen-und-konditionen|nutzerinformationen|condiciones|renuncia-de-responsabilidad|dénégation|conditions|modalités|condizioni|contratto|informazioni|voorwaarden|gebruikersvoorwaarden|zrzeczenie|warunki|regulamin|isenção-de-responsabilidade|şartlar|disclaimer|term/)){
bk_addPageCtx('t_and_c_page','true');
};
// Send Data
BKTAG.doTag(46335, 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>
<!-- If running in Google Tag Manager use DOM Ready trigger to fire -->
<!-- If coding directly to the page, insert at top of <body> (or as close as you can) -->
<!-- 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;
// Grab Query-String Parameters // grab from urlP["nameofparameter"], e.g. urlP["email_id"]
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]);
// <optional> PHINTS : Declare variables about this page (or user)
// CUSTOM VARS YOU WANT TO DECLARE : Uncomment this to declare specific vars
//bk_addPageCtx('change_to_var_name','{{GTM Var Name}}'); // Key must only use (a-z,A-Z,0-9,_) characters. Value can be anything
// bk_addPageCtx('brand_name','pepsi'); // An example
// bk_addPageCtx('brand_name','{{brand name}}'); // An example (using GTM vars)
// MD5 hashed email grabber
if(urlP.e_id_m){
bk_addPageCtx('e_id_m', urlP.e_id_m)
BKTAG.doTag(46295, 4);
};
// CAMPAIGN SITE : Flag campaign site
bk_addPageCtx('campaign_site','true');
// HOMEPAGE DETECTION : Attempts to detect a homepage
if(document.location.pathname === "/" || document.location.href.toLowerCase().match(/index\.h/)){
bk_addPageCtx('homepage_page','true');
};
// SEARCH DETECTION : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/search|chercher|arama|szukanie|buscar|zoeken/)){
bk_addPageCtx('search_page','true');
};
// CLAIM DETECTION : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/anspruch|nutzeranspruch|ansprüche|reclamo|réclamations|redimi|vinci|claim|żądanie|prośba|domaganie-się|redimir|crédito|cere|iddia-etmek|istemek/)){
bk_addPageCtx('claim','true');
};
// DOWNLOAD : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/herunterladen|descarga|télécharge|scarica|ściągnji|pobierz|download|baixar|descarcă|indirmek|yüklemek/)){
bk_addPageCtx('download','true');
};
// LOGIN : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/login|einloggen|anmelden|ingresar|connexion|se-connecter|identification|identifier|inloggen|aanmelden|logowanie|entrar|autentificare|giriş|dahil-olmak/)){
bk_addPageCtx('login','true');
};
// REGISTER : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/registrieren|registration|registro|s'inscrire|s'enregistrer|inscription|enregistrement|registrati|registreren|registratie|rejestracja|rejestr|increva-se|cadastre-se|înregistrează-te|kaydolmak|yazılmak|register|bedingungen/)){
bk_addPageCtx('registration','true');
};
// CONTACT US DETECTION : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/contact|kontakt|temas|consultas|contáctenos|enquêtes|vragen|zapytania|skontaktuj-się-z-nami|contato|contate-nos|soruşturma|bizimle-iletişime-geçin|bizimle-temas-kurun/)){
bk_addPageCtx('contact_page','true');
};
// FAQ PAGE DETECTION : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/fragen|produktfragen|faq|kundenfragen|preguntas|foire-aux-questions|domande|vragen|stel-hier-je-vraag|vraag|pytania|întrebări-frecvente|sorular|sıkça|sorulan/)){
bk_addPageCtx('faq_page','true');
};
// Ts & Cs PAGE DETECTION : Add in terms to look for in the URL to know it is this type of page (e.g. /term-1|term-2|term-3/)
if(decodeURI(document.location.href).toLowerCase().match(/bedingungen|t-c|nutzerbedingungen|bedingungen-und-konditionen|nutzerinformationen|condiciones|renuncia-de-responsabilidad|dénégation|conditions|modalités|condizioni|contratto|informazioni|voorwaarden|gebruikersvoorwaarden|zrzeczenie|warunki|regulamin|isenção-de-responsabilidade|şartlar|disclaimer|term/)){
bk_addPageCtx('t_and_c_page','true');
};
// Send Data
BKTAG.doTag(46335, 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>
<!-- PepsiCo : Back-up Event Tracking -->
<!-- OPTION 1 : EVENT TAG : BlueKai "//tags.bkrtx.com/js/bk-coretag.js" has already been loaded on the page via another BlueKai Tag you have implemented -->
<!-- Run this code when you the event has happened successfully -->
<!-- Begin BlueKai Tag -->
<script type="text/javascript">
// Surface email address if available
bk_addEmailHash('ENTER_RAW_EMAIL_ADDRESS_HERE'); // this will MD5 and SHA256 hash it before sending to BlueKai
BKTAG.doTag(46295, 4); // Enter the offline container ID here
bk_addPageCtx('registration', 'true');
BKTAG.doTag(46335, 4);
</script>
<!-- OPTION 2 : PAGE LOAD TAG : BlueKai "//tags.bkrtx.com/js/bk-coretag.js" has NOT already been loaded on the page -->
<!-- If running in Google Tag Manager use DOM Ready trigger to fire -->
<!-- If coding directly to the page, insert at top of <body> (or as close as you can) -->
<!-- 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;
// Grab Query-String Parameters // grab from urlP["nameofparameter"], e.g. urlP["email_id"]
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]);
// <optional> PHINTS : Declare variables about this page (or user)
// CUSTOM VARS YOU WANT TO DECLARE : Uncomment this to declare specific vars
//bk_addPageCtx('change_to_var_name','{{GTM Var Name}}'); // Key must only use (a-z,A-Z,0-9,_) characters. Value can be anything
// bk_addPageCtx('brand_name','pepsi'); // An example
// bk_addPageCtx('brand_name','{{brand name}}'); // An example (using GTM vars)
// MD5 hashed email grabber
if(urlP.e_id_m){
bk_addPageCtx('e_id_m', urlP.e_id_m)
BKTAG.doTag(46295, 4);
};
bk_addPageCtx('registration', 'true');
};
// Send Data
BKTAG.doTag(46335, 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>
<!-- PepsiCo : Back-up Event Tracking -->
<!-- OPTION 1 : EVENT TAG : BlueKai "//tags.bkrtx.com/js/bk-coretag.js" has already been loaded on the page via another BlueKai Tag you have implemented -->
<!-- Run this code when you the event has happened successfully -->
<!-- Begin BlueKai Tag -->
<script type="text/javascript">
// Surface email address if available
bk_addEmailHash('ENTER_RAW_EMAIL_ADDRESS_HERE'); // this will MD5 and SHA256 hash it before sending to BlueKai
BKTAG.doTag(46295, 4); // Enter the offline container ID here
bk_addPageCtx('login', 'true');
BKTAG.doTag(46335, 4);
</script>
<!-- OPTION 2 : PAGE LOAD TAG : BlueKai "//tags.bkrtx.com/js/bk-coretag.js" has NOT already been loaded on the page -->
<!-- If running in Google Tag Manager use DOM Ready trigger to fire -->
<!-- If coding directly to the page, insert at top of <body> (or as close as you can) -->
<!-- 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;
// Grab Query-String Parameters // grab from urlP["nameofparameter"], e.g. urlP["email_id"]
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]);
// <optional> PHINTS : Declare variables about this page (or user)
// CUSTOM VARS YOU WANT TO DECLARE : Uncomment this to declare specific vars
//bk_addPageCtx('change_to_var_name','{{GTM Var Name}}'); // Key must only use (a-z,A-Z,0-9,_) characters. Value can be anything
// bk_addPageCtx('brand_name','pepsi'); // An example
// bk_addPageCtx('brand_name','{{brand name}}'); // An example (using GTM vars)
// MD5 hashed email grabber
if(urlP.e_id_m){
bk_addPageCtx('e_id_m', urlP.e_id_m)
BKTAG.doTag(46295, 4);
};
bk_addPageCtx('login', 'true');
};
// Send Data
BKTAG.doTag(46335, 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>
<!-- PepsiCo : Back-up Event Tracking -->
<!-- OPTION 1 : EVENT TAG : BlueKai "//tags.bkrtx.com/js/bk-coretag.js" has already been loaded on the page via another BlueKai Tag you have implemented -->
<!-- Run this code when you the event has happened successfully -->
<!-- Begin BlueKai Tag -->
<script type="text/javascript">
// Surface email address if available
bk_addEmailHash('ENTER_RAW_EMAIL_ADDRESS_HERE'); // this will MD5 and SHA256 hash it before sending to BlueKai
BKTAG.doTag(46295, 4); // Enter the offline container ID here
bk_addPageCtx('faq_page', 'true');
BKTAG.doTag(46335, 4);
</script>
<!-- OPTION 2 : PAGE LOAD TAG : BlueKai "//tags.bkrtx.com/js/bk-coretag.js" has NOT already been loaded on the page -->
<!-- If running in Google Tag Manager use DOM Ready trigger to fire -->
<!-- If coding directly to the page, insert at top of <body> (or as close as you can) -->
<!-- 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;
// Grab Query-String Parameters // grab from urlP["nameofparameter"], e.g. urlP["email_id"]
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]);
// <optional> PHINTS : Declare variables about this page (or user)
// CUSTOM VARS YOU WANT TO DECLARE : Uncomment this to declare specific vars
//bk_addPageCtx('change_to_var_name','{{GTM Var Name}}'); // Key must only use (a-z,A-Z,0-9,_) characters. Value can be anything
// bk_addPageCtx('brand_name','pepsi'); // An example
// bk_addPageCtx('brand_name','{{brand name}}'); // An example (using GTM vars)
// MD5 hashed email grabber
if(urlP.e_id_m){
bk_addPageCtx('e_id_m', urlP.e_id_m)
BKTAG.doTag(46295, 4);
};
bk_addPageCtx('faq_page', 'true');
};
// Send Data
BKTAG.doTag(46335, 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>
<!-- PepsiCo : Back-up Event Tracking -->
<!-- OPTION 1 : EVENT TAG : BlueKai "//tags.bkrtx.com/js/bk-coretag.js" has already been loaded on the page via another BlueKai Tag you have implemented -->
<!-- Run this code when you the event has happened successfully -->
<!-- Begin BlueKai Tag -->
<script type="text/javascript">
// Surface email address if available
bk_addEmailHash('ENTER_RAW_EMAIL_ADDRESS_HERE'); // this will MD5 and SHA256 hash it before sending to BlueKai
BKTAG.doTag(46295, 4); // Enter the offline container ID here
bk_addPageCtx('download', 'true');
BKTAG.doTag(46335, 4);
</script>
<!-- OPTION 2 : PAGE LOAD TAG : BlueKai "//tags.bkrtx.com/js/bk-coretag.js" has NOT already been loaded on the page -->
<!-- If running in Google Tag Manager use DOM Ready trigger to fire -->
<!-- If coding directly to the page, insert at top of <body> (or as close as you can) -->
<!-- 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;
// Grab Query-String Parameters // grab from urlP["nameofparameter"], e.g. urlP["email_id"]
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]);
// <optional> PHINTS : Declare variables about this page (or user)
// CUSTOM VARS YOU WANT TO DECLARE : Uncomment this to declare specific vars
//bk_addPageCtx('change_to_var_name','{{GTM Var Name}}'); // Key must only use (a-z,A-Z,0-9,_) characters. Value can be anything
// bk_addPageCtx('brand_name','pepsi'); // An example
// bk_addPageCtx('brand_name','{{brand name}}'); // An example (using GTM vars)
// MD5 hashed email grabber
if(urlP.e_id_m){
bk_addPageCtx('e_id_m', urlP.e_id_m)
BKTAG.doTag(46295, 4);
};
bk_addPageCtx('download', 'true');
};
// Send Data
BKTAG.doTag(46335, 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>
<!-- PepsiCo : Back-up Event Tracking -->
<!-- OPTION 1 : EVENT TAG : BlueKai "//tags.bkrtx.com/js/bk-coretag.js" has already been loaded on the page via another BlueKai Tag you have implemented -->
<!-- Run this code when you the event has happened successfully -->
<!-- Begin BlueKai Tag -->
<script type="text/javascript">
// Surface email address if available
bk_addEmailHash('ENTER_RAW_EMAIL_ADDRESS_HERE'); // this will MD5 and SHA256 hash it before sending to BlueKai
BKTAG.doTag(46295, 4); // Enter the offline container ID here
bk_addPageCtx('contact_page', 'true');
BKTAG.doTag(46335, 4);
</script>
<!-- OPTION 2 : PAGE LOAD TAG : BlueKai "//tags.bkrtx.com/js/bk-coretag.js" has NOT already been loaded on the page -->
<!-- If running in Google Tag Manager use DOM Ready trigger to fire -->
<!-- If coding directly to the page, insert at top of <body> (or as close as you can) -->
<!-- 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;
// Grab Query-String Parameters // grab from urlP["nameofparameter"], e.g. urlP["email_id"]
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]);
// <optional> PHINTS : Declare variables about this page (or user)
// CUSTOM VARS YOU WANT TO DECLARE : Uncomment this to declare specific vars
//bk_addPageCtx('change_to_var_name','{{GTM Var Name}}'); // Key must only use (a-z,A-Z,0-9,_) characters. Value can be anything
// bk_addPageCtx('brand_name','pepsi'); // An example
// bk_addPageCtx('brand_name','{{brand name}}'); // An example (using GTM vars)
// MD5 hashed email grabber
if(urlP.e_id_m){
bk_addPageCtx('e_id_m', urlP.e_id_m)
BKTAG.doTag(46295, 4);
};
bk_addPageCtx('contact_page', 'true');
};
// Send Data
BKTAG.doTag(46335, 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>
<!-- PepsiCo : Back-up Event Tracking -->
<!-- OPTION 1 : EVENT TAG : BlueKai "//tags.bkrtx.com/js/bk-coretag.js" has already been loaded on the page via another BlueKai Tag you have implemented -->
<!-- Run this code when you the event has happened successfully -->
<!-- Begin BlueKai Tag -->
<script type="text/javascript">
// Surface email address if available
bk_addEmailHash('ENTER_RAW_EMAIL_ADDRESS_HERE'); // this will MD5 and SHA256 hash it before sending to BlueKai
BKTAG.doTag(46295, 4); // Enter the offline container ID here
bk_addPageCtx('claim', 'true');
BKTAG.doTag(46335, 4);
</script>
<!-- OPTION 2 : PAGE LOAD TAG : BlueKai "//tags.bkrtx.com/js/bk-coretag.js" has NOT already been loaded on the page -->
<!-- If running in Google Tag Manager use DOM Ready trigger to fire -->
<!-- If coding directly to the page, insert at top of <body> (or as close as you can) -->
<!-- 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;
// Grab Query-String Parameters // grab from urlP["nameofparameter"], e.g. urlP["email_id"]
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]);
// <optional> PHINTS : Declare variables about this page (or user)
// CUSTOM VARS YOU WANT TO DECLARE : Uncomment this to declare specific vars
//bk_addPageCtx('change_to_var_name','{{GTM Var Name}}'); // Key must only use (a-z,A-Z,0-9,_) characters. Value can be anything
// bk_addPageCtx('brand_name','pepsi'); // An example
// bk_addPageCtx('brand_name','{{brand name}}'); // An example (using GTM vars)
// MD5 hashed email grabber
if(urlP.e_id_m){
bk_addPageCtx('e_id_m', urlP.e_id_m)
BKTAG.doTag(46295, 4);
};
bk_addPageCtx('claim', 'true');
};
// Send Data
BKTAG.doTag(46335, 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>
以上是关于html 百事可乐:活动网站的主要内容,如果未能解决你的问题,请参考以下文章
ASM Global可口可乐音乐厅一周年庆,成为全球增长飞快的活动举办场地之一