1@if(\Settings::get('google_analytics_id'))
2 <!-- Global site tag (gtag.js) - Google Analytics -->
3 <script async
4 src="https://www.googletagmanager.com/gtag/js?id={{ \Settings::get('google_analytics_id') }}"></script>
5 <script>
6 window.dataLayer = window.dataLayer || [];
7
8 function gtag() {
9 dataLayer.push(arguments);
10 }
11
12 gtag('js', new Date());
13
14 gtag('config', "{{ \Settings::get('google_analytics_id') }}");
15 </script>
16@endif