概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "41409",
"name": "Trek Line Elite 平脚踏组",
"price": "388.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "green",
"list": "More Options",
"position": 1
}
,
{
"id": "35809",
"name": "Bontrager Line Comp 平板脚踏组",
"price": "238.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "orange",
"list": "More Options",
"position": 2
}
,
{
"id": "41410",
"name": "Trek Line Pro 平脚踏组",
"price": "648.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "orange",
"list": "More Options",
"position": 3
}
,
{
"id": "22372",
"name": "Bontrager Commuter 脚踏组",
"price": "628.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "23423",
"name": "Bontrager Line Elite 山地脚踏系列",
"price": "388.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "44426",
"name": "Trek Line Comp 平脚踏组",
"price": "238.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "orange",
"list": "More Options",
"position": 6
}
,
{
"id": "32568",
"name": "VP Components VP-536 Nylon Pedal Set",
"price": "150.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "teal",
"list": "More Options",
"position": 7
}
,
{
"id": "45142",
"name": "Trek Line Pro/Elite Pedal Axle Rebuild Kit",
"price": "148.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "grey",
"list": "More Options",
"position": 8
}
,
{
"id": "44499",
"name": "VP Components VP-536 Nylon Polymer Bearing Pedal Set",
"price": "100.0",
"brand": "VP Components",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "45144",
"name": "Trek Line Elite Pedal Pin Kit",
"price": "88.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 10
}
,
{
"id": "30971",
"name": "Trek Kids' Platform Large Pedal Set",
"price": "80.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "orange",
"list": "More Options",
"position": 11
}
,
{
"id": "30977",
"name": "Trek Kids' Platform Small Pedal Set",
"price": "80.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "red",
"list": "More Options",
"position": 12
}
,
{
"id": "10861",
"name": "Trek Kids Dialed Pedal Set",
"price": "67.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "white",
"list": "More Options",
"position": 13
}
,
{
"id": "14345",
"name": "Bontrager Line Pro Pedal Axle Rebuild Kit",
"price": "210.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "grey",
"list": "More Options",
"position": 14
}
,
{
"id": "26735",
"name": "Bontrager Line Pro Pedal Pin Kit",
"price": "130.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "grey",
"list": "More Options",
"position": 15
}
,
{
"id": "35291",
"name": "Bontrager 城市车脚踏系列",
"price": "128.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 16
}
]
}
});
} else {
console.log("dataLayer");
}