Demo entry 6166066

Bq datalayer

   

Submitted by anonymous on Oct 07, 2016 at 16:20
Language: JavaScript. Code size: 12.5 kB.

//Homepage Loggedin
utag_data=[{
	
	//Basic page information
	basicStoreSelected : "Greenwich", 
	basicLoggedIn : "Yes",
	basicPageId : "011011",
	basicPageName: "Home",
	basicPageType:"Home",
	basicPagePublishDate: "01/01/16",
	basicPreviousPageId: "5454",
	basicPreviousPageName: "Shop:Outdoor & Garden:Paving & Decking:Decking:Sub Category Lister Page",
	basicPreviousPageURL: "http://www.diy.com/departments/outdoor-garden/decking/DIY581229.cat",

	//User Information. Leave empty if not logged in.
	userCity: "London",
	userState: "Greater London",
	userCountry: "UK",
	userCompany: "ABC Builders",
	userId: "454546",
	userPostCode: "SE1",

	//Promo impressions
	promoId : ["promo1","promo2", "promo3"],
	promoName :  ["Flooring", "Sliding Wardrove","Interior Paint"],
	promoCreative : ["SaleCTA_3","DealOfDay_984","Clearance1"],
	promoPosition : ["1","2","3"]
}]


//Category Page
utag_data=[{
	
	//Basic page information
	basicStoreSelected: "Greenwich", 
	basicLoggedIn: "Yes",
	basicPageId: "5554",
	basicPageName: "Shop:Bedroom:Kids Decor:Category",
	basicPageType:"Category",
	basicPagePublishDate: "05/01/16",
	basicPreviousPageId: "011011",
	basicPreviousPageName: "Home",
	basicPreviousPageURL: "http://www.diy.com/",

	//User Information. Leave empty if not logged in.
	userCity: "London",
	userState: "Greater London",
	userCountry: "UK",
	userCompany: "ABC Builders",
	userId: "454546",
	userPostCode: "SE1",

	//Category
	categoryIdPage: "DIY822705",
	categoryName: "Kids Decor",
	categoryParentId: "DIY822420",
	categoryTrail: "Shop > Bedroom> Kids Decor ",
	categoryParentName: "Bedroom",

	//Search
	searchTerm: ""

}]

//Category Page result of a redirect
utag_data=[{
	
	//Basic page information
	basicStoreSelected: "Greenwich", 
	basicLoggedIn: "Yes",
	basicPageId: "554",
	basicPageName: "Shop:Tools & Equipment:Ladder & Steps ",
	basicPageType:"Category",
	basicPagePublishDate: "05/01/16",
	basicPreviousPageId: "0110541",
	basicPreviousPageName: "Home",
	basicPreviousPageURL: "http://www.diy.com/",

	//User Information. Leave empty if not logged in.
	userCity: "London",
	userState: "Greater London",
	userCountry: "UK",
	userCompany: "ABC Builders",
	userId: "454546",
	userPostCode: "SE1",

	//Category
	categoryIdPage: "DIY637114",
	categoryName: "Ladder & Steps",
	categoryParentId: "DIY822420",
	categoryTrail: "Shop > Tools & Equipment > Ladder & Steps ",
	categoryParentName: "Tools & Equipment",

	//Search
	searchTerm: "ladder"

}]

//PLP
utag_data=[{
	
	//Basic page information
	basicStoreSelected: "Greenwich", 
	basicLoggedIn: "Yes",
	basicPageId: "25465",
	basicPageName: "Shop:Home & Bedroom:Kids Decor:Star Wars Decor:Sub Category Lister Page",
	basicPageType:"PLP",
	basicPagePublishDate: "20/02/16",
	basicPreviousPageId: "5554",
	basicPreviousPageName: "Shop:Bedroom:Kids Decor:Category",
	basicPreviousPageURL: "http://www.diy.com/rooms/bedroom/kids-decor/DIY822705.cat",

	//User Information. Leave empty if not logged in.
	userCity: "London",
	userState: "Greater London",
	userCountry: "UK",
	userCompany: "ABC Builders",
	userId: "454546",
	userPostCode: "SE1",

	//Lister Information
	listerResultName: "cat2191316",
	listerSortBy: "Relevance",
	listerPage: "1",
	listerShowResults: "12",

	//Facet
	facetLastRefinementValue: "",
	facetLastRefinement: "",
	facetRefinementTrail: "",
	facetNumberRefinements: "",

	//Search
	searchTerm: ""


})]


	

//PDP
utag_data=[{
	
	//Basic page information
	basicStoreSelected: "Greenwich", 
	basicLoggedIn: "Yes",
	basicPageId: "25465",
	basicPageName: "Shop:Home & Bedroom:Kids Decor:Star Wars Decor:Sub Category Lister Page",
	basicPageType:"PLP",
	basicPagePublishDate: "20/02/16",
	basicPreviousPageId: "5554",
	basicPreviousPageName: "Shop:Bedroom:Kids Decor:Category",
	basicPreviousPageURL: "http://www.diy.com/rooms/bedroom/kids-decor/DIY822705.cat",

	//User Information. Leave empty if not logged in.
	userCity: "London",
	userState: "Greater London",
	userCountry: "UK",
	userCompany: "ABC Builders",
	userId: "454546",
	userPostCode: "SE1",

	//Product Information
	prodSku: ["5060322091976"],
	prodName: ["Minion Made Character Yellow Cushion"],
	prodBrand: [""],
	prodCategory: ["Minions Decor"],
	prodPrice: ["8"],
	prodCategoryID: ["cat2191319"],
	prodSkuAvailabilityDelivery: ["Yes"],
	prodSkuAvailabilityCollection: ["Yes"],
	prodDealType: [""],

	//Search Term result of a search redirect
	searchTerm: ""
}]

//PDP result of a redirect
utag_data=[{
	
	//Basic page information
	basicStoreSelected: "Greenwich", 
	basicLoggedIn: "Yes",
	basicPageId: "25465",
	basicPageName: "Shop:Home & Bedroom:Kids Decor:Star Wars Decor:Sub Category Lister Page",
	basicPageType:"PLP",
	basicPagePublishDate: "20/02/16",
	basicPreviousPageId: "5554",
	basicPreviousPageName: "Shop:Bedroom:Kids Decor:Category",
	basicPreviousPageURL: "http://www.diy.com/rooms/bedroom/kids-decor/DIY822705.cat",

	//User Information. Leave empty if not logged in.
	userCity: "London",
	userState: "Greater London",
	userCountry: "UK",
	userCompany: "ABC Builders",
	userId: "454546",
	userPostCode: "SE1",

	//Product Information
	prodSku: ["5410905236605"],
	prodName: ["MDecofun Hello Kitty Multicolour Adhesive"],
	prodBrand: [""],
	prodCategory: ["Children's wallpaper and stickers"],
	prodPrice: ["1"],
	prodCategoryID: ["DIY822713"],
	prodSkuAvailabilityDelivery: ["Yes"],
	prodSkuAvailabilityCollection: ["Yes"],
	prodDealType: ["Clearance"],

	//Search Term result of a search redirect
	searchTerm: "5410905236605"
}]

//Checkout
utag_data=[{
	
	//Basic page information
	basicStoreSelected: "Greenwich", 
	basicLoggedIn: "Yes",
	basicPageId: "4564",
	basicPageName: "Checkout: Details",
	basicPageType:"Checkout",
	basicPagePublishDate: "22/02/16",
	basicPreviousPageId: "5554",
	basicPreviousPageName: "Shop:Bedroom:Kids Decor:Category",
	basicPreviousPageURL: "http://www.diy.com/rooms/bedroom/kids-decor/DIY822705.cat",

	//User Information. Leave empty if not logged in.
	userCity: "London",
	userState: "Greater London",
	userCountry: "UK",
	userCompany: "ABC Builders",
	userId: "454546",
	userPostCode: "SE1",


	//Product Information
	prodSku : ["5410905236605","5021703505222"],
	prodName : ["DECOFUN HELLO KITTY MULTICOLOUR ","ILLUMI-MATE STAR WARS BLUE NIGHT LIGHT"],
	prodBrand : ["DECOFUN", "ILLUMI-MATE"],
	prodCategory : ["Kid's decoration", "Kid's Lightning"],
	prodPrice : ["1","8"],
	prodCategoryID : ["DIY822713","DIY822495"],
	prodQuantity : ["1", "1"],
	prodFulfilmentType : ["Delivery", "C&C"],
	prodDealType : ["Clearance", ""],
	checkoutStep: "1"
}]

//Search Results
utag_data=[{

	//Basic page information
	basicStoreSelected: "Greenwich", 
	basicLoggedIn: "Yes",
	basicPageId: "7777",
	basicPageName: "Search: Hello Kitty",
	basicPageType:"SRP",
	basicPagePublishDate: "20/02/16",
	basicPreviousPageId: "5554",
	basicPreviousPageName: "Shop:Bedroom:Kids Decor:Category",
	basicPreviousPageURL: "http://www.diy.com/rooms/bedroom/kids-decor/DIY822705.cat",

	//User Information. Leave empty if not logged in.
	userCity: "London",
	userState: "Greater London",
	userCountry: "UK",
	userCompany: "ABC Builders",
	userId: "454546",
	userPostCode: "SE1",

	//Lister Information
	listerResultName: "Hello Kitty",
	listerSortBy: "Relevance",
	listerPage: "1",
	listerShowResults: "All",

	//Search Results Information
	searchCount: "8",
	searchTerm: "Hello Kitty",
	searchCountArticles: "0",

	//Facet
	facetLastRefinementValue: "",
	facetLastRefinement: "",
	facetRefinementTrail: "",
	facetNumberRefinements: "",

	//Product Impressions
	impProdSku: ["5410905236605", "5410905422602", "5021703503501"],
	impProdName: ["Decofun Hello Kitty Multicolour Self Adhesive Wall Stickers", "Decofun Hello Kitty Pink & White Border", "Hello Kitty Pink Clip-On Bed Light"],
	impProdList: ["SRP", "SRP", "SRP"],
	impProdBrand: ["", "", ""],
	impProdCategory: ["Children's Wallpaper", "Children's Wallpaper", "Children's Bedroom Light"],
	impProdPosition: ["1", "2", "3"],
	impProdPrice: ["1", "2.50", "8"],
	impProdCategoryId:["DIY822713", "DIY822713", "DIY822495"]
}]

//Compare
utag_data=[{

	//Basic page information
	basicStoreSelected: "Greenwich", 
	basicLoggedIn: "Yes",
	basicPageId: "7777",
	basicPageName: "Search: Hello Kitty",
	basicPageType:"SRP",
	basicPagePublishDate: "20/02/16",
	basicPreviousPageId: "5554",
	basicPreviousPageName: "Shop:Bedroom:Kids Decor:Category",
	basicPreviousPageURL: "http://www.diy.com/rooms/bedroom/kids-decor/DIY822705.cat",

	//User Information. Leave empty if not logged in.
	userCity: "London",
	userState: "Greater London",
	userCountry: "UK",
	userCompany: "ABC Builders",
	userId: "454546",
	userPostCode: "SE1",

	//Comparire Information
	listerResultNameCompare: "DIY579438",
	
	//Product Impressions
	impProdSku: ["5021703503853", "5021703503846"],
	impProdName: ["Illumi-Mate Minion Stuart Yellow Night Light", "Illumi-Mate Minions Dave Yellow Night Light"],
	impProdList: ["Compare", "Compare"],
	impProdBrand: ["", ""],
	impProdCategory: ["Children's Lights", "Children's Lights"],
	impProdPosition: ["1", "2"],
	impProdPrice: ["6", "6"],
	impProdCategoryId:["DIY579438", "DIY579438"]

}]


//Refinement SRP
utag.view({
		//Lister Information
	listerResultName: "Hello Kitty",
	listerSortBy: "Relevance",
	listerPage: "1",
	listerShowResults: "All",

	//Search Results Information
	searchCount: "1",
	searchTerm: "Hello Kitty"
	searchCountArticles: "0",

	//Facet
	facetLastRefinementValue: "Pink",
	facetLastRefinement: "Colour",
	facetRefinementTrail: "Availability > Colour",
	facetNumberRefinements: "2",

	//Product Impressions
	impProdSku: ["5021703503532"],
	impProdName: ["Hello Kitty Pink Printed Shade"],
	impProdList: ["SRP"],
	impProdBrand: [""],
	impProdCategory: ["Bedroom Light Shades"],
	impProdPosition: ["1"],
	impProdPrice: ["3"],
	impProdCategoryId:["DIY1230534"],

	//VPV
	vpv: "/search/results/vpv/refinement/"
})

//Refinement PDP

utag.view({
		//Lister Information
	listerResultName: "cat2350437",
	listerSortBy: "Relevance",
	listerPage: "1",
	listerShowResults: "All",

	//Search Term only on PLP result of a search redirect
	searchTerm: ""

	//Facet
	facetLastRefinementValue: "White",
	facetLastRefinement: "Colour",
	facetRefinementTrail: "Price > Colour",
	facetNumberRefinements: "2",

	//Product Impressions
	impProdSku: ["5021703503532"],
	impProdName: ["Colours Day & Night White Roller"],
	impProdList: ["PLP"],
	impProdBrand: [""],
	impProdCategory: ["Day & Night Blinds"],
	impProdPosition: ["1"],
	impProdPrice: ["40"],
	impProdCategoryId:["cat2350437"],

	//VPV
	vpv: "departments/home-furnishing/curtains-blinds-shutters/day-night-blinds/cat2350437/vpv/refinement/"
})


//Add to basket
utag.link({

	//Product Information
	prodSku : ["5410905236605"],
	prodName : ["DECOFUN HELLO KITTY MULTICOLOUR "],
	prodBrand : ["DECOFUN"],
	prodCategory : ["Children's Wallpaper and Stickers"],
	prodPrice : ["1"],
	prodCategoryID : ["DIY822713"],
	prodQuantity : ["1"],
	prodFulfilmentType : ["Delivery"],
	prodDealType : ["Clearance"],

	//Event
	eventName: "add"
})


//Remove from basket
utag.link({

	//Product Information
	prodSku : ["5410905236605"],
	prodName : ["DECOFUN HELLO KITTY MULTICOLOUR "],
	prodBrand : ["DECOFUN"],
	prodCategory : ["Children's Wallpaper and Stickers"],
	prodPrice : ["1"],
	prodCategoryID : ["DIY822713"],
	prodQuantity : ["1"],
	prodFulfilmentType : ["Delivery"],
	prodDealType : ["Clearance"],

	//Event
	eventName: "remove"
})



//Product Impression Click
utag.link({
	
	//Product Detail same as impression
	impProdSku: ["5021703503853"],
	impProdName: ["Illumi-Mate Minion Stuart Yellow Night Light"],
	impProdList: ["Compare"],
	impProdBrand: [""],
	impProdCategory: ["Children's Lights"],
	impProdPosition: ["1"],
	impProdPrice: ["6"],
	impProdCategoryId:["DIY579438"],

	//Event 
	eventName: "impressionClick"
})


//Promo click
utag.link({

	//Promo impressions
	promoId : ["promo1"],
	promoName :  ["Flooring"],
	promoCreative : ["SaleCTA_3"],
	promoPosition : ["1"],

	//Event
	eventName: "promoClick"
})

This snippet took 0.02 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).