if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "44093",
"name": "Trek Velocis Mips 亚洲版头盔",
"price": "2080.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "purplelight",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "44661",
"name": "Trek Ballista Mips 亚洲版公路自行车头盔",
"price": "2380.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "purplelight",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "44115",
"name": "亚洲版 Trek Solstice Mips 自行车头盔",
"price": "558.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "34588",
"name": "Trek Velocis Mips 公路自行车头盔",
"price": "2080.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "21724",
"name": "亚洲版 Bontrager Velocis Mips 公路自行车头盔",
"price": "1680.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "red",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}