mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-09 03:14:30 -04:00
Add UTM to billing portal purchase
This commit is contained in:
parent
d05b41e452
commit
4a3846dce8
@ -529,6 +529,8 @@ class BillingPortalPurchasev2 extends Component
|
|||||||
->adjustInventory()
|
->adjustInventory()
|
||||||
->save();
|
->save();
|
||||||
|
|
||||||
|
$utm = isset($this->request_data['utm']) ? $this->request_data['utm'] : null;
|
||||||
|
|
||||||
Cache::put($this->hash, [
|
Cache::put($this->hash, [
|
||||||
'subscription_id' => $this->subscription->hashed_id,
|
'subscription_id' => $this->subscription->hashed_id,
|
||||||
'email' => $this->email ?? $this->contact->email,
|
'email' => $this->email ?? $this->contact->email,
|
||||||
@ -537,6 +539,7 @@ class BillingPortalPurchasev2 extends Component
|
|||||||
'context' => 'purchase',
|
'context' => 'purchase',
|
||||||
'campaign' => $this->campaign,
|
'campaign' => $this->campaign,
|
||||||
'bundle' => $this->bundle,
|
'bundle' => $this->bundle,
|
||||||
|
'utm' => $utm,
|
||||||
], now()->addMinutes(60));
|
], now()->addMinutes(60));
|
||||||
|
|
||||||
$this->emit('beforePaymentEventsCompleted');
|
$this->emit('beforePaymentEventsCompleted');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user