From: Vincent Vanwaelscappel Date: Fri, 22 Feb 2019 14:07:28 +0000 (+0100) Subject: #2609 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=1d5756fd785fa521b1496a5b178d5258ceabd8d6;p=cubist_cms-front.git #2609 --- diff --git a/src/FrontServiceProvider.php b/src/FrontServiceProvider.php index f3b9a22..f7bd338 100644 --- a/src/FrontServiceProvider.php +++ b/src/FrontServiceProvider.php @@ -22,11 +22,12 @@ class FrontServiceProvider extends ServiceProvider $this->loadViewsFrom($customViewsFolder, 'cubist'); } // - then the stock views that come with the package, in case a published view might be missing - $this->loadViewsFrom(realpath(__DIR__.'/resources/views'), 'cubist'); + $this->loadViewsFrom(realpath(__DIR__ . '/resources/views'), 'cubist'); // publish config file - $this->publishes([__DIR__.'/config/cubist-front.php' => config_path('cubist-front.php')], 'config'); + $this->publishes([__DIR__ . '/config/cubist-front.php' => config_path('cubist-front.php')], 'config'); + $this->publishes([__DIR__ . '/config/googletagmanager.php' => config_path(__DIR__ . '/config/googletagmanager.php')], 'config'); // publish the views - $this->publishes([__DIR__.'/resources/views' => resource_path('views/vendor/cubist/front')], 'views'); + $this->publishes([__DIR__ . '/resources/views' => resource_path('views/vendor/cubist/front')], 'views'); } } \ No newline at end of file diff --git a/src/config/googletagmanager.php b/src/config/googletagmanager.php new file mode 100644 index 0000000..07595f6 --- /dev/null +++ b/src/config/googletagmanager.php @@ -0,0 +1,27 @@ + env('GOOGLE_ANALYTICS_ID', ''), + + /* + * Enable or disable script rendering. Useful for local development. + */ + 'enabled' => env('GOOGLE_ANALYTICS_ID', '') != '', + + /* + * If you want to use some macro's you 'll probably store them + * in a dedicated file. You can optionally define the path + * to that file here and we will load it for you. + */ + 'macroPath' => '', + + /* + * The key under which data is saved to the session with flash. + */ + 'sessionKey' => '_googleTagManager', + +];