概要
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "44882",
"name": "e*Thirteen e*Spec Race Carbon Crankarm for Trek E-Caliber",
"price": "79100.0",
"brand": "EThirteen",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "41931",
"name": "FSA Comet 1x Crankset for Trek 2023 Farley 5",
"price": "42400.0",
"brand": "FSA",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "44989",
"name": "FSA Bosch Gen 3 Crank Arms",
"price": "9500.0",
"brand": "FSA",
"category": "Bike cranks & chainrings",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "32172",
"name": "Bosch Gen 3 (Mini ISIS) Crankset",
"price": "2700.0",
"brand": "Trek-Diamant",
"category": "E-bike drivetrain parts",
"variant": "grey",
"list": "More Options",
"position": 4
}
]
}
});
} else {
console.log("dataLayer");
}