if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "34133",
"name": "Trek Velocis 公路骑行鞋",
"price": "1880.0",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "25000",
"name": "Bontrager XXX 公路骑行鞋",
"price": "2880.0",
"brand": "Bontrager",
"category": "Road bike shoes",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "22483",
"name": "Bontrager Velocis 公路骑行鞋",
"price": "1480.0",
"brand": "Bontrager",
"category": "Road bike shoes",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}