Skip to content

Commit

Permalink
feat: final amount paid (incl promoCode) passed to Google Tag Manager
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-daniel-dempsey committed Oct 18, 2024
1 parent bb4ca00 commit 59eb80e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,15 +150,15 @@ export function ThankYouComponent({
: order.paymentMethod;

successfulContributionConversion(
payment.originalAmount,
payment.finalAmount, // This is the final amount after discounts
contributionType,
currencyKey,
paymentMethod,
productKey ?? 'Contribution', // One-off is labelled Contribution in Tag Manager
);
// track conversion with QM
sendEventContributionCheckoutConversion(
payment.originalAmount,
payment.originalAmount, // This is the amount before discounts
contributionType,
currencyKey,
);
Expand Down

0 comments on commit 59eb80e

Please sign in to comment.