Skip to content
This repository was archived by the owner on Mar 13, 2023. It is now read-only.

Commit c05b0a6

Browse files
committed
Install google analytics track javascript file
1 parent 8aaf293 commit c05b0a6

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

resources/views/welcome.blade.php

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@
3939
<link rel="mask-icon" href="{{ asset('img/favicons/safari-pinned-tab.svg') }}" color="#00795d">
4040
<meta name="theme-color" content="#fff">
4141
<meta name="mobile-web-app-capable" content="yes">
42+
<!-- Global site tag (gtag.js) - Google Analytics -->
43+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-121194903-1"></script>
44+
<script>
45+
window.dataLayer = window.dataLayer || [];
46+
function gtag(){dataLayer.push(arguments);}
47+
gtag('js', new Date());
48+
gtag('config', 'UA-121194903-1');
49+
50+
window.Laravel = <?php echo json_encode([
51+
'csrfToken' => csrf_token(),
52+
]); ?>
53+
</script>
4254
<!-- Styles -->
4355
<style>
4456
html, body {

0 commit comments

Comments
 (0)