概要
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "30734",
"name": "Trek Madone 9 Series Brake Stop with Num Holder",
"price": "3483.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "22441",
"name": "トレック Road Brake/Di2 Housing Stop",
"price": "2100.0",
"brand": "Trek",
"category": "Electronic drivetrain",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "30731",
"name": "Trek Madone 9 Series Brake Stop",
"price": "1874.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "01552",
"name": "Bontrager V-Brake Noodle Cable Guide 90 Degree",
"price": "300.0",
"brand": "Bontrager",
"category": "Bike brakes, pads, & levers",
"variant": "greylight",
"list": "More Options",
"position": 4
}
,
{
"id": "25798",
"name": "ボントレガー V-Brake ラバーブーツ",
"price": "300.0",
"brand": "Bontrager",
"category": "Bike brakes, pads, & levers",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}