if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "35786",
"name": "FX Sport 5",
"price": "307890.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "bluedark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "35003",
"name": "FX 2 Disc",
"price": "80091.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "32769",
"name": "FX 1",
"price": "57200.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35785",
"name": "FX Sport 4",
"price": "263890.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "greendark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "35021",
"name": "FX 3 Disc",
"price": "109890.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "white",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "35002",
"name": "FX 1 Disc Stagger",
"price": "74690.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "35001",
"name": "FX 1 Disc",
"price": "67221.0",
"brand": "Trek",
"category": "Fitness bikes",
"variant": "black",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}