Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CAD",
"impressions": [
{
"id": "29220",
"name": "Electra Café Moto Go! 26" Rim",
"price": "55.99",
"brand": "Electra",
"category": "Bike rims & accessories",
"variant": "black",
"list": "More Options",
"position": 1
}
,
{
"id": "37978",
"name": "Electra Cruiser Go! 26" Rim",
"price": "48.99",
"brand": "Electra",
"category": "Bike rims & accessories",
"variant": "greylight",
"list": "More Options",
"position": 2
}
,
{
"id": "37977",
"name": "Electra Cruiser Go! 27.5" Rim",
"price": "48.99",
"brand": "Electra",
"category": "Bike rims & accessories",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "45430",
"name": "Electra Townie Go! 7D 26" 35mm Wide Rim",
"price": "48.99",
"brand": "Electra",
"category": "Bike rims & accessories",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "32433",
"name": "Electra Townie Go! 26" Rim",
"price": "41.99",
"brand": "Electra",
"category": "Bike rims & accessories",
"variant": "greylight",
"list": "More Options",
"position": 5
}
,
{
"id": "32434",
"name": "Electra Townie Go! 27.5" Rim",
"price": "41.99",
"brand": "Electra",
"category": "Bike rims & accessories",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "45422",
"name": "Electra Ponto Go! 20" Rim",
"price": "39.99",
"brand": "Electra",
"category": "Bike rims & accessories",
"variant": "black",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}