From 41c9d93510dfaa7750e532b4454a027c7443ef9d Mon Sep 17 00:00:00 2001 From: CleverUnderDog <37074703+CleverUnderDog@users.noreply.github.com> Date: Tue, 20 Feb 2024 15:28:47 +0000 Subject: [PATCH 1/3] Add grandTotal/revenue to trackCartUpdate --- lib/src/matomo.dart | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/src/matomo.dart b/lib/src/matomo.dart index 6c05fab..807fc17 100644 --- a/lib/src/matomo.dart +++ b/lib/src/matomo.dart @@ -706,6 +706,7 @@ class MatomoTracker { num? taxAmount, num? shippingCost, num? discountAmount, + num? grandTotal, String? pvId, String? path, Campaign? campaign, @@ -724,6 +725,7 @@ class MatomoTracker { taxAmount: taxAmount, shippingCost: shippingCost, discountAmount: discountAmount, + revenue: grandTotal pvId: _inferPvId(pvId), path: _inferPath(path), campaign: campaign, From 7691b99fa9174ad517ef51a389db19532260ba7f Mon Sep 17 00:00:00 2001 From: CleverUnderDog <37074703+CleverUnderDog@users.noreply.github.com> Date: Tue, 20 Feb 2024 15:45:38 +0000 Subject: [PATCH 2/3] Use double instead of num for grandTotal --- lib/src/matomo.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/matomo.dart b/lib/src/matomo.dart index 807fc17..724c0c1 100644 --- a/lib/src/matomo.dart +++ b/lib/src/matomo.dart @@ -706,7 +706,7 @@ class MatomoTracker { num? taxAmount, num? shippingCost, num? discountAmount, - num? grandTotal, + double? grandTotal, String? pvId, String? path, Campaign? campaign, From f249af4b0fdedb891166821bc8d0d17221cd6f10 Mon Sep 17 00:00:00 2001 From: CleverUnderDog <37074703+CleverUnderDog@users.noreply.github.com> Date: Tue, 20 Feb 2024 16:06:26 +0000 Subject: [PATCH 3/3] Add missing , --- lib/src/matomo.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/matomo.dart b/lib/src/matomo.dart index 724c0c1..709a236 100644 --- a/lib/src/matomo.dart +++ b/lib/src/matomo.dart @@ -725,7 +725,7 @@ class MatomoTracker { taxAmount: taxAmount, shippingCost: shippingCost, discountAmount: discountAmount, - revenue: grandTotal + revenue: grandTotal, pvId: _inferPvId(pvId), path: _inferPath(path), campaign: campaign,