Add google analytics code
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 18 Nov 2015 19:01:58 +0000 (14:01 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 18 Nov 2015 19:01:58 +0000 (14:01 -0500)
header.php

index 3ca030c..97137b5 100644 (file)
@@ -9,6 +9,19 @@
     <link href='https://fonts.googleapis.com/css?family=Oleo+Script' rel='stylesheet' type='text/css'>
 
     <?php wp_head(); ?>
+    <script type="text/javascript">
+
+     var _gaq = _gaq || [];
+     _gaq.push(['_setAccount', 'UA-17985402-1']);
+      _gaq.push(['_trackPageview']);
+
+      (function() {
+        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+      })();
+
+    </script>
   </head>
   <body>
       <div class="off-canvas-wrap" data-offcanvas>
@@ -31,7 +44,7 @@
                             </div>
                             <div class="header-text medium-4 columns text-center large-text-right show-for-medium-up">
                                 <a href="<?php bloginfo('url');?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/bpla-logo-oval-only.png"></a>
-                                
+
                             </div>
                             <div class="small-img small-6 columns show-for-small-down text-right">
                                 <a href="<?php bloginfo('url');?>"><img src="<?php echo get_template_directory_uri(); ?>/assets/michigan-map.png"></a>