if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "35785",
"name": "FX Sport 4",
"price": "14800.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33037",
"name": "Domane AL 2 轮缘",
"price": "4880.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36155",
"name": "第四代 Domane SL 7 AXS",
"price": "50800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}