概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "36036",
"name": "Trek RSL 针织公路骑行鞋",
"price": "3380.0",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "white_greylight",
"list": "More Options",
"position": 1
}
,
{
"id": "35040",
"name": "Trek RSL 公路骑行鞋",
"price": "2880.0",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "white",
"list": "More Options",
"position": 2
}
,
{
"id": "34133",
"name": "Trek Velocis 公路骑行鞋",
"price": "1880.0",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "red",
"list": "More Options",
"position": 3
}
,
{
"id": "45274",
"name": "Trek Circuit 公路骑行鞋",
"price": "1280.0",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "white",
"list": "More Options",
"position": 4
}
,
{
"id": "45275",
"name": "Trek Circuit Wide 公路骑行鞋",
"price": "1280.0",
"brand": "Trek",
"category": "Road bike shoes",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "25000",
"name": "Bontrager XXX 公路骑行鞋",
"price": "2880.0",
"brand": "Bontrager",
"category": "Road bike shoes",
"variant": "white",
"list": "More Options",
"position": 6
}
,
{
"id": "34132",
"name": "Bontrager Circuit 公路骑行鞋",
"price": "1080.0",
"brand": "Bontrager",
"category": "Road bike shoes",
"variant": "red",
"list": "More Options",
"position": 7
}
,
{
"id": "33678",
"name": "Bontrager Solstice 公路骑行鞋",
"price": "638.0",
"brand": "Bontrager",
"category": "Road bike shoes",
"variant": "black",
"list": "More Options",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}