Merge lp:~svwilliams/summit/google-analytics into lp:summit

Proposed by Stephen V. Williams
Status: Merged
Approved by: Chris Johnston
Approved revision: 216
Merged at revision: 220
Proposed branch: lp:~svwilliams/summit/google-analytics
Merge into: lp:summit
Diff against target: 34 lines (+15/-1)
2 files modified
.bzrignore (+1/-0)
summit/templates/base.html (+14/-1)
To merge this branch: bzr merge lp:~svwilliams/summit/google-analytics
Reviewer Review Type Date Requested Status
Chris Johnston Approve
Review via email: mp+81511@code.launchpad.net

Commit message

added google analytics to head of base.html
added env to bzr ignore

To post a comment you must log in.
Revision history for this message
Chris Johnston (cjohnston) :
review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file '.bzrignore'
2--- .bzrignore 2011-10-06 20:22:37 +0000
3+++ .bzrignore 2011-11-08 01:07:25 +0000
4@@ -9,3 +9,4 @@
5 summit/media/js/twidenash
6 www
7 README
8+env
9
10=== modified file 'summit/templates/base.html'
11--- summit/templates/base.html 2011-10-30 16:48:14 +0000
12+++ summit/templates/base.html 2011-11-08 01:07:25 +0000
13@@ -12,7 +12,20 @@
14 <link rel="stylesheet" type="text/css" media="screen" href="/media/css/style.css" />
15 <link rel="stylesheet" type="text/css" media="screen" href="/media/css/twidenash.css" />
16 {% block 960css %}<link rel="stylesheet" type="text/css" href="{{ubuntu_website_media}}/css/960.css" />{% endblock %}
17-{% block head %}{% endblock %}
18+{% block head %}
19+ <script type="text/javascript">
20+ var _gaq = _gaq || [];
21+ _gaq.push(['_setAccount', 'UA-26810861-1']);
22+ _gaq.push(['_trackPageview']);
23+
24+ (function() {
25+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
26+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
27+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
28+ })();
29+ </script>
30+{% endblock %}
31+
32 {% endblock %}
33
34 {% block top_nav_login_links %}

Subscribers

People subscribed via source and target branches