概要
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "41406",
"name": "トレック Kovee Elite SPDペダル",
"price": "16900.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "41407",
"name": "トレック Line Elite SPDペダル",
"price": "19900.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "41408",
"name": "トレック Kovee Pro SPDペダル",
"price": "21900.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "30862",
"name": "ボントレガー Elite ロードビンディングペダル(Look KÉO互換)",
"price": "16900.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "22371",
"name": "ボントレガー Comp ロードビンディングペダル(Look KÉO互換)",
"price": "12900.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "22370",
"name": "ボントレガー Comp SPDペダル",
"price": "10335.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "27134",
"name": "ボントレガー SPDクリート",
"price": "3100.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 7
}
,
{
"id": "27132",
"name": "ボントレガー Look KÉOクリート (6度)",
"price": "2900.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "red",
"list": "More Options",
"position": 8
}
,
{
"id": "45251",
"name": "Trek SPD Pedal Rebuild Kit",
"price": "6200.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "grey",
"list": "More Options",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}