Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "41982",
"name": "Trek Fraser Fir Beanie",
"price": "19.99",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "greendark",
"list": "More Options",
"position": 1
}
,
{
"id": "41981",
"name": "Trek Sunset Script Beanie",
"price": "19.99",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "bluedark",
"list": "More Options",
"position": 2
}
,
{
"id": "37338",
"name": "Trek Script Beanie",
"price": "15.99",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "tan",
"list": "More Options",
"position": 3
}
,
{
"id": "37339",
"name": "Trek Circle Beanie",
"price": "15.99",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "grey",
"list": "More Options",
"position": 4
}
,
{
"id": "37336",
"name": "Trek Block Snapback Hat",
"price": "15.99",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "black",
"list": "More Options",
"position": 5
}
,
{
"id": "37341",
"name": "Trek Holiday Pom Beanie",
"price": "15.99",
"brand": "Trek",
"category": "Casual caps & hats",
"variant": "greendark",
"list": "More Options",
"position": 6
}
,
{
"id": "45021",
"name": "100% Trek Factory Racing 5 Panel Hat",
"price": "28.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "More Options",
"position": 7
}
,
{
"id": "45020",
"name": "100% Trek Factory Racing Trucker Hat",
"price": "24.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "More Options",
"position": 8
}
,
{
"id": "45023",
"name": "100% Trek Factory Racing Cuff Beanie",
"price": "22.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "More Options",
"position": 9
}
,
{
"id": "45022",
"name": "100% Trek Factory Racing Pom Beanie",
"price": "22.0",
"brand": "100%",
"category": "Casual caps & hats",
"variant": "black",
"list": "More Options",
"position": 10
}
]
}
});
} else {
console.log("dataLayer");
}