概要
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "30897",
"name": "ボントレガー Speed Stop Pro Direct Mount ブレーキキャリパー",
"price": "46800.0",
"brand": "Bontrager",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "24977",
"name": "Trek Madone SLR Brakes",
"price": "40900.0",
"brand": "Trek",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "13656",
"name": "トレック Madone 9 Aero Integrated ブレーキ",
"price": "38500.0",
"brand": "Trek",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "13070",
"name": "ボントレガー Speed Stop Integrated ブレーキ",
"price": "26600.0",
"brand": "Bontrager",
"category": "Bike brakes, pads, & levers",
"variant": "black_greydark",
"list": "More Options",
"position": 4
}
,
{
"id": "14028",
"name": "Electra Replacement Loft ブレーキ",
"price": "5000.0",
"brand": "Lee Chi",
"category": "Bike brakes, pads, & levers",
"variant": "greylight",
"list": "More Options",
"position": 5
}
,
{
"id": "10775",
"name": "Lee Chi Long Reach ブレーキキャリパー",
"price": "2700.0",
"brand": "Trek",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}