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