if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "39366",
"name": "Hyperice Vyper Go Vibrating Fitness Roller",
"price": "149.99",
"brand": "Hyperice",
"category": "Cycling gifts & fun stuff",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "23143",
"name": "Skratch Labs Recovery Sport Drink Mix 12-Serving Bag",
"price": "33.95",
"brand": "Skratch Labs",
"category": "Cycling nutrition",
"variant": "",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}