if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "44116",
"name": "Trek 亚洲版 Solstice 自行车头盔",
"price": "358.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "44115",
"name": "亚洲版 Trek Solstice Mips 自行车头盔",
"price": "558.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "45105",
"name": "Trek Rally WaveCel 山地车头盔",
"price": "1180.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "17499",
"name": "Bontrager Solstice 亚洲版自行车头盔",
"price": "338.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}