1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-08 20:22:42 +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;
$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}";
$url = $base . "&t=transaction&ta=ninja&tr={$amount}";