if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "22373",
"name": "Bontrager Comp 多功能多工具钳",
"price": "108.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "30807",
"name": "Bontrager BITS 集成多工具",
"price": "258.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "07799",
"name": "Bontrager Tire Lever Set",
"price": "18.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41411",
"name": "Trek Pro BITS 多功能工具",
"price": "638.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "44751",
"name": "Trek Elite BITS 多功能工具",
"price": "418.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "48900",
"name": "Trek BITS 集成多工具",
"price": "258.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "48899",
"name": "Trek Comp 多用途工具",
"price": "108.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "26602",
"name": "Bontrager 换挡杆更换工具",
"price": "140.0",
"brand": "Bontrager",
"category": "Bike wheels",
"variant": "black",
"list": "CATEGORY",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}