if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "33085",
"name": "Domane AL 4 Gen 3",
"price": "189668.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "33083",
"name": "Domane AL 2 Gen 3",
"price": "138501.0",
"brand": "Trek",
"category": "Performance road bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}