Skip to content

Commit

Permalink
Merge pull request #138 from CleverUnderDog/main
Browse files Browse the repository at this point in the history
Add grandTotal/revenue to trackCartUpdate
  • Loading branch information
TesteurManiak authored Feb 20, 2024
2 parents 1cf19f0 + f249af4 commit 8792b7b
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,
double? 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 8792b7b

Please sign in to comment.