if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "22738",
"name": "Bontrager MIK 多功能货架包",
"price": "998.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "27231",
"name": "Bontrager BackRack MIK",
"price": "298.0",
"brand": "Bontrager",
"category": "Bike racks",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32462",
"name": "Bontrager MIK Rack Under Fender Stay",
"price": "120.0",
"brand": "Bontrager",
"category": "Bike racks",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35100",
"name": "Bontrager-Electra MIK Stick",
"price": "150.0",
"brand": "Basil",
"category": "Bike bags",
"variant": "grey",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "32852",
"name": "Bontrager-Electra MIK 自行车支架载物板",
"price": "218.0",
"brand": "Bontrager-Electra",
"category": "Bike racks",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "32728",
"name": "Bontrager/Electra MIK 骑行包转接板",
"price": "190.0",
"brand": "Bontrager-Electra",
"category": "Bike racks",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}