if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "48648",
"name": "Trek Lidl-Trek Helmet Decal Set",
"price": "58.0",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "28791",
"name": "Bontrager XXX WaveCel Trek-Segafredo 贴纸",
"price": "150.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "black_white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "09577",
"name": "Bontrager 公共安全服务头盔贴纸",
"price": "79.0",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}