if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "35487",
"name": "Émonda SLR 7",
"price": "1032147.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35022",
"name": "Émonda SLR 6 AXS",
"price": "727650.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}