Skip to content

Commit be191da

Browse files
committed
adding google analytics on front page too
1 parent bc73c79 commit be191da

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

application/views/common/homeheader.php

+10
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@
1717
1818
<script src="https://code.jquery.com/jquery.js"></script>
1919
<script src="/assets/js/home-all-min.js"></script>
20+
<script>
21+
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
22+
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
23+
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
24+
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
25+
26+
ga('create', 'UA-7539303-17', 'auto');
27+
ga('send', 'pageview');
28+
29+
</script>
2030
2131
</head>
2232
<body>

0 commit comments

Comments
 (0)