概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "41170",
"name": "Trek Speed Concept Arm Pad Set",
"price": "620.0",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "25852",
"name": "Trek Speed Concept Aerobar Pad Holder Wing",
"price": "235.0",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "25847",
"name": "Trek Speed Concept Aerobar 车把衬垫",
"price": "127.0",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "44556",
"name": "Trek Speed Concept Gen 3 Aerobar Replacement Pads",
"price": "118.0",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "14673",
"name": "Bontrager 空气动力学臂垫套装",
"price": "298.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "14672",
"name": "Bontrager 空气动力学臂垫",
"price": "230.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "25841",
"name": "Bontrager IsoZone 凝胶车把垫套件",
"price": "181.0",
"brand": "Bontrager",
"category": "Bike handlebars",
"variant": "white",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}