Możesz zastosować rabat na produkt w zdarzeniu e-commerce, dodając parametr
discount z wartością rabatu. Nie używaj wartości procentowej
z parametrem discount.
Przykład
Sklep internetowy kosztuje 6 zł za parę skarpetek. Klient kupuje 3 pary skarpetek z rabatem 2 zł na parę. W tym przykładzie tag zdarzenia purchase
będzie wyglądać tak:
[null,null,["Ostatnia aktualizacja: 2024-09-13 UTC."],[[["Use the `discount` parameter to apply discounts to items in ecommerce events, representing the total discount amount, not the percentage."],["The example demonstrates applying a per-item discount during a purchase event using the `discount` parameter in gtag.js."],["Reporting on discounts is possible using dimensions like `item_coupon`, `order_coupon`, and metrics like `item_revenue`."],["For event-level discounts, create a custom metric to track and report them separately."]]],[]]