diff --git a/app/Composers/AppComposer.php b/app/Composers/AppComposer.php index 37c2a41c..3f563ffe 100644 --- a/app/Composers/AppComposer.php +++ b/app/Composers/AppComposer.php @@ -28,6 +28,10 @@ class AppComposer public function compose(View $view) { $view->withAboutApp(Markdown::convertToHtml(Setting::get('app_about'))); + $view->withAppAnalytics(Setting::get('app_analytics')); + $view->withAppAnalyticsGoSquared(Setting::get('app_analytics_gs')); + $view->withAppAnalyticsPiwikUrl(Setting::get('app_analytics_piwik_url')); + $view->withAppAnalyticsPiwikSiteId(Setting::get('app_analytics_piwik_siteid')); $view->withAppBanner(Setting::get('app_banner')); $view->withAppBannerType(Setting::get('app_banner_type')); $view->withAppDomain(Setting::get('app_domain')); diff --git a/resources/views/dashboard/settings/analytics.blade.php b/resources/views/dashboard/settings/analytics.blade.php index 72f2845c..6a3d32c5 100644 --- a/resources/views/dashboard/settings/analytics.blade.php +++ b/resources/views/dashboard/settings/analytics.blade.php @@ -21,7 +21,7 @@
- +
@@ -29,7 +29,7 @@
- +
@@ -37,7 +37,7 @@
- +
@@ -45,7 +45,7 @@
- +
diff --git a/resources/views/partials/analytics.blade.php b/resources/views/partials/analytics.blade.php index e43747fb..3889beee 100644 --- a/resources/views/partials/analytics.blade.php +++ b/resources/views/partials/analytics.blade.php @@ -1,36 +1,36 @@ -@if($googleTracking = Setting::get('app_analytics')) +@if($app_analytics) @endif -@if($gosquaredTracking = Setting::get('app_analytics_gs')) +@if($app_analytics_go_squared) @endif -@if($piwikTracking = Setting::get('app_analytics_pi_url')) +@if($app_analytics_piwik_url) - + @endif