Voor het bijhouden van een succesvolle aankoop op willen we je vragen om het volgende dataLayer.push() script te implementeren.
ℹ️ Zorg dat dit script pas wordt uitgevoerd nadat de betaling succesvol is afgerond.
dataLayer.push({ ecommerce: null });
dataLayer.push({
event: "purchase",
ecommerce: {
transaction_id: "T_12345", // Uniek ordernummer
value: 25.42, // Totaalwaarde (incl. btw + verzending - korting)
tax: 4.90, // BTW-bedrag
shipping: 5.99, // Verzendkosten
currency: "EUR", // Valuta volgens ISO 4217
coupon: "SUMMER_SALE", // Gebruikte kortingscode (optioneel)
items: [
{
item_id: "SKU_12345",
item_name: "Stan and Friends Tee",
coupon: "SUMMER_FUN",
discount: 2.22,
price: 9.99,
quantity: 1
}
]
},
user_data: {
email_address: "[email protected]",
phone_number: "+31612345678",
first_name: "John",
last_name: "Doe",
address: {
street: "123 Lemon",
city: "Some city",
region: "CA",
country: "NL", // ISO 3166-1 alpha-2
postal_code: "12345"
}
}
});