Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "AUD",
"impressions": [
{
"id": "35041",
"name": "Trek RSL Mountain Bike Shoe",
"price": "699.99",
"brand": "Trek",
"category": "Mountain bike shoes",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "45271",
"name": "Trek Cambion Mountain Bike Shoe",
"price": "499.99",
"brand": "Trek",
"category": "Mountain bike shoes",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "45272",
"name": "Trek Foray Mountain Bike Shoe",
"price": "299.99",
"brand": "Trek",
"category": "Mountain bike shoes",
"variant": "white",
"list": "More Options",
"position": 3
}
,
{
"id": "45273",
"name": "Trek Foray Wide Mountain Bike Shoes",
"price": "299.99",
"brand": "Trek",
"category": "Mountain bike shoes",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "24883",
"name": "Bontrager Rally Mountain Bike Shoes",
"price": "199.99",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "greendark_black",
"list": "More Options",
"position": 5
}
,
{
"id": "25343",
"name": "Bontrager XXX Mountain Bike Shoes",
"price": "199.99",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "34790",
"name": "Bontrager Flatline Mountain Bike Shoes",
"price": "169.99",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "greydark",
"list": "More Options",
"position": 7
}
,
{
"id": "34130",
"name": "Bontrager Foray Mountain Bike Shoes",
"price": "149.99",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "greendark_orangevisibility",
"list": "More Options",
"position": 8
}
,
{
"id": "34129",
"name": "Bontrager Evoke Mountain Bike Shoes",
"price": "119.99",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "34789",
"name": "Bontrager Quantum Mountain Bike Shoes",
"price": "99.99",
"brand": "Bontrager",
"category": "Mountain bike shoes",
"variant": "black",
"list": "More Options",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}