if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "59667",
"name": "Madone SLR Gen 8 车架组",
"price": "42800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white_blue",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "81614",
"name": "Domane SLR 碟刹第 Gen 5 车架组",
"price": "32800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35671",
"name": "Speed Concept SLR 车架组",
"price": "40000.0",
"brand": "Trek",
"category": "Triathlon bikes",
"variant": "grey_black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35746",
"name": "Speed Concept TT 车架",
"price": "40000.0",
"brand": "Trek",
"category": "Triathlon bikes",
"variant": "grey_black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "46775",
"name": "Madone SLR Gen 8 车架组",
"price": "36800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "47997",
"name": "Boone Disc 车架",
"price": "21000.0",
"brand": "Trek",
"category": "Cyclocross bikes",
"variant": "greenlight_pink",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "37302",
"name": "Domane SL Gen 4 车架组",
"price": "16800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "46766",
"name": "第 8 代 Madone SL 车架组",
"price": "16800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "red",
"list": "CATEGORY",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}