if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "47243",
"name": "FX Sport 4",
"price": "270000.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35786",
"name": "FX Sport 5",
"price": "277101.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "35785",
"name": "FX Sport 4",
"price": "211112.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}