1
0
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:
Hillel Coren 2017-10-13 16:10:29 +03:00
parent a73b2828b6
commit 8a08aef3d5

View File

@ -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);