Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "27158",
"name": "Electra Cafe Moto Go! Dropout Kit",
"price": "36.99",
"brand": "Electra",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "24293",
"name": "Electra Townie Derailleur Hanger",
"price": "17.99",
"brand": "Electra",
"category": "Bike hangers & dropouts",
"variant": "grey",
"list": "More Options",
"position": 2
}
,
{
"id": "37569",
"name": "Electra Townie 135 x 12mm Derailleur Hanger",
"price": "17.99",
"brand": "Electra",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "45336",
"name": "Electra Ponto Go! Derailleur Hanger",
"price": "7.99",
"brand": "Electra",
"category": "Bike hangers & dropouts",
"variant": "greylight",
"list": "More Options",
"position": 4
}
,
{
"id": "24291",
"name": "Trek-Electra Disc Derailleur Hanger",
"price": "24.99",
"brand": "Bontrager-Electra",
"category": "Bike hangers & dropouts",
"variant": "black",
"list": "More Options",
"position": 5
}
]
}
});
} else {
console.log("dataLayer");
}