Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "34609",
"name": "Trek Solstice Mips Children's Bike Helmet",
"price": "69.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "pink",
"list": "More Options",
"position": 1
}
,
{
"id": "36035",
"name": "Trek Solstice Mips Youth Bike Helmet",
"price": "69.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "pink",
"list": "More Options",
"position": 2
}
,
{
"id": "36952",
"name": "Trek Starvos WaveCel Cycling Helmet",
"price": "104.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "More Options",
"position": 3
}
,
{
"id": "36987",
"name": "Trek Starvos WaveCel Round Fit Bike Helmet",
"price": "104.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "white",
"list": "More Options",
"position": 4
}
,
{
"id": "40264",
"name": "Trek Little Dipper Mips Bike Helmet",
"price": "64.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "purplelight",
"list": "More Options",
"position": 5
}
,
{
"id": "31567",
"name": "Bontrager Starvos WaveCel Cycling Helmet",
"price": "59.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "yellowvisibility",
"list": "More Options",
"position": 6
}
,
{
"id": "42203",
"name": "Trek Tyro Youth Bike Helmet",
"price": "54.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "pinklight_pink",
"list": "More Options",
"position": 7
}
,
{
"id": "40370",
"name": "Trek Little Dipper Bike Helmet",
"price": "44.99",
"brand": "Trek",
"category": "Bike helmets",
"variant": "pink",
"list": "More Options",
"position": 8
}
,
{
"id": "31558",
"name": "Bontrager Jet WaveCel Youth Bike Helmet",
"price": "39.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "greenvisibility_blue",
"list": "More Options",
"position": 9
}
,
{
"id": "31555",
"name": "Bontrager Jet WaveCel Children's Bike Helmet",
"price": "39.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "white_bluelight",
"list": "More Options",
"position": 10
}
,
{
"id": "30485",
"name": "Bontrager Tyro Children's Bike Helmet",
"price": "34.99",
"brand": "Bontrager",
"category": "Bike helmets",
"variant": "blue",
"list": "More Options",
"position": 11
}
,
{
"id": "31399",
"name": "100% Status Youth DH/BMX Bike Helmet",
"price": "175.0",
"brand": "100%",
"category": "Bike helmets",
"variant": "black_white",
"list": "More Options",
"position": 12
}
]
}
});
} else {
console.log("dataLayer");
}