if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "36155",
"name": "第四代 Domane SL 7 AXS",
"price": "50800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36149",
"name": "第四代 Domane SL 5",
"price": "23800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "33082",
"name": "第三代 Domane AL 3",
"price": "7380.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue_black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}