概要
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "JPY",
"impressions": [
{
"id": "32853",
"name": "ボントレガー Pro マルチツール",
"price": "9900.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "22374",
"name": "ボントレガー Elite マルチツール",
"price": "4900.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "22373",
"name": "ボントレガー Comp マルチツール",
"price": "2900.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "30807",
"name": "Bontrager BITS Integratedマルチツール",
"price": "6500.0",
"brand": "Bontrager",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "07799",
"name": "ボントレガー タイヤレバー2本セット",
"price": "500.0",
"brand": "Bontrager",
"category": "Bike tires",
"variant": "red",
"list": "More Options",
"position": 5
}
,
{
"id": "41411",
"name": "Trek Pro BITSマルチツール",
"price": "14900.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "44751",
"name": "Trek Elite BITSマルチツール",
"price": "9900.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 7
}
,
{
"id": "48899",
"name": "Trek Compマルチツール",
"price": "2500.0",
"brand": "Trek",
"category": "Bike tools & maintenance",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "21794",
"name": "ボントレガー Pro フラットパック",
"price": "8600.0",
"brand": "Bontrager",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "26602",
"name": "ボントレガー スイッチレバー ツール",
"price": "3800.0",
"brand": "Bontrager",
"category": "Bike wheels",
"variant": "black",
"list": "More Options",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}