if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "33380",
"name": "Trek Domane+ Front Bike Light Assembly",
"price": "1730.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "27116",
"name": "Bontrager Lync Flare Rear Wire Light Harness",
"price": "45.0",
"brand": "Trek",
"category": "Bike lights",
"variant": "black_red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "25371",
"name": "Bontrager USB 快速充电线",
"price": "42.0",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "37981",
"name": "Bontrager Lights USB Type-C Charge Cable",
"price": "30.0",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "31843",
"name": "Bontrager 2020 E-bike Forklight Parts",
"price": "20.0",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black_greydark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "21756",
"name": "Supernova Light Parts",
"price": "390.0",
"brand": "SUPERNOVA",
"category": "Bike lights",
"variant": "white",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "32174",
"name": "Supernova M99 Y Cable Magura MTe Rear Bike Light Part",
"price": "360.0",
"brand": "SUPERNOVA",
"category": "Bike lights",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "29079",
"name": "Supernova M99 to Bontrager Elite Light Faceplate Bolt",
"price": "30.0",
"brand": "SUPERNOVA",
"category": "Bike lights",
"variant": "greylight",
"list": "CATEGORY",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}