Übersicht
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "CHF",
"impressions": [
{
"id": "12720",
"name": "Electra Retrorunner Cruiser Tire",
"price": "35.0",
"brand": "Electra",
"category": "Bike tires",
"variant": "black_white",
"list": "More Options",
"position": 1
}
,
{
"id": "12722",
"name": "Electra Cruiser Vintage Diamond Tire",
"price": "35.0",
"brand": "Electra",
"category": "Bike tires",
"variant": "white",
"list": "More Options",
"position": 2
}
,
{
"id": "12719",
"name": "Electra Knobby Cruiser Tire",
"price": "32.0",
"brand": "Electra",
"category": "Bike tires",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "34514",
"name": "Electra Balloon Cruiser Tire",
"price": "31.0",
"brand": "Electra",
"category": "Bike tires",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "34706",
"name": "Electra Strat-O-Balloon 24" Cruiser Tire",
"price": "27.5",
"brand": "Electra",
"category": "Bike tires",
"variant": "black_white",
"list": "More Options",
"position": 5
}
,
{
"id": "12716",
"name": "Electra Cruiser Fatti-O Tire",
"price": "25.0",
"brand": "Electra",
"category": "Bike tires",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "21678",
"name": "Electra Lux Fat Tires",
"price": "70.0",
"brand": "Electra",
"category": "Bike tires",
"variant": "black",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}