Adding GTM tags
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 5 Jan 2018 18:21:20 +0000 (13:21 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 5 Jan 2018 18:21:20 +0000 (13:21 -0500)
Google Tag Manager from client request.

header.php
style.css

index 8e164fd..09f55c9 100644 (file)
         <link rel="apple-touch-icon-precomposed" sizes="114x114" href="<?php echo get_stylesheet_directory_uri() ; ?>/assets/img/icons/apple-touch-icon-114x114-precomposed.png">
         <link rel="apple-touch-icon-precomposed" sizes="72x72" href="<?php echo get_stylesheet_directory_uri() ; ?>/assets/img/icons/apple-touch-icon-72x72-precomposed.png">
         <link rel="apple-touch-icon-precomposed" href="<?php echo get_stylesheet_directory_uri() ; ?>/assets/img/icons/apple-touch-icon-precomposed.png">
+<!-- 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-MHPZ5SF');</script>
+<!-- End Google Tag Manager -->
         <?php wp_head(); ?>
     </head>
     <body <?php body_class(); ?>>
+<!-- Google Tag Manager (noscript) -->
+<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MHPZ5SF"
+height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
+<!-- End Google Tag Manager (noscript) -->
         <!-- Start of DoubleClick Floodlight Tag: Please do not remove
             Activity name of this tag: DBM_AlpenaCvb_06212017_SiteRMSG
             URL of the webpage where the tag is expected to be placed: http://www.advancenet.com
             This tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.
-            Creation Date: 06/21/2017 
+            Creation Date: 06/21/2017
         -->
         <script type="text/javascript">
             var axel = Math.random() + "";
index 739567d..17cbdd2 100644 (file)
--- a/style.css
+++ b/style.css
@@ -2,6 +2,6 @@
 Theme Name:         Visit Alpena
 Theme URI:          http://www.gaslightmedia.com
 Description:        The Theme for the Alpena CVB Website
-Version: 2.4.5
+Version: 2.4.6
 Author:             Gaslight Media
 */