mirror of
https://github.com/VueFileManager/vuefilemanager.git
synced 2026-04-28 19:10:40 +00:00
improved tracking for google analytics
This commit is contained in:
@@ -149,6 +149,9 @@
|
||||
// App settings
|
||||
userRegistration: {{ $config->registration->allowed }},
|
||||
userVerification: {{ $config->registration->verification }},
|
||||
|
||||
// Google Analytics
|
||||
googleAnalytics: '{{ $config->google_analytics }}',
|
||||
}
|
||||
</script>
|
||||
|
||||
@@ -156,18 +159,6 @@
|
||||
|
||||
{{--Application production script--}}
|
||||
<script src="{{ asset('js/main.js') }}?v={{ get_version() }}"></script>
|
||||
|
||||
{{--Global site tag (gtag.js) - Google Analytics--}}
|
||||
@if($config->google_analytics)
|
||||
<script async src="https://www.googletagmanager.com/gtag/js?id={{ $config->google_analytics }}"></script>
|
||||
<script>
|
||||
window.dataLayer = window.dataLayer || [];
|
||||
function gtag(){dataLayer.push(arguments);}
|
||||
gtag('js', new Date());
|
||||
|
||||
gtag('config', '{{ $config->google_analytics }}');
|
||||
</script>
|
||||
@endif
|
||||
@else
|
||||
{{--Application development script--}}
|
||||
<script src="{{ mix('js/main.js') }}"></script>
|
||||
|
||||
Reference in New Issue
Block a user