mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-05 18:23:48 +00:00
google analytics fix
This commit is contained in:
@@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'version' => '2.2.0.9',
|
'version' => '2.2.0.10',
|
||||||
|
|
||||||
'is_demo' => env('APP_DEMO', false),
|
'is_demo' => env('APP_DEMO', false),
|
||||||
|
|
||||||
|
|||||||
@@ -159,7 +159,7 @@
|
|||||||
<script src="{{ asset('js/main.js') }}?v={{ get_version() }}"></script>
|
<script src="{{ asset('js/main.js') }}?v={{ get_version() }}"></script>
|
||||||
|
|
||||||
{{--Global site tag (gtag.js) - Google Analytics--}}
|
{{--Global site tag (gtag.js) - Google Analytics--}}
|
||||||
@if(isset($config->google_analytics) && $config->google_analytics)
|
@if($config->google_analytics)
|
||||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ $config->google_analytics }}"></script>
|
<script async src="https://www.googletagmanager.com/gtag/js?id={{ $config->google_analytics }}"></script>
|
||||||
<script>
|
<script>
|
||||||
window.dataLayer = window.dataLayer || [];
|
window.dataLayer = window.dataLayer || [];
|
||||||
|
|||||||
@@ -200,6 +200,7 @@ class GetConfigAction
|
|||||||
'allowHomepage' => intval($settings->allow_homepage ?? 1),
|
'allowHomepage' => intval($settings->allow_homepage ?? 1),
|
||||||
'teamsDefaultMembers' => intval($settings->default_max_team_member ?? 10),
|
'teamsDefaultMembers' => intval($settings->default_max_team_member ?? 10),
|
||||||
'legal' => $pages ? json_encode($pages) : 'undefined',
|
'legal' => $pages ? json_encode($pages) : 'undefined',
|
||||||
|
'google_analytics' => optional($settings)->google_analytics ?? null,
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user