Zadbaj o dobrą organizację dzięki kolekcji
Zapisuj i kategoryzuj treści zgodnie ze swoimi preferencjami.
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."],[],["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"],null,[]]