html HBO Nordics:BlueKai CoreTag

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了html HBO Nordics:BlueKai CoreTag相关的知识,希望对你有一定的参考价值。

<!--  For use in Google Tag Manager -->
<!--  Trigger on 'History Change' -->
<!--  Ensure you create the relevant variables in GTM based on the data layer -->
<!-- 'BlueKai Container ID' will be provided to you by Oracle but temporarily use '46767' -->

<!--­ 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;

	 // <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','hbo'); // An example	 
	 // bk_addPageCtx('brand_name','{{brand name}}'); // An example	(using GTM vars)

	// loggedInStatus
	if({{loggedInStatus}}){
		bk_addPageCtx('user_logged_in_status','{{loggedInStatus}}');
	};

	// userID
	if({{userID}}){
		bk_addPageCtx('user_id','{{userID}}');
	};

	// region
	if({{region}}){
		bk_addPageCtx('user_region','{{region}}');
	};

	// userMode
	if({{userMode}}){
		bk_addPageCtx('user_mode','{{userMode}}');
	};

	// userStatus
	if({{userStatus}}){
		bk_addPageCtx('user_status','{{userStatus}}');
	};

	// isTrialEligible
	if({{isTrialEligible}}){
		bk_addPageCtx('user_trial_eligible','{{isTrialEligible}}');
	};

	// userGuid
	if({{userGuid}}){
		bk_addPageCtx('user_guid','{{userGuid}}');
	};

	// isTermed
	if({{isTermed}}){
		bk_addPageCtx('user_is_termed','{{isTermed}}');
	};

	// autoRenew
	if({{autoRenew}}){
		bk_addPageCtx('user_auto_renew','{{autoRenew}}');
	};

	// initialTerm
	if({{initialTerm}}){
		bk_addPageCtx('user_initial_term','{{initialTerm}}');
	};

	// renewalTerm
	if({{renewalTerm}}){
		bk_addPageCtx('user_renewal_term','{{renewalTerm}}');
	};

	// price
	if({{price}}){
		bk_addPageCtx('user_price','{{price}}');
	};

	// inTrial
	if({{inTrial}}){
		bk_addPageCtx('user_in_trial','{{inTrial}}');
	};

	// trialPeriodEndDate
	if({{trialPeriodEndDate}}){
		bk_addPageCtx('user_trialperiod_enddate','{{trialPeriodEndDate}}');
	};

	// trialPeriodEndDateDaysUntil
	if({{trialPeriodEndDateDaysUntil}}){
		bk_addPageCtx('user_trialperiod_enddate_daysuntil','{{trialPeriodEndDateDaysUntil}}');
	};

	// isReactivatable
	if({{isReactivatable}}){
		bk_addPageCtx('user_is_reactivatable','{{isReactivatable}}');
	};

	// subscriptionStartDate
	if({{subscriptionStartDate}}){
		bk_addPageCtx('user_subscription_startdate','{{subscriptionStartDate}}');
	};

	// subscriptionStartDateDaysUntil
	if({{subscriptionStartDateDaysUntil}}){
		bk_addPageCtx('user_subscription_startdate_daysuntil','{{subscriptionStartDateDaysUntil}}');
	};

	// termStartDate
	if({{termStartDate}}){
		bk_addPageCtx('user_term_startdate','{{termStartDate}}');
	};

	// termStartDateDaysUntil
	if({{termStartDateDaysUntil}}){
		bk_addPageCtx('user_term_startdate_daysuntil','{{termStartDateDaysUntil}}');
	};

	// termEndDate
	if({{termEndDate}}){
		bk_addPageCtx('user_term_enddate','{{termEndDate}}');
	};

	// termEndDateDaysUntil
	if({{termEndDateDaysUntil}}){
		bk_addPageCtx('user_term_enddate_daysuntil','{{termEndDateDaysUntil}}');
	};

	// nextBillingDate
	if({{nextBillingDate}}){
		bk_addPageCtx('user_next_billingdate','{{nextBillingDate}}');
	};

	// nextBillingDateDaysUntil
	if({{nextBillingDateDaysUntil}}){
		bk_addPageCtx('user_next_billingdate_daysuntil','{{nextBillingDateDaysUntil}}');
	};
	
	// accountCountry
	if({{accountCountry}}){
		bk_addPageCtx('user_account_country','{{accountCountry}}');
	};

	// Send Data 
	BKTAG.doTag({{BlueKai Container ID}}, 4); // Set 'BlueKai Container ID' to relevant container ID for the market you are deploying to

};
(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 HBO Nordics:BlueKai CoreTag的主要内容,如果未能解决你的问题,请参考以下文章

html HBO:媒体标记

html 优化X:BlueKai标签已加载(通过BlueKai激活'标签')

html poste.it:BlueKai标签

html 下一页:自定义BlueKai代码

html BlueKai:标签管理:Phint Grabber

html 基础媒体:BlueKai像素生成器