Overview
if (typeof dataLayer !== "undefined") {
dataLayer.push({
"ecommerce": {
"currency": "EUR",
"impressions": [
{
"id": "49691",
"name": "Trek Right Stacked Unisex Hoodie",
"price": "69.99",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "greenlight",
"list": "More Options",
"position": 1
}
,
{
"id": "49118",
"name": "Trek Left Stacked Unisex Hoodie",
"price": "69.99",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "black",
"list": "More Options",
"position": 2
}
,
{
"id": "36293",
"name": "Trek Vintage Logo Hoodie",
"price": "67.49",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "black",
"list": "More Options",
"position": 3
}
,
{
"id": "37320",
"name": "Trek Go By Bike Hoodie",
"price": "67.49",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "black",
"list": "More Options",
"position": 4
}
,
{
"id": "41971",
"name": "Trek Chain Stitch Unisex Hoodie",
"price": "59.99",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "tan",
"list": "More Options",
"position": 5
}
,
{
"id": "34760",
"name": "Trek USA Stamp Long-Sleeve T-shirt",
"price": "31.49",
"brand": "Trek",
"category": "Casual sweatshirts & hoodies",
"variant": "black",
"list": "More Options",
"position": 6
}
,
{
"id": "34749",
"name": "Trek Bicycle Script Hoodie",
"price": "67.49",
"brand": "BCycle",
"category": "Casual sweatshirts & hoodies",
"variant": "bluedark",
"list": "More Options",
"position": 7
}
]
}
});
} else {
console.log("dataLayer");
}