概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "47330",
"name": "Rapha 骑行帽 II",
"price": "310.0",
"brand": "Rapha",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "47331",
"name": "Rapha Trail 6 板帽",
"price": "310.0",
"brand": "Rapha",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "46738",
"name": "Santini Lidl-Trek 车队颁奖帽",
"price": "280.0",
"brand": "Santini",
"category": "Cycling caps & headwear",
"variant": "bluedark_yellow",
"list": "More Options",
"position": 3
}
,
{
"id": "41738",
"name": "Trek Windshell 骑行保暖面罩",
"price": "248.0",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "41739",
"name": "Trek 保暖骑行围脖",
"price": "198.0",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "41736",
"name": "Trek Windshell 骑行无檐帽",
"price": "188.0",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "46743",
"name": "Santini Lidl-Trek 车队骑行颈套",
"price": "188.0",
"brand": "Santini",
"category": "Cycling caps & headwear",
"variant": "bluedark_yellow",
"list": "More Options",
"position": 7
}
,
{
"id": "46737",
"name": "Santini Lidl-Trek 车队车迷版骑行帽",
"price": "180.0",
"brand": "Santini",
"category": "Cycling caps & headwear",
"variant": "bluedark_yellow",
"list": "More Options",
"position": 8
}
,
{
"id": "41238",
"name": "Trek 棉质骑行帽",
"price": "128.0",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "yellowvisibility",
"list": "More Options",
"position": 9
}
,
{
"id": "41735",
"name": "Trek 保暖骑行头带",
"price": "128.0",
"brand": "Trek",
"category": "Cycling caps & headwear",
"variant": "black",
"list": "More Options",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}