← Back to team overview

osdf-devteam team mailing list archive

[Merge] lp:~sillydeveloper/osdf/wp-google-analytics into lp:osdf/wp

 

Andrew Ettinger has proposed merging lp:~sillydeveloper/osdf/wp-google-analytics into lp:osdf/wp.

Requested reviews:
  OSDF Dev Team (osdf-devteam)

For more details, see:
https://code.launchpad.net/~sillydeveloper/osdf/wp-google-analytics/+merge/46040

Readds the missing google analytics code in the header.php =)
-- 
https://code.launchpad.net/~sillydeveloper/osdf/wp-google-analytics/+merge/46040
Your team OSDF Dev Team is requested to review the proposed merge of lp:~sillydeveloper/osdf/wp-google-analytics into lp:osdf/wp.
=== modified file 'header.php'
--- header.php	2011-01-07 20:55:07 +0000
+++ header.php	2011-01-12 21:08:12 +0000
@@ -13,6 +13,23 @@
  <meta http-equiv="content-type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
  
  <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" />
+
+ <script type="text/javascript">
+
+                var _gaq = _gaq || [];
+                _gaq.push(['_setAccount', 'UA-2626971-7']);
+                _gaq.push(['_trackPageview']);
+
+                (function() {
+                var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = \
+true;
+                ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + \
+'.google-analytics.com/ga.js';
+                var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s\
+);
+                })();
+
+ </script>
  
  <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
  
@@ -38,4 +55,4 @@
 					<?php wp_nav_menu( array( 'menu' => 'header' ) ); ?><div class="clear"></div>
         					        
     		</div><script type="text/javascript">//$(function() {  $('#home_link').addClass('nav_selected'); });</script>
-    		<div id="main_content">
\ No newline at end of file
+    		<div id="main_content">