概要
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "36057",
"name": "Trek Circuit Softshellビブタイツ",
"price": "15920.0",
"brand": "Trek",
"category": "Men's cycling tights & pants",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "36058",
"name": "トレック Circuit サーマル サイクリング ビブタイツ",
"price": "13230.0",
"brand": "Trek",
"category": "Men's cycling tights & pants",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "36059",
"name": "トレック Circuit サーマル サイクリングタイツ(パッド無し)",
"price": "8330.0",
"brand": "Trek",
"category": "Men's cycling tights & pants",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "24709",
"name": "ボントレガー Velocis ソフトシェル サイクリング ビブタイツ",
"price": "22330.0",
"brand": "Bontrager",
"category": "Cycling tights & pants",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "24708",
"name": "ボントレガー Velocis ソフトシェル サイクリングタイツ(パッド無し)",
"price": "11396.0",
"brand": "Bontrager",
"category": "Cycling tights & pants",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}