Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "13534",
"name": "Electra Linear Cup Holder",
"price": "24.93",
"brand": "Electra",
"category": "Bike water bottles & cages",
"variant": "white_black",
"list": "More Options",
"position": 1
}
,
{
"id": "36760",
"name": "Electra Wired Can Holder & Ziggy Koozie",
"price": "19.93",
"brand": "Electra",
"category": "Bike water bottles & cages",
"variant": "grey",
"list": "More Options",
"position": 2
}
,
{
"id": "36761",
"name": "Electra Wired Can Holder & Tiki Koozie",
"price": "19.93",
"brand": "Electra",
"category": "Bike water bottles & cages",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "33937",
"name": "Electra Water Bottle Cage",
"price": "13.99",
"brand": "Electra",
"category": "Bike water bottles & cages",
"variant": "grey",
"list": "More Options",
"position": 4
}
,
{
"id": "12624",
"name": "Electra Water Bottle Cage Adapter",
"price": "13.99",
"brand": "Electra",
"category": "Bike water bottles & cages",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}