Skip to content

Commit 72277a3

Browse files
Try google tags
1 parent b0f6d0b commit 72277a3

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

_includes/footer.html

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,15 +46,17 @@ <h3>About Dino Tutors</h3>
4646
</div>
4747
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
4848
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.7/js/bootstrap.min.js"></script>
49+
50+
<!-- Global site tag (gtag.js) - Google Analytics -->
51+
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-41117087-4"></script>
4952
<script>
50-
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
51-
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
52-
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
53-
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
53+
window.dataLayer = window.dataLayer || [];
54+
function gtag(){dataLayer.push(arguments);}
55+
gtag('js', new Date());
5456

55-
ga('create', 'UA-41117087-4', 'auto');
56-
ga('send', 'pageview');
57+
gtag('config', 'UA-41117087-4');
5758
</script>
59+
5860
<script>
5961
socket('{{ site.socket_key }}', {
6062
mode: 'enquiry-modal',

0 commit comments

Comments
 (0)