Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "NZD",
"impressions": [
{
"id": "40646",
"name": "Electra Triangle Frame Bag",
"price": "139.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "33768",
"name": "Electra Reflective Charcoal Phone Bag",
"price": "89.99",
"brand": "Electra",
"category": "Phone & tablet accessories",
"variant": "reflective",
"list": "More Options",
"position": 2
}
,
{
"id": "33612",
"name": "Electra Leopard Handlebar Bag with Lid",
"price": "59.99",
"brand": "Electra",
"category": "Bike bags",
"variant": "white_purplelight",
"list": "More Options",
"position": 3
}
]
}
});
} else {
console.log("dataLayer");
}