概要
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": "More Options",
"position": 1
}
,
{
"id": "47321",
"name": "Rapha Pro Teamサイクリングソックス",
"price": "3300.0",
"brand": "Rapha",
"category": "Men's cycling socks",
"variant": "bluedark_grey",
"list": "More Options",
"position": 2
}
,
{
"id": "46741",
"name": "Santini Lidl-Trekチームソックス",
"price": "2755.0",
"brand": "Santini",
"category": "Men's cycling socks",
"variant": "white",
"list": "More Options",
"position": 3
}
,
{
"id": "47322",
"name": "Rapha Logoサイクリングソックス",
"price": "2300.0",
"brand": "Rapha",
"category": "Men's cycling socks",
"variant": "white",
"list": "More Options",
"position": 4
}
,
{
"id": "36534",
"name": "トレック Race クルー サイクリング ソックス",
"price": "2080.0",
"brand": "Trek",
"category": "Men's cycling socks",
"variant": "red",
"list": "More Options",
"position": 5
}
,
{
"id": "36533",
"name": "トレック Race クオーター サイクリング ソックス",
"price": "2080.0",
"brand": "Trek",
"category": "Men's cycling socks",
"variant": "red",
"list": "More Options",
"position": 6
}
,
{
"id": "35322",
"name": "ボントレガー Race クルー サイクリング ソックス",
"price": "950.0",
"brand": "Bontrager",
"category": "Cycling socks",
"variant": "yellowvisibility",
"list": "More Options",
"position": 7
}
,
{
"id": "35320",
"name": "ボントレガー Race クオーター サイクリング ソックス",
"price": "950.0",
"brand": "Bontrager",
"category": "Cycling socks",
"variant": "white_bluelight",
"list": "More Options",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}