概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "30897",
"name": "Bontrager Speed Stop Pro 直接安装式刹车钳",
"price": "2080.0",
"brand": "Bontrager",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "24977",
"name": "Trek Madone SLR Brakes",
"price": "1900.0",
"brand": "Trek",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "13656",
"name": "Trek Madone 9 Aero Integrated Brake",
"price": "1494.0",
"brand": "Trek",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "13070",
"name": "Bontrager Speed Stop 集成式制动器",
"price": "1005.0",
"brand": "Bontrager",
"category": "Bike brakes, pads, & levers",
"variant": "black_greydark",
"list": "More Options",
"position": 4
}
,
{
"id": "12287",
"name": "Trek Speed Concept 刹车",
"price": "921.0",
"brand": "Trek",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "14028",
"name": "Electra Replacement Loft Brakes",
"price": "240.0",
"brand": "Lee Chi",
"category": "Bike brakes, pads, & levers",
"variant": "greylight",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}