Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "SGD",
"impressions": [
{
"id": "41409",
"name": "Trek Line Elite Flat Pedal Set",
"price": "90.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "red",
"list": "More Options",
"position": 1
}
,
{
"id": "35809",
"name": "Bontrager Line Comp Flat Pedal Set",
"price": "60.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "orange",
"list": "More Options",
"position": 2
}
,
{
"id": "41410",
"name": "Trek Line Pro Flat Pedal Set",
"price": "150.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "orange",
"list": "More Options",
"position": 3
}
,
{
"id": "22372",
"name": "Bontrager Commuter Pedal Set",
"price": "130.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "44426",
"name": "Trek Line Comp Flat Pedal Set",
"price": "60.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "10435",
"name": "Trek Hybrid Pedal Set",
"price": "39.0",
"brand": "VP Components",
"category": "Bike pedals",
"variant": "greylight_black",
"list": "More Options",
"position": 6
}
,
{
"id": "30971",
"name": "Trek Kids' Platform Large Pedal Set",
"price": "25.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "orange",
"list": "More Options",
"position": 7
}
,
{
"id": "30977",
"name": "Trek Kids' Platform Small Pedal Set",
"price": "25.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "red",
"list": "More Options",
"position": 8
}
,
{
"id": "44499",
"name": "VP Components VP-536 Nylon Polymer Bearing Pedal Set",
"price": "20.0",
"brand": "VP Components",
"category": "Bike pedals",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "10861",
"name": "Trek Kids Dialed Pedal Set",
"price": "18.0",
"brand": "Trek",
"category": "Bike pedals",
"variant": "white",
"list": "More Options",
"position": 10
}
,
{
"id": "14345",
"name": "Bontrager Line Pro Pedal Axle Rebuild Kit",
"price": "47.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "grey",
"list": "More Options",
"position": 11
}
,
{
"id": "26735",
"name": "Bontrager Line Pro Pedal Pin Kit",
"price": "29.0",
"brand": "Bontrager",
"category": "Bike pedals",
"variant": "grey",
"list": "More Options",
"position": 12
}
]
}
});
} else {
console.log("dataLayer");
}