Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "USD",
"impressions": [
{
"id": "26061",
"name": "VP Components FP-BC63 Square Taper Fat Bike Bottom Bracket",
"price": "18.99",
"brand": "Electra",
"category": "Bike bottom brackets",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "41769",
"name": "Electra Loft Go! 7D Bottom Bracket Cover",
"price": "7.99",
"brand": "Electra",
"category": "E-bike drivetrain parts",
"variant": "black",
"list": "More Options",
"position": 2
}
]
}
});
} else {
console.log("dataLayer");
}