概要
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "41674",
"name": "Trek Blendrサドルバッグ",
"price": "9900.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "44844",
"name": "Trek Blendr Saddle Bag Mount",
"price": "2200.0",
"brand": "Trek",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "35560",
"name": "ボントレガー アドベンチャー サドル バッグ",
"price": "21900.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "30760",
"name": "Bontrager Flat Pack",
"price": "8500.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "14411",
"name": "ボントレガー Eliteサドルバッグ",
"price": "3900.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "yellowvisibility",
"list": "More Options",
"position": 5
}
,
{
"id": "14396",
"name": "ボントレガー Compサドルバッグ",
"price": "2625.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}