if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "41185",
"name": "Trek Speed Concept Flippable Seatpost Head Plug",
"price": "10.0",
"brand": "Trek",
"category": "Bike seatposts & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "44957",
"name": "Bontrager Line 31.6mm Gen 3 Dropper Travel Reducing Spacer",
"price": "8.0",
"brand": "Bontrager",
"category": "Bike seatposts & accessories",
"variant": "white",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "42264",
"name": "Trek-Diamant Ergotec PM-705N 90-110kg Suspension Seatpost",
"price": "2000.0",
"brand": "Trek-Diamant",
"category": "Bike seatposts & accessories",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}