if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "30729",
"name": "Trek Madone 9 系列水瓶螺栓",
"price": "20.0",
"brand": "Trek",
"category": "Bike frame parts",
"variant": "grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37401",
"name": "Trek 2022 Rail Carbon 29 Bottle Cage S/M Lower Fastener",
"price": "10.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41872",
"name": "Trek M5x0.8 Water Bottle Cage Bolts Hex Socket",
"price": "8.0",
"brand": "Trek",
"category": "Bike water bottles & cages",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}