if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "36569",
"name": "Trek Race Crew Merino Woolサイクリングソックス",
"price": "3300.0",
"brand": "Trek",
"category": "Men's cycling socks",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "36534",
"name": "トレック Race クルー サイクリング ソックス",
"price": "2080.0",
"brand": "Trek",
"category": "Men's cycling socks",
"variant": "red",
"list": "CATEGORY",
"position": 2
}
,
{
"id": "36533",
"name": "トレック Race クオーター サイクリング ソックス",
"price": "2080.0",
"brand": "Trek",
"category": "Men's cycling socks",
"variant": "red",
"list": "CATEGORY",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}