if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "36986",
"name": "Trek Starvos WaveCel 亚洲版自行车头盔",
"price": "888.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "31204",
"name": "Bontrager Tyro Youth 自行车头盔",
"price": "368.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "pinkvisibility",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "30485",
"name": "Bontrager Tyro 儿童自行车头盔",
"price": "368.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "pinkvisibility",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "42203",
"name": "Trek Tyro Youth 自行车头盔",
"price": "368.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "pinklight_pink",
"list": "CATEGORY",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}