if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "36715",
"name": "Domane+ SLR 9",
"price": "1800000.0",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36708",
"name": "Domane+ SLR 7",
"price": "1500000.0",
"brand": "Trek",
"category": "Electric road bikes",
"variant": "black_grey",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}