if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "45259",
"name": "Trek Fetch+ 2 Front Pannier Rack",
"price": "688.0",
"brand": "Trek",
"category": "Bike racks",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "40145",
"name": "Trek Fetch+ 2 挡泥板套件",
"price": "640.0",
"brand": "Trek",
"category": "Bike fenders & accessories",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41674",
"name": "Trek Blendr 车座包",
"price": "488.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35885",
"name": "Bontrager 左侧推入式环保水壶架",
"price": "108.0",
"brand": "Bontrager",
"category": "Bike water bottles & cages",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "24663",
"name": "Bontrager Blendr车座配件支架",
"price": "40.0",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black_grey",
"list": "CATEGORY",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}