概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "41406",
"name": "Trek Kovee Elite卡式脚踏套装",
"price": "788.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "41407",
"name": "Trek Line Elite卡式脚踏套装",
"price": "888.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "30862",
"name": "Bontrager Elite 公路脚踏系列",
"price": "698.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "22371",
"name": "Bontrager Comp 公路脚踏系列",
"price": "498.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "22370",
"name": "Bontrager Comp 山地脚踏系列",
"price": "628.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "27134",
"name": "Bontrager MTB 自锁脚踏定趾器套装",
"price": "118.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "32999",
"name": "Bontrager 自锁 9 度脚踏定趾器套装",
"price": "118.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "grey",
"list": "More Options",
"position": 7
}
,
{
"id": "45251",
"name": "Trek SPD Pedal Rebuild Kit",
"price": "178.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "grey",
"list": "More Options",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}