Skip to content

Commit

Permalink
Upgrade to ga4
Browse files Browse the repository at this point in the history
  • Loading branch information
meezaan committed Jul 20, 2023
1 parent dc737b4 commit 4143a14
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 13 deletions.
13 changes: 0 additions & 13 deletions views/common/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,18 +18,5 @@
<!--</div>-->
</footer>
</div>


<!-- Google Analytics -->
<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','https://www.google-analytics.com/analytics.js','ga');

ga('create', 'UA-3749682-29', 'auto');
ga('send', 'pageview');

</script>
</body>
</html>
9 changes: 9 additions & 0 deletions views/common/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,14 @@
<script src="/public/libraries/bootstrap-3.3.6/js/bootstrap.min.js"></script>
<script src="/public/libraries/bootstrap-multiselect/dist/js/bootstrap-multiselect.js"></script>
</head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-VKKYMLDGXQ"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'G-VKKYMLDGXQ');
</script>

<body style="margin-top: 70px;background:url(/public/images/bg4.png); background-attachment: fixed; background-size: 100%; background position: center center;" >

0 comments on commit 4143a14

Please sign in to comment.