Skip to content

Commit 53a7558

Browse files
committed
Fixes google analytics script
1 parent 53365d7 commit 53a7558

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

resources/views/welcome.blade.php

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -369,21 +369,14 @@ class="border rounded-full text-blue-600 md:py-1 md:px-3 px-2 lg:px-3 border-blu
369369

370370
@if(config('app.google_tagmanager'))
371371
<!-- Global site tag (gtag.js) - Google Analytics -->
372-
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-151758540-1"></script>
372+
<script async src="https://www.googletagmanager.com/gtag/js?id={{ config('app.google_tagmanager') }}"></script>
373373
<script>
374374
window.dataLayer = window.dataLayer || [];
375-
376375
function gtag() {
377376
dataLayer.push(arguments);
378377
}
379-
380378
gtag('js', new Date());
381-
382-
gtag('config', '{{ config('
383-
app.google_tagmanager
384-
') }}'
385-
)
386-
;
379+
gtag('config', '{{ config('app.google_tagmanager') }}');
387380
</script>
388381
@endif
389382
</body>

0 commit comments

Comments
 (0)