if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "40642",
"name": "Trek Bicycle Co 5 Panel Hat",
"price": "3150.0",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "bluedark",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "41980",
"name": "Trek Oh Deer Beanie",
"price": "2900.0",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "41982",
"name": "Trek Fraser Fir Beanie",
"price": "2900.0",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "greendark",
"list": "CATEGORY",
"position": 3
}
,
{
"id": "41983",
"name": "Trek Label Fisherman Beanie",
"price": "2900.0",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "red",
"list": "CATEGORY",
"position": 4
}
,
{
"id": "41981",
"name": "Trek Sunset Script Beanie",
"price": "2900.0",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "bluedark",
"list": "CATEGORY",
"position": 5
}
,
{
"id": "37335",
"name": "トレック Diamond Patch ハット",
"price": "1900.0",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "bluedark",
"list": "CATEGORY",
"position": 6
}
,
{
"id": "37341",
"name": "トレック Holiday Pom ビーニー",
"price": "1500.0",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "greendark",
"list": "CATEGORY",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}