概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "45313",
"name": "Bontrager Aero Pro 公路车把",
"price": "1480.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black_grey",
"list": "More Options",
"position": 1
}
,
{
"id": "45314",
"name": "Bontrager GR Elite IsoZone 砾石路车把",
"price": "688.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "42270",
"name": "Bontrager Comp 公路车把",
"price": "448.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "48049",
"name": "Trek Aero RSL Road 集成车把/把立",
"price": "4680.0",
"brand": "Trek",
"category": "Bike stems & accessories",
"variant": "black_grey",
"list": "More Options",
"position": 4
}
,
{
"id": "13661",
"name": "Madone KVF Aero Integrated Handlebar/Stem",
"price": "4143.0",
"brand": "Trek",
"category": "Bike stems & accessories",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "24975",
"name": "Trek Madone SLR Road Handlebar",
"price": "2288.0",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "41599",
"name": "Bontrager RSL Aero 公路车把横",
"price": "2480.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black_grey",
"list": "More Options",
"position": 7
}
,
{
"id": "32195",
"name": "Bontrager Pro IsoCore VR-SF 公路车车把",
"price": "2280.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "32645",
"name": "Bontrager Pro VR-C 公路车把",
"price": "1190.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black_greydark",
"list": "More Options",
"position": 9
}
,
{
"id": "34938",
"name": "Bontrager GR Elite 公路车把",
"price": "688.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 10
}
,
{
"id": "32192",
"name": "Bontrager XXX VR-C Road 车把",
"price": "2280.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "greydark",
"list": "More Options",
"position": 11
}
]
}
});
} else {
console.log("dataLayer");
}