概要
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "47355",
"name": "Rapha Core Winterウィメンズ サイクリングビブタイツ",
"price": "23500.0",
"brand": "Rapha",
"category": "Women's cycling tights & pants",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "47342",
"name": "Rapha Core Winterサイクリングビブタイツ",
"price": "23500.0",
"brand": "Rapha",
"category": "Men's cycling tights & pants",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "36057",
"name": "Trek Circuit Softshellビブタイツ",
"price": "19900.0",
"brand": "Trek",
"category": "Men's cycling tights & pants",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "36058",
"name": "トレック Circuit サーマル サイクリング ビブタイツ",
"price": "10395.0",
"brand": "Trek",
"category": "Men's cycling tights & pants",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "36059",
"name": "トレック Circuit サーマル サイクリングタイツ(パッド無し)",
"price": "6545.0",
"brand": "Trek",
"category": "Men's cycling tights & pants",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "24708",
"name": "ボントレガー Velocis ソフトシェル サイクリングタイツ(パッド無し)",
"price": "7900.0",
"brand": "Bontrager",
"category": "Cycling tights & pants",
"variant": "black",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}