概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "35461",
"name": "Bontrager Blendr Adjustable Threadless Stem",
"price": "220.0",
"brand": "Bontrager",
"category": "Blendr integration",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "37801",
"name": "Bontrager Pro Blendr Wahoo 连接装置定位器",
"price": "78.0",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "32593",
"name": "Trek Blendr 到 BarStem 安装螺栓",
"price": "15.0",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "48108",
"name": "Trek Madone Gen 8 Blendr Reflector Hardware Kit",
"price": "8.0",
"brand": "Trek",
"category": "Blendr integration",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "37803",
"name": "Bontrager Pro Blendr Knock Block 码表支架",
"price": "318.0",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "37802",
"name": "Bontrager Pro Blendr 合金码表支架",
"price": "178.0",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "35873",
"name": "Bontrager Pro Blendr Garmin 连接装置定位器",
"price": "48.0",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "More Options",
"position": 7
}
,
{
"id": "12553",
"name": "Bontrager Elite Blendr Faceplate with Supernova Light Mount",
"price": "43.0",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "35422",
"name": "Bontrager Blendr Adjustable Threadless Stem Bolt",
"price": "20.0",
"brand": "Bontrager",
"category": "Blendr integration",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "37804",
"name": "Bontrager Pro Blendr 连接装置定位器螺栓",
"price": "18.0",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "More Options",
"position": 10
}
,
{
"id": "31265",
"name": "Bontrager Stem Plugs",
"price": "40.0",
"brand": "Bontrager",
"category": "Blendr integration",
"variant": "black",
"list": "More Options",
"position": 11
}
]
}
});
} else {
console.log("dataLayer");
}