概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "48049",
"name": "Trek Aero RSL Road 集成车把/把立",
"price": "4680.0",
"brand": "Trek",
"category": "Bike stems & accessories",
"variant": "black_grey",
"list": "More Options",
"position": 1
}
,
{
"id": "13661",
"name": "Madone KVF Aero Integrated Handlebar/Stem",
"price": "4143.0",
"brand": "Trek",
"category": "Bike stems & accessories",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "35019",
"name": "Bontrager RSL 山地把横/把立",
"price": "2980.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "48102",
"name": "Trek Aero RSL Barstem Bearing Top Cover",
"price": "228.0",
"brand": "Trek",
"category": "Bike stems & accessories",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "47609",
"name": "Trek Aero RSL Barstem Bearing Top Cover - Low",
"price": "118.0",
"brand": "Trek",
"category": "Bike stems & accessories",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "48103",
"name": "Trek Aero RSL Barstem Headset Spacers",
"price": "28.0",
"brand": "Trek",
"category": "Bike headsets",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "41756",
"name": "Trek Madone SLR Gen 7 Barstem",
"price": "4680.0",
"brand": "Trek",
"category": "Bike stems & accessories",
"variant": "black_grey",
"list": "More Options",
"position": 7
}
,
{
"id": "34815",
"name": "Trek Aeolus BarStem Routing Cover",
"price": "550.0",
"brand": "Trek",
"category": "Bike stems & accessories",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "42042",
"name": "Trek 2023 Madone SLR Gen 7 Integrated Barstem Bearing Top Cap",
"price": "40.0",
"brand": "Trek",
"category": "Bike stems & accessories",
"variant": "black_greydark",
"list": "More Options",
"position": 9
}
,
{
"id": "44564",
"name": "Bontrager Aeolus RSL VR-C 车把/竖管组合",
"price": "3980.0",
"brand": "Bontrager",
"category": "Bike stems & accessories",
"variant": "greydark",
"list": "More Options",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}