概要
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "36846",
"name": "Precaliber 24 8-Speed Suspension",
"price": "55000.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "greydark",
"list": "More Options",
"position": 1
}
,
{
"id": "28592",
"name": "Precaliber 24 8-speed Suspension",
"price": "54890.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "white",
"list": "More Options",
"position": 2
}
,
{
"id": "28589",
"name": "Precaliber 24 8-speed Suspension",
"price": "54890.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "More Options",
"position": 3
}
,
{
"id": "36268",
"name": "Precaliber 20 7-Speed",
"price": "50000.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "red",
"list": "More Options",
"position": 4
}
,
{
"id": "28106",
"name": "Precaliber 20 7-speed",
"price": "50000.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "blue",
"list": "More Options",
"position": 5
}
,
{
"id": "28107",
"name": "Precaliber 20 7-speed",
"price": "49390.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "white",
"list": "More Options",
"position": 6
}
,
{
"id": "36267",
"name": "Precaliber 16",
"price": "42000.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pink",
"list": "More Options",
"position": 7
}
,
{
"id": "28291",
"name": "Precaliber 16",
"price": "42000.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "orange",
"list": "More Options",
"position": 8
}
,
{
"id": "28292",
"name": "Precaliber 16",
"price": "41690.0",
"brand": "Trek",
"category": "Kids' hybrid bikes",
"variant": "pink",
"list": "More Options",
"position": 9
}
]
}
});
} else {
console.log("dataLayer");
}