Update tracking partial
authorSteve Sutton <steve@gaslightmedia.com>
Wed, 7 Mar 2018 20:41:30 +0000 (15:41 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Wed, 7 Mar 2018 20:43:58 +0000 (15:43 -0500)
Put in logic for which code displays.

parts/tracking-pixels.php

index 0242c33..2a682da 100644 (file)
@@ -1,3 +1,4 @@
+<?php if ( is_page('clubhouse') ) { ?>
 <!-- Tag for Activity Group: True North Golf Club, Activity Name: Clubhouse, Activity ID: 7077990 -->
     <!-- Expected URL: http://www.truenorthgolf.com/clubhouse/ -->
 
@@ -23,6 +24,7 @@
     <iframe src="https://8447986.fls.doubleclick.net/activityi;src=8447986;type=truen0;cat=clubh0;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 -->
+<?php } else if ( is_page('contact') ) { ?>
 
     <!-- Tag for Activity Group: True North Golf Club, Activity Name: Contact, Activity ID: 7128997 -->
     <!-- Expected URL: http://www.truenorthgolf.com/contact/ -->
@@ -50,6 +52,7 @@
     </noscript>
     <!-- End of DoubleClick Floodlight Tag: Please do not remove -->
 
+<?php } else if ( is_page('events-calendar') ) { ?>
     <!-- Tag for Activity Group: True North Golf Club, Activity Name: Events Calendar, Activity ID: 7077996 -->
     <!-- Expected URL: http://www.truenorthgolf.com/events-calendar/ -->
 
@@ -75,6 +78,7 @@
     <iframe src="https://8447986.fls.doubleclick.net/activityi;src=8447986;type=truen0;cat=event0;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 -->
+<?php } else if ( is_page('golf-course') ) { ?>
 
     <!-- Tag for Activity Group: True North Golf Club, Activity Name: Golf Course, Activity ID: 7080750 -->
     <!-- Expected URL: http://www.truenorthgolf.com/golf-course/ -->
     </noscript>
     <!-- End of DoubleClick Floodlight Tag: Please do not remove -->
 
-    <!-- Tag for Activity Group: True North Golf Club, Activity Name: Homepage, Activity ID: 7129694 -->
-    <!-- Expected URL: http://www.truenorthgolf.com -->
+<?php } else if ( is_page('membership') ) { ?>
+
+    <!-- Tag for Activity Group: True North Golf Club, Activity Name: Membership, Activity ID: 7079736 -->
+    <!-- Expected URL: http://www.truenorthgolf.com/membership/ -->
 
     <!--
-    Activity ID: 7129694
-    Activity Name: Homepage
+    Activity ID: 7079736
+    Activity Name: Membership
     Activity Group Name: True North Golf Club
     -->
 
     <!--
     Start of DoubleClick Floodlight Tag: Please do not remove
-    Activity name of this tag: Homepage
-    URL of the webpage where the tag is expected to be placed: http://www.truenorthgolf.com
+    Activity name of this tag: Membership
+    URL of the webpage where the tag is expected to be placed: http://www.truenorthgolf.com/membership/
     This tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.
     Creation Date: 03/05/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=homep0;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=membe0;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=homep0;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=membe0;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 -->
+<?php } else if ( is_page('real-estate') ) { ?>
 
-    <!-- Tag for Activity Group: True North Golf Club, Activity Name: Membership, Activity ID: 7079736 -->
-    <!-- Expected URL: http://www.truenorthgolf.com/membership/ -->
+    <!-- Tag for Activity Group: True North Golf Club, Activity Name: Real Estate, Activity ID: 7133149 -->
+    <!-- Expected URL: http://www.truenorthgolf.com/real-estate/ -->
 
     <!--
-    Activity ID: 7079736
-    Activity Name: Membership
+    Activity ID: 7133149
+    Activity Name: Real Estate
     Activity Group Name: True North Golf Club
     -->
 
     <!--
     Start of DoubleClick Floodlight Tag: Please do not remove
-    Activity name of this tag: Membership
-    URL of the webpage where the tag is expected to be placed: http://www.truenorthgolf.com/membership/
+    Activity name of this tag: Real Estate
+    URL of the webpage where the tag is expected to be placed: http://www.truenorthgolf.com/real-estate/
     This tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.
     Creation Date: 03/05/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=membe0;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=reale0;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=membe0;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=reale0;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 -->
+<?php } else if ( is_front_page() ) { ?>
 
-    <!-- Tag for Activity Group: True North Golf Club, Activity Name: Real Estate, Activity ID: 7133149 -->
-    <!-- Expected URL: http://www.truenorthgolf.com/real-estate/ -->
+    <!-- Tag for Activity Group: True North Golf Club, Activity Name: Homepage, Activity ID: 7129694 -->
+    <!-- Expected URL: http://www.truenorthgolf.com -->
 
     <!--
-    Activity ID: 7133149
-    Activity Name: Real Estate
+    Activity ID: 7129694
+    Activity Name: Homepage
     Activity Group Name: True North Golf Club
     -->
 
     <!--
     Start of DoubleClick Floodlight Tag: Please do not remove
-    Activity name of this tag: Real Estate
-    URL of the webpage where the tag is expected to be placed: http://www.truenorthgolf.com/real-estate/
+    Activity name of this tag: Homepage
+    URL of the webpage where the tag is expected to be placed: http://www.truenorthgolf.com
     This tag must be placed between the <body> and </body> tags, as close as possible to the opening tag.
     Creation Date: 03/05/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=reale0;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=homep0;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=reale0;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=homep0;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 -->
\ No newline at end of file
+    <!-- End of DoubleClick Floodlight Tag: Please do not remove -->
+<?php } ?>