if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "57334",
"name": "Supercaliber SLR 9.8 X0 Flight Attendant Gen 2",
"price": "88800.0",
"brand": "Trek",
"category": "Cross Country mountain bikes",
"variant": "reddark",
"list": "PRODUCTSEARCH",
"position": 1
}
,
{
"id": "12319",
"name": "Bontrager DuoTrap S 数字传感器",
"price": "358.0",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 2
}
,
{
"id": "36285",
"name": "Bontrager Blendr Low Commuter Light Mount",
"price": "88.0",
"brand": "Bontrager",
"category": "Bike stems & accessories",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 3
}
,
{
"id": "34495",
"name": "Bontrager XR1 Team Issue TLR 山地外胎",
"price": "388.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 4
}
,
{
"id": "37803",
"name": "Bontrager Pro Blendr Knock Block 码表支架",
"price": "318.0",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "PRODUCTSEARCH",
"position": 5
}
,
{
"id": "47997",
"name": "Boone Disc 车架",
"price": "24000.0",
"brand": "Trek",
"category": "Cyclocross bikes",
"variant": "greenlight_pink",
"list": "PRODUCTSEARCH",
"position": 6
}
,
{
"id": "41655",
"name": "Boone 5",
"price": "31800.0",
"brand": "Trek",
"category": "Cyclocross bikes",
"variant": "greylight",
"list": "PRODUCTSEARCH",
"position": 7
}
,
{
"id": "49168",
"name": "Madone SLR 8 AXS Gen 8",
"price": "75800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white_blue",
"list": "PRODUCTSEARCH",
"position": 8
}
,
{
"id": "46688",
"name": "Madone SLR 7 AXS Gen 8",
"price": "71800.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "white_blue",
"list": "PRODUCTSEARCH",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}