概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "37985",
"name": "Bontrager Aeolus RSL TLR 公路车轮胎",
"price": "738.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black_tan",
"list": "More Options",
"position": 1
}
,
{
"id": "48770",
"name": "Pirelli P Zero TLR RS 公路自行车轮胎",
"price": "788.0",
"brand": "Pirelli",
"category": "Bike tires",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "23397",
"name": "Bontrager R4 Classics Hard-Case Lite 公路轮胎",
"price": "698.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black_tan",
"list": "More Options",
"position": 3
}
,
{
"id": "12300",
"name": "Bontrager R4 320 手工公路开口胎",
"price": "698.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black_tan",
"list": "More Options",
"position": 4
}
,
{
"id": "25926",
"name": "Bontrager R3 Hard-Case Lite TLR 公路轮胎",
"price": "398.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "36071",
"name": "Bontrager AW3 Hard-Case Lite 反光公路车轮胎",
"price": "358.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black_reflective",
"list": "More Options",
"position": 6
}
,
{
"id": "32162",
"name": "Bontrager AW3 Hard-Case Lite 公路轮胎",
"price": "348.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "More Options",
"position": 7
}
,
{
"id": "27590",
"name": "Bontrager R3 Hard-Case Lite 公路轮胎",
"price": "298.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "11024",
"name": "Bontrager AW1 Hard-Case 公路轮胎",
"price": "218.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "27392",
"name": "Bontrager R2 Hard-Case Lite 公路轮胎",
"price": "218.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "More Options",
"position": 10
}
,
{
"id": "38201",
"name": "Pirelli P ZERO Race 公路轮胎",
"price": "618.0",
"brand": "Pirelli",
"category": "Bike tires",
"variant": "black",
"list": "More Options",
"position": 11
}
,
{
"id": "38202",
"name": "Pirelli P ZERO 公路轮胎",
"price": "438.0",
"brand": "Pirelli",
"category": "Bike tires",
"variant": "black",
"list": "More Options",
"position": 12
}
,
{
"id": "25275",
"name": "Schwalbe G-One Road Tire",
"price": "690.0",
"brand": "Schwalbe",
"category": "Bike tires",
"variant": "black",
"list": "More Options",
"position": 13
}
,
{
"id": "13061",
"name": "Kenda Kontender 26" Tire",
"price": "380.0",
"brand": "Kenda",
"category": "Bike tires",
"variant": "black",
"list": "More Options",
"position": 14
}
]
}
});
} else {
console.log("dataLayer");
}