env -> config (analytics)

fix php artisan config:cache
This commit is contained in:
Sebastian Schmidt 2019-05-06 21:53:01 +10:00
parent d34d92155e
commit d063e8aa5a
No known key found for this signature in database
GPG Key ID: 80B9687901B6587C
2 changed files with 3 additions and 2 deletions

View File

@ -71,5 +71,6 @@ return [
'cdn_url_user_assets' => '',
'cdn_url_static_assets' => '',
'google_analytics_id' => env('GOOGLE_ANALYTICS_ID'),
'google_maps_geocoding_key' => env('GOOGLE_MAPS_GEOCODING_KEY')
];

View File

@ -2,7 +2,7 @@
<script>showMessage('{{\Session::get('message')}}');</script>
@endif
@if(env('GOOGLE_ANALYTICS_ID'))
@if(config('attendize.google_analytics_id'))
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
@ -16,7 +16,7 @@
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga');
ga('create', '{{env('GOOGLE_ANALYTICS_ID')}}', 'auto');
ga('create', '{{config('attendize.google_analytics_id')}}', 'auto');
ga('require', 'displayfeatures');
ga('send', 'pageview');
</script>