if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "41607",
"name": "Domane AL 4 Gen 4",
"price": "9980.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33082",
"name": "第三代 Domane AL 3",
"price": "7380.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue_black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41587",
"name": "第四代Domane AL 2",
"price": "6880.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "greydark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "33083",
"name": "第三代 Domane AL 2",
"price": "6280.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "33037",
"name": "Domane AL 2 轮缘",
"price": "4880.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue_black",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}