概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "45036",
"name": "Trek Voda 26oz 水壶",
"price": "88.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "grey_white",
"list": "More Options",
"position": 1
}
,
{
"id": "45034",
"name": "Trek Voda Ice 28oz Water Bottle",
"price": "188.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "white_black",
"list": "More Options",
"position": 2
}
,
{
"id": "37366",
"name": "Trek Voda Ice 20oz Water Bottle",
"price": "178.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "white_black",
"list": "More Options",
"position": 3
}
,
{
"id": "45035",
"name": "Trek Voda Flow 26oz 水壶",
"price": "158.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "white_black",
"list": "More Options",
"position": 4
}
,
{
"id": "37370",
"name": "Trek Voda Flow 21oz 水壶",
"price": "148.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "white_black",
"list": "More Options",
"position": 5
}
,
{
"id": "37375",
"name": "Trek Voda 21oz 水壶",
"price": "78.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "grey_white",
"list": "More Options",
"position": 6
}
,
{
"id": "37382",
"name": "Trek Voda 15oz 水壶",
"price": "78.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "blue_orange",
"list": "More Options",
"position": 7
}
,
{
"id": "46175",
"name": "Trek RSL Aero 水壶和水壶架",
"price": "698.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "white_grey",
"list": "More Options",
"position": 8
}
,
{
"id": "46120",
"name": "Lidl-Trek Team 550 毫升水壶",
"price": "58.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "bluelight_yellowlight",
"list": "More Options",
"position": 9
}
,
{
"id": "41559",
"name": "Trek Speed Concept SLR BTA 26oz Water Bottle Kit",
"price": "1530.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "black",
"list": "More Options",
"position": 10
}
,
{
"id": "47106",
"name": "Trek Speed Concept SLR BTA 26oz. Water Bottle",
"price": "318.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "black",
"list": "More Options",
"position": 11
}
,
{
"id": "38005",
"name": "Trek 2022 Speed Concept SLR Downtube 26oz Water Bottle",
"price": "250.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "black",
"list": "More Options",
"position": 12
}
]
}
});
} else {
console.log("dataLayer");
}