Added conditional around analytics block
Just won't want it firing while I'm doing local dev.
This commit is contained in:
parent
83df2cfecc
commit
3c36b68f69
1 changed files with 15 additions and 8 deletions
|
@ -15,6 +15,10 @@
|
|||
<!-- TODO Analytics -->
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
if ($this->config->environment != 'local')
|
||||
{
|
||||
?>
|
||||
<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),
|
||||
|
@ -24,6 +28,9 @@
|
|||
ga('create', 'UA-46436973-1', 'leaderbin.com');
|
||||
ga('send', 'pageview');
|
||||
</script>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<header class="navbar navbar-inverse navbar-fixed-top" role="navigation">
|
||||
<div class="container">
|
||||
<div class="navbar-header">
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue