Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "40650",
"name": "Electra Eclipse Socks",
"price": "9.93",
"brand": "Electra",
"category": "Men's cycling socks",
"variant": "teal_pinkdark",
"list": "More Options",
"position": 1
}
,
{
"id": "40649",
"name": "Electra Banana Dance Socks",
"price": "9.93",
"brand": "Electra",
"category": "Men's cycling socks",
"variant": "blue",
"list": "More Options",
"position": 2
}
,
{
"id": "40651",
"name": "Electra Tiki Time Socks",
"price": "9.93",
"brand": "Electra",
"category": "Men's cycling socks",
"variant": "reddark",
"list": "More Options",
"position": 3
}
,
{
"id": "40652",
"name": "Electra Coral Reef Socks",
"price": "9.93",
"brand": "Electra",
"category": "Men's cycling socks",
"variant": "tan_pinklight",
"list": "More Options",
"position": 4
}
,
{
"id": "40653",
"name": "Electra Richie Socks",
"price": "9.93",
"brand": "Electra",
"category": "Men's cycling socks",
"variant": "grey",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}