if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "41448",
"name": "Trek Flare RT 后车灯",
"price": "398.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "34037",
"name": "Trek Commuter Pro RT 前车灯",
"price": "1280.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "34035",
"name": "Trek Commuter Comp R Front Bike Light",
"price": "548.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41444",
"name": "Trek Ion Pro RT 前车灯",
"price": "898.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "27821",
"name": "Bontrager Ion Elite R 前车灯",
"price": "798.0",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "grey",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "30762",
"name": "Bontrager Ion Comp R 前车灯",
"price": "598.0",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "grey",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "41449",
"name": "Trek Ion 200 RT 前车灯",
"price": "398.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "41441",
"name": "Trek Flare R City 后车灯",
"price": "238.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}