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": "24465",
"name": "Bontrager City 货架包",
"price": "628.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35100",
"name": "Bontrager-Electra MIK Stick",
"price": "150.0",
"brand": "Basil",
"category": "Bike bags",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}