概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "36015",
"name": "Bontrager 后安装式可调节撑脚架",
"price": "168.0",
"brand": "Bontrager",
"category": "Bike kickstands",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "36780",
"name": "Bontrager 可调节一体式后置撑脚架",
"price": "168.0",
"brand": "Bontrager",
"category": "Bike kickstands",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "14876",
"name": "Bontrager 后安装式可调节撑脚架",
"price": "168.0",
"brand": "Bontrager",
"category": "Bike kickstands",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "14942",
"name": "Bontrager 可调式支架安装撑脚架",
"price": "98.0",
"brand": "Bontrager",
"category": "Bike kickstands",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "41994",
"name": "Trek Kids' Center Mount 235mm Kickstand",
"price": "90.0",
"brand": "Trek",
"category": "Bike kickstands",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "32536",
"name": "Trek Kids' Center Mount 247mm Kickstand",
"price": "90.0",
"brand": "Trek",
"category": "Bike kickstands",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "45257",
"name": "Trek Fetch+ 2 Kicker Extension Bracket",
"price": "70.0",
"brand": "Trek",
"category": "Bike kickstands",
"variant": "black",
"list": "More Options",
"position": 7
}
,
{
"id": "45258",
"name": "Trek Fetch+ 2 Kicker Bracket Kit",
"price": "70.0",
"brand": "Trek",
"category": "Bike kickstands",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "27633",
"name": "Atran Rex-DV Auto Rear Mounted Kickstand",
"price": "215.0",
"brand": "AtranVelo",
"category": "Bike kickstands",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "29091",
"name": "AtranVelo Rex-HV Dropout Adjustable Kickstand",
"price": "210.0",
"brand": "AtranVelo",
"category": "Bike kickstands",
"variant": "black",
"list": "More Options",
"position": 10
}
,
{
"id": "11234",
"name": "Atran Stylo Adjustable Center Mount Kickstand",
"price": "157.0",
"brand": "AtranVelo",
"category": "Bike kickstands",
"variant": "black",
"list": "More Options",
"position": 11
}
,
{
"id": "36233",
"name": "Bontrager Integrated Rear Kickstand Hardware Kit",
"price": "30.0",
"brand": "Bontrager-Electra",
"category": "Bike kickstands",
"variant": "greylight",
"list": "More Options",
"position": 12
}
]
}
});
} else {
console.log("dataLayer");
}