Stay organized with collections
Save and categorize content based on your preferences.
You can apply a discount to an item in an ecommerce event by adding the
discount parameter with the value of the discount. Don't use the percentage
discount with the discount parameter.
Example
An online store charges $6 per pair of socks. A customer purchases 3 pairs of
socks with a $2 discount per pair. In this example, the purchase event tag
would look like the following:
[null,null,["Last updated 2024-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"],null,[]]