if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NOK",
"impressions": [
{
"id": "10652",
"name": "Trek 16" Kids Training Wheels",
"price": "319.0",
"brand": "Bontrager",
"category": "Bike training wheels",
"variant": "black",
"list": "CATEGORY",
"position": 1
}
,
{
"id": "14986",
"name": "Bontrager/Electra Training Wheel Hardware",
"price": "119.0",
"brand": "Trek-Electra",
"category": "Bike training wheels",
"variant": "black",
"list": "CATEGORY",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}