Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Sie können einen Rabatt auf einen Artikel in einem E-Commerce-Ereignis anwenden, indem Sie den Parameter
discount mit dem Wert des Rabatts. Verwenden Sie nicht den Prozentsatz
Rabatt mit dem Parameter discount.
Beispiel
In einem Onlineshop werden 6 $pro Sockenpaar berechnet. Eine Kundin kauft drei Paar
Socken mit einem Rabatt von 2 USD pro Paar. In diesem Beispiel hat das Ereignis-Tag purchase
würde so aussehen:
gtag("event","purchase",{transaction_id:"T_12345",coupon:"socksSale",value:12.00,// value = quantity x sale pricecurrency:"USD",// The currency of the value, discount, and priceitems:[{item_id:"SKU_12345",item_name:"Socks",discount:2.00,// The discount per itemprice:4.00,// The sale price is the per item list price (6.00) minus discount (2.00)quantity:3// The number of items sold},]});
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Benötigte Informationen nicht gefunden","missingTheInformationINeed","thumb-down"],["Zu umständlich/zu viele Schritte","tooComplicatedTooManySteps","thumb-down"],["Nicht mehr aktuell","outOfDate","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Problem mit Beispielen/Code","samplesCodeIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-10-09 (UTC)."],[],["To apply a discount to an item in an ecommerce event, add the `discount` parameter, using the discount value, not a percentage. For instance, if a customer buys three pairs of socks at $6 each with a $2 discount per pair, the `purchase` event tag reflects this. Reports can use \"Item coupon,\" \"Order coupon,\" and \"Item revenue\" to track these discounts. For event-level discounts, custom metrics are needed.\n"]]