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(46331, 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(46331, 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>
<!--­ BlueKai Tag : Page Load Tag-->
<!-- Fire on DOM Ready Trigger if using in Google Tag Manager -->
<!-- Otherwise implement as close to top of <body> 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);
	};
	
	// CORE SITE : Flag core site
	bk_addPageCtx('core_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');
	};
	// 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|temas|kontakt|enquêtes|soruşturma|zapytania|consultas|vragen/)){
		bk_addPageCtx('contact_page','true');
	};
	// REGISTER/SIGN IN 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(/regist|kayıt|zarejestrować|sign|işaret|znak|firmar|teken|log|identifier|oturum|Zaloguj|iniciar/)){
		bk_addPageCtx('reg_sign_in_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');
	};
	// PRODUCT 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(/product|produit|ürün|produkt|producto|artikel/)){
		bk_addPageCtx('product_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(/faq|question|sorular|pytania|preguntas|vragen/)){
		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(/disclaimer|zrzeczenie|term|şartlar|warunki|condiciones|dénégation/)){
		bk_addPageCtx('t_and_c_page','true');
	};
	// Send Data 
	BKTAG.doTag(46331, 4); // Ensure {{BlueKai Container ID}} is the name of whatever var you're using in GTM to determine the container ID
};
(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 Form Tracking -->
<!--  Assuming there is a BlueKai CoreTag already on the page and "//tags.bkrtx.com/js/bk-coretag.js" has been loaded -->
<!--  Run this code when you submit a form 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

  // CORE SITE : Flag core site
	bk_addPageCtx('core_site','true');

	// Surface useful data here (uncomment the below code and customise with the data you want to send)
	
	//bk_addPageCtx('NAME_OF_VAR', 'VALUE_OF_VAR'); // You can send lots of pieces of data here
	//bk_addPageCtx('brand', 'pepsi.co.uk'); // Example
	//bk_addPageCtx('form_type', 'competition entry'); // Example
	bk_addPageCtx('event_name', 'form submit'); // Denotes a form submission
	

	BKTAG.doTag(46331, 4); // Enter the container ID here

</script>

以上是关于html 百事可乐:品牌网站的主要内容,如果未能解决你的问题,请参考以下文章

让LOGO玩转响应式设计

eval是啥品牌

百事正用AI种土豆,连削皮算法都搞上了

html 百事可乐:MAPP登陆页面

送你三个漂亮网络科技公司网站模板 响应式设计软件公司网站模板

企业网站选择哪个品牌的通配符SSL证书比较好