adding Google code
authorIan Weller <ian@gaslightmedia.com>
Thu, 22 Dec 2016 21:21:39 +0000 (16:21 -0500)
committerIan Weller <ian@gaslightmedia.com>
Thu, 22 Dec 2016 21:21:39 +0000 (16:21 -0500)
I added some Google tracking code to the head tag area and right after the
first body tag.  It doesn't seem to do anything weird at first glance.

header.php

index 2322076..4b527de 100644 (file)
       })();
 
     </script>
+    <!-- Google Tag Manager -->
+    <script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
+    new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
+    j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
+    'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
+    })(window,document,'script','dataLayer','GTM-5CZ5BMH');</script>
+    <!-- End Google Tag Manager -->  
   </head>
   <body>
+      <!-- Google Tag Manager (noscript) -->
+      <noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-5CZ5BMH"
+        height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
+      <!-- End Google Tag Manager (noscript) -->
       <div class="off-canvas-wrap" data-offcanvas>
         <div class="inner-wrap">
             <div id="page-wrapper">