Pixel updates
authorSteve Sutton <steve@gaslightmedia.com>
Fri, 13 Apr 2018 14:19:50 +0000 (10:19 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Fri, 13 Apr 2018 14:19:50 +0000 (10:19 -0400)
Moving facebook pixel code into the <head> section.
Adding LinkedIn Insight tag to just inside the <body> tag.
Update the code for the contact page pixel code to better track the
submit button.

header.php
parts/tracking-pixels.php
style.css

index aaafa92..c218730 100644 (file)
     <style type="text/css">.tk-ingram-wide-2{font-family:"ingram-wide-2",sans-serif;}</style>
     <link href="https://fonts.googleapis.com/css?family=Rasa" rel="stylesheet">
     <?php wp_head(); ?>
+
+<!-- Facebook Pixel Code -->
+<script>
+!function(f,b,e,v,n,t,s)
+{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
+n.callMethod.apply(n,arguments):n.queue.push(arguments)};
+if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
+n.queue=[];t=b.createElement(e);t.async=!0;
+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', '1391475150964254');
+fbq('track', 'PageView');
+</script>
+<noscript>
+ <img height="1" width="1"
+src="https://www.facebook.com/tr?id=1391475150964254&ev=PageView
+&noscript=1"/>
+</noscript>
+<!-- End Facebook Pixel Code -->
+
   </head>
   <body <?php  body_class(  ); ?>>
-      
+
       <?php get_template_part('parts/tracking-pixels'); ?>
 
       <div class="off-canvas-wrap" data-offcanvas>
@@ -43,4 +64,4 @@
                     <?php get_template_part('parts/top-bar');?>
                     <a id="sm-logo" class="show-for-small-down text-center" href="<?php bloginfo('url'); ?>"><img alt="True North Golf logo" src="<?php bloginfo('template_url'); ?>/assets/logo-white.png"></a>
                 </header>
-                <?php get_template_part('parts/off-canvas-menu');?>
\ No newline at end of file
+                <?php get_template_part('parts/off-canvas-menu');?>
index a4342c4..ca0815e 100644 (file)
     <!-- End of DoubleClick Floodlight Tag: Please do not remove -->
 <?php } else if ( is_page('contact') ) { ?>
 
-    <!-- Tag for Activity Group: True North Golf Club, Activity Name: Contact, Activity ID: 7128997 -->
+    <!-- Tag for Activity Group: True North Golf Club, Activity Name: Contact Submit Button, Activity ID: 7258343 -->
     <!-- Expected URL: http://www.truenorthgolf.com/contact/ -->
 
     <!--
-    Activity ID: 7128997
-    Activity Name: Contact
+    Activity ID: 7258343
+    Activity Name: Contact Submit Button
     Activity Group Name: True North Golf Club
     -->
 
     <!--
     Start of DoubleClick Floodlight Tag: Please do not remove
-    Activity name of this tag: Contact
+    Activity name of this tag: Contact Submit Button
     URL of the webpage where the tag is expected to be placed: http://www.truenorthgolf.com/contact/
     This tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.
-    Creation Date: 03/05/2018
+    Creation Date: 04/11/2018
     -->
     <script type="text/javascript">
     var axel = Math.random() + "";
     var a = axel * 10000000000000;
-    document.write('<iframe src="https://8447986.fls.doubleclick.net/activityi;src=8447986;type=truen0;cat=conta0;dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;ord=' + a + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>');
+    document.write('<iframe src="https://8447986.fls.doubleclick.net/activityi;src=8447986;type=truen0;cat=conta00;dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;ord=' + a + '?" width="1" height="1" frameborder="0" style="display:none"></iframe>');
     </script>
     <noscript>
-    <iframe src="https://8447986.fls.doubleclick.net/activityi;src=8447986;type=truen0;cat=conta0;dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;ord=1?" width="1" height="1" frameborder="0" style="display:none"></iframe>
+    <iframe src="https://8447986.fls.doubleclick.net/activityi;src=8447986;type=truen0;cat=conta00;dc_lat=;dc_rdid=;tag_for_child_directed_treatment=;ord=1?" width="1" height="1" frameborder="0" style="display:none"></iframe>
     </noscript>
     <!-- End of DoubleClick Floodlight Tag: Please do not remove -->
 
     <!-- End of DoubleClick Floodlight Tag: Please do not remove -->
 <?php } ?>
 
-<!-- Facebook Pixel Code -->
-<script>
-!function(f,b,e,v,n,t,s)
-{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
-n.callMethod.apply(n,arguments):n.queue.push(arguments)};
-if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
-n.queue=[];t=b.createElement(e);t.async=!0;
-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', '1391475150964254');
-fbq('track', 'PageView');
-</script>
-<noscript>
- <img height="1" width="1"
-src="https://www.facebook.com/tr?id=1391475150964254&ev=PageView
-&noscript=1"/>
-</noscript>
-<!-- End Facebook Pixel Code -->
 
+<script type="text/javascript">
+_linkedin_data_partner_id = "241428";
+</script>
+<script type="text/javascript">
+(function(){var s = document.getElementsByTagName("script")[0]; var b = document.createElement("script"); b.type = "text/javascript";b.async = true; b.src = "https://snap.licdn.com/li.lms-analytics/insight.min.js"; s.parentNode.insertBefore(b, s);})(); </script>
+<noscript> <img height="1" width="1" style="display:none;" alt="" src="https://dc.ads.linkedin.com/collect/?pid=241428&fmt=gif" /> </noscript>
index 9d85b1c..a8a20aa 100644 (file)
--- a/style.css
+++ b/style.css
@@ -4,5 +4,5 @@ Theme Name: TrueNorthGolf
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for True North Golf Club
-Version: 1.0.20
+Version: 1.0.21
 */