if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "41012",
"name": "Marlin+ 6",
"price": "429000.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41691",
"name": "Rail 5 Gen 3",
"price": "840000.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "blue",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "37428",
"name": "Rail 9.7 Gen 4",
"price": "848887.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "reddark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "35312",
"name": "Rail 5 Gen 2",
"price": "740300.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_greydark",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "37425",
"name": "Rail 5 Gen 3",
"price": "660952.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "grey",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "37423",
"name": "Powerfly FS 4 Gen 3",
"price": "537592.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "red_black",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "37475",
"name": "Powerfly 4 Gen 4",
"price": "445192.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "black_red",
"list": "CATEGORY",
"position": 7
}
,
{
"id": "35314",
"name": "Rail 9.7 Gen 2",
"price": "976800.0",
"brand": "Trek",
"category": "Electric mountain bikes",
"variant": "greydark_black",
"list": "CATEGORY",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}