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

Proposed by Andrew Ettinger
Status: Merged
Merged at revision: 11
Proposed branch: lp:~sillydeveloper/osdf/wp-google-analytics
Merge into: lp:osdf/wp
Diff against target: 34 lines (+18/-1)
1 file modified
header.php (+18/-1)
To merge this branch: bzr merge lp:~sillydeveloper/osdf/wp-google-analytics
Reviewer Review Type Date Requested Status
Toast McFarland Approve
Review via email: mp+46040@code.launchpad.net

Description of the change

Readds the missing google analytics code in the header.php =)

To post a comment you must log in.
Revision history for this message
Toast McFarland (daimoneze) wrote :

Sorry for the delay. Not used to being on this side.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'header.php'
2--- header.php 2011-01-07 20:55:07 +0000
3+++ header.php 2011-01-12 21:08:12 +0000
4@@ -13,6 +13,23 @@
5 <meta http-equiv="content-type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
6
7 <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" />
8+
9+ <script type="text/javascript">
10+
11+ var _gaq = _gaq || [];
12+ _gaq.push(['_setAccount', 'UA-2626971-7']);
13+ _gaq.push(['_trackPageview']);
14+
15+ (function() {
16+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = \
17+true;
18+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + \
19+'.google-analytics.com/ga.js';
20+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s\
21+);
22+ })();
23+
24+ </script>
25
26 <?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>
27
28@@ -38,4 +55,4 @@
29 <?php wp_nav_menu( array( 'menu' => 'header' ) ); ?><div class="clear"></div>
30
31 </div><script type="text/javascript">//$(function() { $('#home_link').addClass('nav_selected'); });</script>
32- <div id="main_content">
33\ No newline at end of file
34+ <div id="main_content">

Subscribers

People subscribed via source and target branches