mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +01:00
Update GA item name
This commit is contained in:
parent
86c718d79f
commit
51f458b63b
@ -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}";
|
||||||
|
Loading…
Reference in New Issue
Block a user