Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "48875",
"name": "Garmin Forerunner 165 Smartwatch",
"price": "199.99",
"brand": "Garmin",
"category": "Bike computers & GPS",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "37949",
"name": "Garmin Forerunner 945 LTE Smartwatch",
"price": "649.99",
"brand": "Garmin",
"category": "Bike computers & GPS",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "44104",
"name": "Garmin Forerunner 955 Solar Smartwatch",
"price": "599.99",
"brand": "Garmin",
"category": "Bike computers & GPS",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "44103",
"name": "Garmin Forerunner 955 Smartwatch",
"price": "499.99",
"brand": "Garmin",
"category": "Bike computers & GPS",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "44105",
"name": "Garmin Forerunner 255 Smartwatch",
"price": "349.99",
"brand": "Garmin",
"category": "Bike computers & GPS",
"variant": "greydark",
"list": "More Options",
"position": 5
}
,
{
"id": "21492",
"name": "Bontrager Softstrap Heart Rate Belt",
"price": "34.99",
"brand": "Bontrager",
"category": "Bike computers & GPS",
"variant": "black",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}