Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "44795",
"name": "Trek CHRGtime Charging Station",
"price": "124.99",
"brand": "Trek",
"category": "Bike lights",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "34870",
"name": "Being Gary Fisher and the Bicycle Revolution Autobiography",
"price": "39.99",
"brand": "Trek",
"category": "Cycling gifts & fun stuff",
"variant": "white",
"list": "More Options",
"position": 2
}
,
{
"id": "34529",
"name": "Trek Presidential Playbook 2020 by John Burke",
"price": "10.0",
"brand": "Trek",
"category": "Cycling gifts & fun stuff",
"variant": "white",
"list": "More Options",
"position": 3
}
,
{
"id": "23143",
"name": "Skratch Labs Recovery Sport Drink Mix 12-Serving Bag",
"price": "33.95",
"brand": "Skratch Labs",
"category": "Cycling nutrition",
"variant": "",
"list": "More Options",
"position": 4
}
,
{
"id": "23635",
"name": "Park Tool Pizza Tool",
"price": "21.95",
"brand": "Park Tool",
"category": "Cycling gifts & fun stuff",
"variant": "blue",
"list": "More Options",
"position": 5
}
,
{
"id": "14564",
"name": "Electra Sticker Pack",
"price": "9.99",
"brand": "Electra",
"category": "Cycling gifts & fun stuff",
"variant": "white",
"list": "More Options",
"position": 6
}
,
{
"id": "23636",
"name": "Park Tool Stainless Steel Spork",
"price": "9.95",
"brand": "Park Tool",
"category": "Cycling gifts & fun stuff",
"variant": "blue_grey",
"list": "More Options",
"position": 7
}
,
{
"id": "23637",
"name": "Park Tool Keychain Bottle Opener",
"price": "7.95",
"brand": "Park Tool",
"category": "Cycling gifts & fun stuff",
"variant": "blue",
"list": "More Options",
"position": 8
}
]
}
});
} else {
console.log("dataLayer");
}