if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "37294",
"name": "Trek BioDynamic 高足弓骑行鞋垫",
"price": "198.0",
"brand": "Trek",
"category": "Cycling shoe parts & insoles",
"variant": "blue",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "37292",
"name": "Trek BioDynamic 低足弓骑行鞋垫",
"price": "198.0",
"brand": "Trek",
"category": "Cycling shoe parts & insoles",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37293",
"name": "Trek BioDynamic 中足弓骑行鞋垫",
"price": "198.0",
"brand": "Trek",
"category": "Cycling shoe parts & insoles",
"variant": "yellow",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}