if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "40145",
"name": "トレック Fetch+ 2 フェンダーセット",
"price": "15700.0",
"brand": "Trek",
"category": "Bike fenders & accessories",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "45259",
"name": "Trek Fetch+ 2 Front Pannier Rack",
"price": "14200.0",
"brand": "Trek",
"category": "Bike racks",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}