mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-08 20:22:42 +01:00
Fix GA currency code
This commit is contained in:
parent
a73b2828b6
commit
8a08aef3d5
@ -38,8 +38,9 @@ class AnalyticsListener
|
||||
$client = $payment->client;
|
||||
$amount = $payment->amount;
|
||||
$item = $invoice->invoice_items->last()->product_key;
|
||||
$currencyCode = $client->getCurrencyCode();
|
||||
|
||||
$base = "v=1&tid={$analyticsId}&cid={$client->public_id}&cu=USD&ti={$invoice->invoice_number}";
|
||||
$base = "v=1&tid={$analyticsId}&cid={$client->public_id}&cu={$currencyCode}&ti={$invoice->invoice_number}";
|
||||
|
||||
$url = $base . "&t=transaction&ta=ninja&tr={$amount}";
|
||||
$this->sendAnalytics($url);
|
||||
|
Loading…
Reference in New Issue
Block a user