概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "35061",
"name": "Bontrager TLR Rim Tape",
"price": "288.0",
"brand": "Bontrager",
"category": "Bike rims & accessories",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "31421",
"name": "Bontrager Race X Lite Rim Brake TLR Rim Strip",
"price": "80.0",
"brand": "Bontrager",
"category": "Bike rims & accessories",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "31426",
"name": "Bontrager TLR 轮辋带",
"price": "80.0",
"brand": "Bontrager",
"category": "Bike rims & accessories",
"variant": "white",
"list": "More Options",
"position": 3
}
,
{
"id": "11669",
"name": "Bontrager 高压宽轮圈条",
"price": "50.0",
"brand": "Bontrager",
"category": "Bike rims & accessories",
"variant": "white",
"list": "More Options",
"position": 4
}
,
{
"id": "40481",
"name": "Trek-Diamant Presta Rim Strip",
"price": "60.0",
"brand": "Trek-Diamant",
"category": "Bike rims & accessories",
"variant": "red",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}