From 28385aee835a6dc4f69afa17035410c4e61195ed Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denis=20Duli=C3=A7i?= Date: Thu, 30 Jun 2022 19:17:39 +0300 Subject: [PATCH] fixed utm links --- app/Abstracts/Notification.php | 2 +- app/Abstracts/Widget.php | 2 +- app/Listeners/Menu/ShowInNotifications.php | 4 ++-- app/Traits/Cloud.php | 12 ++++++------ .../layouts/modules/show/information.blade.php | 2 +- .../layouts/portal/finish/content.blade.php | 2 +- resources/views/portal/invoices/index.blade.php | 2 +- resources/views/portal/payments/index.blade.php | 4 ++-- 8 files changed, 15 insertions(+), 15 deletions(-) diff --git a/app/Abstracts/Notification.php b/app/Abstracts/Notification.php index 8162ff98c..367af653f 100644 --- a/app/Abstracts/Notification.php +++ b/app/Abstracts/Notification.php @@ -91,7 +91,7 @@ abstract class Notification extends BaseNotification implements ShouldQueue public function getFooter() { - $url = 'https://akaunting.com/lp/accounting-software?utm_source=email&utm_medium=software&utm_campaign=footer&utm_content=' . $this->template->alias; + $url = 'https://akaunting.com/lp/accounting-software?utm_source=email&utm_medium=footer&utm_campaign=plg&utm_content=' . $this->template->alias; $get_started = '' . trans('footer.get_started') . ''; diff --git a/app/Abstracts/Widget.php b/app/Abstracts/Widget.php index 92620a984..a5d8eccc9 100644 --- a/app/Abstracts/Widget.php +++ b/app/Abstracts/Widget.php @@ -63,7 +63,7 @@ abstract class Widget 'alias' => $alias, 'utm_source' => 'widget', 'utm_medium' => 'app', - 'utm_campaign' => Str::snake(Str::camel($alias)), + 'utm_campaign' => str_replace('-', '_', $alias), ]); } diff --git a/app/Listeners/Menu/ShowInNotifications.php b/app/Listeners/Menu/ShowInNotifications.php index c73da1ecc..db5168fdc 100644 --- a/app/Listeners/Menu/ShowInNotifications.php +++ b/app/Listeners/Menu/ShowInNotifications.php @@ -62,8 +62,8 @@ class ShowInNotifications $app_url = route('apps.app.show', [ 'alias' => $new_app->alias, 'utm_source' => 'notification', - 'utm_medium' => 'software', - 'utm_campaign' => str_replace('-', '', $new_app->alias), + 'utm_medium' => 'app', + 'utm_campaign' => str_replace('-', '_', $new_app->alias), ]); $new = new DatabaseNotification(); diff --git a/app/Traits/Cloud.php b/app/Traits/Cloud.php index 01a6e69c1..53c0231b4 100644 --- a/app/Traits/Cloud.php +++ b/app/Traits/Cloud.php @@ -15,10 +15,10 @@ trait Cloud return request()->getHost() == $this->cloud_host; } - public function getCloudRolesPageUrl() + public function getCloudRolesPageUrl($location = 'user') { if (! $this->isCloud()) { - return 'https://akaunting.com/plans?utm_source=user_role&utm_medium=software&utm_campaign=plg'; + return 'https://akaunting.com/apps/roles?utm_source=software&utm_medium=' . $location . '&utm_campaign=roles'; } if ($this->moduleIsEnabled('roles')) { @@ -26,20 +26,20 @@ trait Cloud } return route('cloud.plans.index', [ - 'utm_source' => 'user', + 'utm_source' => $location, 'utm_medium' => 'app', 'utm_campaign' => 'roles', ]); } - public function getCloudBankFeedsUrl() + public function getCloudBankFeedsUrl($location = 'widget') { if (! $this->isCloud()) { - return 'https://akaunting.com/features/connect-your-bank?utm_source=bank_feeds_widget&utm_medium=software&utm_campaign=plg'; + return 'https://akaunting.com/apps/bank-feeds?utm_source=software&utm_medium=' . $location . '&utm_campaign=bank_feeds'; } return route('cloud.plans.index', [ - 'utm_source' => 'widget', + 'utm_source' => $location, 'utm_medium' => 'app', 'utm_campaign' => 'bank_feeds', ]); diff --git a/resources/views/components/layouts/modules/show/information.blade.php b/resources/views/components/layouts/modules/show/information.blade.php index a917d1535..984ab4c8d 100644 --- a/resources/views/components/layouts/modules/show/information.blade.php +++ b/resources/views/components/layouts/modules/show/information.blade.php @@ -13,7 +13,7 @@
- * {!! trans('modules.information_monthly') !!} + * {!! trans('modules.information_monthly') !!}
@else diff --git a/resources/views/components/layouts/portal/finish/content.blade.php b/resources/views/components/layouts/portal/finish/content.blade.php index 2a9905b44..5a7fbd70b 100644 --- a/resources/views/components/layouts/portal/finish/content.blade.php +++ b/resources/views/components/layouts/portal/finish/content.blade.php @@ -7,7 +7,7 @@
- + {{ trans('portal.get_started') }}
diff --git a/resources/views/portal/invoices/index.blade.php b/resources/views/portal/invoices/index.blade.php index 851d6dd6a..f405bbe23 100644 --- a/resources/views/portal/invoices/index.blade.php +++ b/resources/views/portal/invoices/index.blade.php @@ -158,7 +158,7 @@
- + {{ trans('portal.get_started') }}
diff --git a/resources/views/portal/payments/index.blade.php b/resources/views/portal/payments/index.blade.php index 34a2ce47b..f6a59d49c 100644 --- a/resources/views/portal/payments/index.blade.php +++ b/resources/views/portal/payments/index.blade.php @@ -35,7 +35,7 @@ @foreach($payments as $item) - + @@ -66,7 +66,7 @@