Skip to content

Commit

Permalink
Add grandTotal/revenue to trackCartUpdate
Browse files Browse the repository at this point in the history
  • Loading branch information
CleverUnderDog committed Feb 20, 2024
1 parent 1cf19f0 commit 41c9d93
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/src/matomo.dart
Original file line number Diff line number Diff line change
Expand Up @@ -706,6 +706,7 @@ class MatomoTracker {
num? taxAmount,
num? shippingCost,
num? discountAmount,
num? grandTotal,
String? pvId,
String? path,
Campaign? campaign,
Expand All @@ -724,6 +725,7 @@ class MatomoTracker {
taxAmount: taxAmount,
shippingCost: shippingCost,
discountAmount: discountAmount,
revenue: grandTotal
pvId: _inferPvId(pvId),
path: _inferPath(path),
campaign: campaign,
Expand Down

0 comments on commit 41c9d93

Please sign in to comment.