Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "34036",
"name": "Trek Commuter Comp R Flare R City Bike Light Set",
"price": "149.99",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "30763",
"name": "Bontrager Ion Comp R/Flare R City Bike Light Set",
"price": "189.99",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "grey",
"list": "More Options",
"position": 2
}
,
{
"id": "14259",
"name": "Bontrager Ion 100 R/Flare R City Bike Light Set",
"price": "89.99",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "44447",
"name": "Trek Ion 50 R Flare R Metro Bike Light Set",
"price": "54.99",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "41443",
"name": "Trek Ion 100 R/Flare R City Bike Light Set",
"price": "89.99",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "32356",
"name": "Bontrager Ion 120/Flare 1 Light Set",
"price": "64.99",
"brand": "Bontrager",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 6
}
]
}
});
} else {
console.log("dataLayer");
}