fixed utm links
This commit is contained in:
@@ -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 = '<a href="' . $url . '" style="color: #676ba2; text-decoration: none;">' . trans('footer.get_started') . '</a>';
|
||||
|
||||
|
||||
@@ -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),
|
||||
]);
|
||||
}
|
||||
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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',
|
||||
]);
|
||||
|
||||
Reference in New Issue
Block a user