if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "36267",
"name": "Precaliber 16",
"price": "42000.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pink",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "28291",
"name": "Precaliber 16",
"price": "42000.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "orange",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "28292",
"name": "Precaliber 16",
"price": "41690.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pink",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}