Skip to content

Commit

Permalink
Adding GA4 tags
Browse files Browse the repository at this point in the history
  • Loading branch information
nnunn authored Jun 20, 2023
1 parent a45f29e commit 3edef56
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions app/Views/common/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@
<script src="https://code.jquery.com/jquery.js"></script>
<script src="/assets/js/all-min.js"></script>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-CK9X7YDC78"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-7539303-17', 'auto');
ga('send', 'pageview');
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-CK9X7YDC78');
</script>
</head>
<body class="creamy">
Expand Down

0 comments on commit 3edef56

Please sign in to comment.