1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 22:54:25 +01:00

Update GA item name

This commit is contained in:
Hillel Coren 2017-11-28 10:44:28 +02:00
parent 86c718d79f
commit 51f458b63b

View File

@ -40,6 +40,10 @@ class AnalyticsListener
$item = $invoice->invoice_items->last()->product_key; $item = $invoice->invoice_items->last()->product_key;
$currencyCode = $client->getCurrencyCode(); $currencyCode = $client->getCurrencyCode();
if ($account->isNinjaAccount() && \App::runningInConsole()) {
$item .= ' [R]';
}
$base = "v=1&tid={$analyticsId}&cid={$client->public_id}&cu={$currencyCode}&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}"; $url = $base . "&t=transaction&ta=ninja&tr={$amount}";