Skip to content

Commit

Permalink
Merge pull request #54 from elgentos/WouterSteen-patch-6
Browse files Browse the repository at this point in the history
Fixed bug in naming key param to GA4
  • Loading branch information
WouterSteen authored Mar 27, 2024
2 parents 647410d + b4dd7a2 commit 89cae5d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Observer/SendPurchaseEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function getTransactionDataObject($order, $invoice, $elgentosSalesOrder):
'transaction_id' => $order->getIncrementId(),
'affiliation' => $order->getStoreName(),
'currency' => $invoice->getGlobalCurrencyCode(),
'revenue' => $invoice->getBaseGrandTotal(),
'value' => $invoice->getBaseGrandTotal(),
'tax' => $invoice->getBaseTaxAmount(),
'shipping' => ($this->getPaidShippingCosts($invoice) ?? 0),
'coupon_code' => $order->getCouponCode(),
Expand Down

0 comments on commit 89cae5d

Please sign in to comment.