概述
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CNY",
"impressions": [
{
"id": "13497",
"name": "Trek TAB Belt Drive 9 Spline Cog",
"price": "360.0",
"brand": "Trek",
"category": "Bike cassettes & freewheels",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "26194",
"name": "Trek TAB Belt Drive IGH Cog",
"price": "287.0",
"brand": "Trek",
"category": "Bike cassettes & freewheels",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "26192",
"name": "Gates Carbon Drive SureFoot 3-Lobe Rear Cog",
"price": "1400.0",
"brand": "Gates",
"category": "Bike cassettes & freewheels",
"variant": "greylight",
"list": "More Options",
"position": 3
}
,
{
"id": "37954",
"name": "Gates Belt Drive Cogs Enviolo / Nuvinci",
"price": "1160.0",
"brand": "Gates",
"category": "Bike cassettes & freewheels",
"variant": "grey",
"list": "More Options",
"position": 4
}
,
{
"id": "11007",
"name": "Gates Carbon Drive CDX CenterTrack Rear Cog",
"price": "1140.0",
"brand": "Gates",
"category": "Bike cassettes & freewheels",
"variant": "greylight",
"list": "More Options",
"position": 5
}
,
{
"id": "09980",
"name": "Gates Belt Drive Cog",
"price": "1100.0",
"brand": "Gates",
"category": "Bike cassettes & freewheels",
"variant": "greylight",
"list": "More Options",
"position": 6
}
,
{
"id": "45323",
"name": "microSHIFT ADVENT H-Series CS-H093 9-Speed Cassette",
"price": "268.0",
"brand": "microSHIFT",
"category": "Bike cassettes & freewheels",
"variant": "black",
"list": "More Options",
"position": 7
}
,
{
"id": "26193",
"name": "SunRace MFE608 8-Speed Freewheel",
"price": "267.0",
"brand": "SunRace",
"category": "Bike cassettes & freewheels",
"variant": "grey",
"list": "More Options",
"position": 8
}
,
{
"id": "12087",
"name": "SunRace MFE909 9-Speed Freewheel",
"price": "267.0",
"brand": "SunRace",
"category": "Bike cassettes & freewheels",
"variant": "grey",
"list": "More Options",
"position": 9
}
,
{
"id": "45324",
"name": "microSHIFT Acolyte H-Series CS-H083 8-Speed Cassette",
"price": "248.0",
"brand": "microSHIFT",
"category": "Bike cassettes & freewheels",
"variant": "black",
"list": "More Options",
"position": 10
}
,
{
"id": "37871",
"name": "SunRun FW-7I 7-Speed Freewheel",
"price": "130.0",
"brand": "SunRun",
"category": "Bike cassettes & freewheels",
"variant": "brown",
"list": "More Options",
"position": 11
}
,
{
"id": "37872",
"name": "SunRun FW-6I 6-Speed Freewheel",
"price": "120.0",
"brand": "SunRun",
"category": "Bike cassettes & freewheels",
"variant": "brown",
"list": "More Options",
"position": 12
}
]
}
});
} else {
console.log("dataLayer");
}