Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "ZAR",
"impressions": [
{
"id": "23032",
"name": "Trek Checkpoint Carbon Armour",
"price": "900.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "22614",
"name": "Emonda SLR Chainkeeper",
"price": "451.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "12338",
"name": "Trek 3S Chainkeeper",
"price": "400.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "34426",
"name": "Trek Madone 9 Aero Chainkeeper",
"price": "400.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "37599",
"name": "Trek Checkpoint SL & SLR Gen 2 Chainstay Armor",
"price": "200.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "33297",
"name": "Trek Checkpoint SL Chainstay Strike Guard",
"price": "200.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "greylight",
"list": "More Options",
"position": 6
}
,
{
"id": "10282",
"name": "Trek Carbon Road Frame Chainstay Strike Plate",
"price": "200.0",
"brand": "Trek",
"category": "Bike frame protection",
"variant": "grey",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}