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:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-10-09 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."]]],[]]