<!-- jQuery -->
<script src="<?php echo base_url('assets/js/libs/jquery.js')?>"></script>

<!-- Plugins -->
<script src="<?php echo base_url('assets/js/plugins.js')?>"></script>

<!-- Main -->
<script src="<?php echo base_url('assets/js/main.js')?>"></script>

<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->
<script>
    (function(b,o,i,l,e,r){b.GoogleAnalyticsObject=l;b[l]||(b[l]=
    function(){(b[l].q=b[l].q||[]).push(arguments)});b[l].l=+new Date;
    e=o.createElement(i);r=o.getElementsByTagName(i)[0];
    e.src='//www.google-analytics.com/analytics.js';
    r.parentNode.insertBefore(e,r)}(window,document,'script','ga'));
    ga('create','UA-XXXXX-X','auto');ga('send','pageview');
</script>

</body>

</html>

<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-104380197-1', 'auto');
ga('send', 'pageview');

</script>

<!-- jQuery -->
<script src="<?php echo base_url('assets/js/libs/jquery.js')?>"></script>

<!-- Plugins -->
<script src="<?php echo base_url('assets/js/plugins.js')?>"></script>

<!-- Main -->
<script src="<?php echo base_url('assets/js/main.js')?>"></script>

<!-- Google Analytics: change UA-XXXXX-X to be your site's ID. -->

</body>

</html>

Add the google analytics traking
Add the google analytics traking
