Update the GTM code
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 20 Jul 2017 15:17:02 +0000 (11:17 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 20 Jul 2017 15:17:02 +0000 (11:17 -0400)
Changing placement of code.

footer.php
header.php
style.css

index c855852..cf85626 100644 (file)
         </div><!--End of inner-wrap-->
       </div><!--End of off-canvas-->
   <?php wp_footer();?>
-<!-- Google Tag Manager (noscript) -->
-<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NF27NGN"
-height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
-<!-- End Google Tag Manager (noscript) --> 
 <!-- Conversion Pixel - JRC 5906 - //www.mountpleasantwow.com/ - DO NOT MODIFY -->
 <script src="//ib.adnxs.com/px?id=169990&t=1" type="text/javascript"></script>
 <!-- End of Conversion Pixel -->
index f5c1c85..cfb66b1 100644 (file)
@@ -9,6 +9,14 @@
     <link href='//fonts.googleapis.com/css?family=Open+Sans:400,400italic,700' rel='stylesheet' type='text/css'>
     <link href='//fonts.googleapis.com/css?family=Kaushan+Script' rel='stylesheet' type='text/css'>
     <link href='//fonts.googleapis.com/css?family=Euphoria+Script' rel='stylesheet' type='text/css'>
+
+<!-- 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-NF27NGN');</script>
+<!-- End Google Tag Manager -->
     <!-- Facebook Pixel Code -->
     <script>
         !function(f,b,e,v,n,t,s)
         t.src=v;s=b.getElementsByTagName(e)[0];
         s.parentNode.insertBefore(t,s)}(window,document,'script',
         'https://connect.facebook.net/en_US/fbevents.js');
-        fbq('init', '1690921537794421'); 
+        fbq('init', '1690921537794421');
         fbq('track', 'PageView');
     </script>
     <noscript>
         <img height="1" width="1" src="https://www.facebook.com/tr?id=1690921537794421&ev=PageView&noscript=1"/>
     </noscript>
     <!-- End Facebook Pixel Code -->
-    <!-- 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-NF27NGN');</script>
-    <!-- End Google Tag Manager -->
     <?php wp_head(); ?>
     <script>
         window.home_url = '<?php echo get_stylesheet_directory_uri() ?>';
@@ -44,6 +45,9 @@ Framework codes: b3 (Bootstrap 3 fixed), b3f (Bootstrap 3 fluid), bo (Bootstrap
 Note 1: 'Gutter width' parameter only applies to gutterless grid systems (Bootstrap 3, Foundation 4 & 5).
 Note 2: 'Nb cols' parameter for Bootstrap only.
 -->
+<!-- Google Tag Manager (noscript) -->
+<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NF27NGN" 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">
@@ -83,7 +87,7 @@ Note 2: 'Nb cols' parameter for Bootstrap only.
                             </div>
                         </div>
                         <?php } else { ?>
-                        
+
                         <?php } ?>
                     </header>
                     <?php get_template_part('parts/off-canvas-menu');?>
index f1781df..68232e0 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: MountPleasantCVB
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for MountPleasantCVB
-Version: 1.2.26
+Version: 1.2.28
 */