概要
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "35461",
"name": "Bontrager Blendr Adjustable Threadless Stem",
"price": "6900.0",
"brand": "Bontrager",
"category": "Blendr integration",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "37801",
"name": "ボントレガー Pro Blendr Wahoo アダプターパック",
"price": "1700.0",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "32593",
"name": "トレック Blendr To BarStem マウンティングボルト",
"price": "400.0",
"brand": "Trek",
"category": "Bike handlebars",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "31332",
"name": "Trek Blendr Hardware Kit",
"price": "400.0",
"brand": "Trek",
"category": "Blendr integration",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "48108",
"name": "Trek Madone Gen 8 Blendr Reflector Hardware Kit",
"price": "200.0",
"brand": "Trek",
"category": "Blendr integration",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "37803",
"name": "ボントレガー Pro Blendr Knock Block コンピュータマウント",
"price": "6400.0",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "37802",
"name": "ボントレガー Pro Blendr アルミ コンピュータマウント",
"price": "4100.0",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "More Options",
"position": 7
}
,
{
"id": "35873",
"name": "ボントレガー Pro Blendr Garmin アダプターパック",
"price": "1000.0",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "12553",
"name": "Bontrager Elite Blendr Faceplate with Supernova Light Mount",
"price": "990.0",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "35422",
"name": "Bontrager Blendr Adjustable Threadless Stem Bolt",
"price": "400.0",
"brand": "Bontrager",
"category": "Blendr integration",
"variant": "black",
"list": "More Options",
"position": 10
}
,
{
"id": "37804",
"name": "ボントレガー Pro Blendr アダプター パック ボルト",
"price": "400.0",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "More Options",
"position": 11
}
]
}
});
} else {
console.log("dataLayer");
}