概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "41743",
"name": "Trek Circuit 防水冬天骑行手套",
"price": "498.0",
"brand": "Trek",
"category": "Men's cycling gloves",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "41744",
"name": "Trek Circuit Windshell 骑行手套",
"price": "398.0",
"brand": "Trek",
"category": "Men's cycling gloves",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "37098",
"name": "Trek Circuit 全指双凝胶男女通用骑行手套",
"price": "328.0",
"brand": "Trek",
"category": "Full finger cycling gloves",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "41745",
"name": "Trek Circuit 保暖骑行手套",
"price": "288.0",
"brand": "Trek",
"category": "Men's cycling gloves",
"variant": "black",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}