概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "25255",
"name": "Bontrager Standard Schrader Valve 车胎",
"price": "32.0",
"brand": "Bontrager",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "25254",
"name": "Bontrager Standard Presta Valve 车胎",
"price": "32.0",
"brand": "Bontrager",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "25263",
"name": "Bontrager Fat and + Schrader Valve 车胎",
"price": "150.0",
"brand": "Bontrager",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "12252",
"name": "Bontrager Fat + Presta Valve 车胎",
"price": "108.0",
"brand": "Bontrager",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "00930",
"name": "Bontrager Lightweight Presta Valve 车胎",
"price": "68.0",
"brand": "Bontrager",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "25257",
"name": "Bontrager Standard 70 Degree Valve 车胎",
"price": "45.0",
"brand": "Bontrager",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "41676",
"name": "倍耐力 P ZERO SmarTUBE 法式气嘴自行车内胎",
"price": "318.0",
"brand": "Pirelli",
"category": "Bike tubes & tubeless bike tire accessories",
"variant": "yellow",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}