[[["เข้าใจง่าย","easyToUnderstand","thumb-up"],["แก้ปัญหาของฉันได้","solvedMyProblem","thumb-up"],["อื่นๆ","otherUp","thumb-up"]],[["ไม่มีข้อมูลที่ฉันต้องการ","missingTheInformationINeed","thumb-down"],["ซับซ้อนเกินไป/มีหลายขั้นตอนมากเกินไป","tooComplicatedTooManySteps","thumb-down"],["ล้าสมัย","outOfDate","thumb-down"],["ปัญหาเกี่ยวกับการแปล","translationIssue","thumb-down"],["ตัวอย่าง/ปัญหาเกี่ยวกับโค้ด","samplesCodeIssue","thumb-down"],["อื่นๆ","otherDown","thumb-down"]],["อัปเดตล่าสุด 2024-09-13 UTC"],[[["\u003cp\u003eUse the \u003ccode\u003ediscount\u003c/code\u003e parameter to apply discounts to items in ecommerce events, representing the total discount amount, not the percentage.\u003c/p\u003e\n"],["\u003cp\u003eThe example demonstrates applying a per-item discount during a purchase event using the \u003ccode\u003ediscount\u003c/code\u003e parameter in gtag.js.\u003c/p\u003e\n"],["\u003cp\u003eReporting on discounts is possible using dimensions like \u003ccode\u003eitem_coupon\u003c/code\u003e, \u003ccode\u003eorder_coupon\u003c/code\u003e, and metrics like \u003ccode\u003eitem_revenue\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eFor event-level discounts, create a custom metric to track and report them separately.\u003c/p\u003e\n"]]],["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,[]]