概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "11410",
"name": "Trek Pavement Crankset",
"price": "290.0",
"brand": "Trek",
"category": "Bike cranks & chainrings",
"variant": "greylight",
"list": "More Options",
"position": 1
}
,
{
"id": "34883",
"name": "Trek Kids' Crankset",
"price": "250.0",
"brand": "Trek",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "35529",
"name": "Trek Wheel Top Alloy Kids' Crankset",
"price": "250.0",
"brand": "Trek",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "10058",
"name": "Trek 20 英寸儿童曲柄",
"price": "235.0",
"brand": "Trek",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "10059",
"name": "Trek Dialed 24" Kids' Crankset",
"price": "235.0",
"brand": "Trek",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "10057",
"name": "Trek 16 英寸儿童曲柄",
"price": "235.0",
"brand": "Trek",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "12310",
"name": "Bosch Gen 3 (Mini ISIS) Crank Arm Set",
"price": "631.0",
"brand": "Ride+",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 7
}
,
{
"id": "26247",
"name": "Bosch Gen 2&4 (ISIS) Crank Arm Set with Guard",
"price": "631.0",
"brand": "Ride+",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "26246",
"name": "Bosch Gen 2&4 (ISIS) Crank Arm Set",
"price": "420.0",
"brand": "Ride+",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "28409",
"name": "Bosch Gen 2 & 4 (ISIS) Crank Arm Set",
"price": "420.0",
"brand": "Ride+",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 10
}
,
{
"id": "37658",
"name": "Prowheel PRO-D42P Crankset",
"price": "380.0",
"brand": "Prowheel",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 11
}
,
{
"id": "45291",
"name": "Prowheel Kids' 30T Crank",
"price": "268.0",
"brand": "Prowheel",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 12
}
,
{
"id": "36161",
"name": "Trek-Diamant Wheel Top DCRX1 Double Crankset",
"price": "230.0",
"brand": "Trek-Diamant",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 13
}
,
{
"id": "40461",
"name": "Prowheel ISIS Bosch Gen 2 & 4 Crank Arms",
"price": "220.0",
"brand": "Prowheel",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 14
}
,
{
"id": "35297",
"name": "Trek-Diamant Wheel Top G4XD Triple Crank",
"price": "190.0",
"brand": "Trek-Diamant",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 15
}
]
}
});
} else {
console.log("dataLayer");
}