Merge lp:~dooferlad/linaro-license-protection/fix-analytics into lp:~linaro-automation/linaro-license-protection/trunk

Proposed by James Tunnicliffe
Status: Merged
Approved by: Stevan Radaković
Approved revision: 150
Merged at revision: 150
Proposed branch: lp:~dooferlad/linaro-license-protection/fix-analytics
Merge into: lp:~linaro-automation/linaro-license-protection/trunk
Diff against target: 36 lines (+15/-0)
2 files modified
INSTALL (+1/-0)
templates/header.html (+14/-0)
To merge this branch: bzr merge lp:~dooferlad/linaro-license-protection/fix-analytics
Reviewer Review Type Date Requested Status
Stevan Radaković Approve
Review via email: mp+136453@code.launchpad.net

Description of the change

Add analytics code in to header.

To post a comment you must log in.
Revision history for this message
Stevan Radaković (stevanr) wrote :

Thanks for getting this back in James.
Approve +1.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'INSTALL'
2--- INSTALL 2012-08-17 15:05:44 +0000
3+++ INSTALL 2012-11-27 15:49:32 +0000
4@@ -16,6 +16,7 @@
5 * libapache2-mod-xsendfile (>=0.10)
6 * python-django (>=1.3.1)
7 * python-django-openid
8+ * textile
9
10 To do development, you need a few more dependencies. Please check the
11 HACKING file.
12
13=== modified file 'templates/header.html'
14--- templates/header.html 2012-10-15 11:14:42 +0000
15+++ templates/header.html 2012-11-27 15:49:32 +0000
16@@ -25,6 +25,20 @@
17 width: 75%;
18 }
19 </style>
20+
21+ <script type="text/javascript">
22+ var _gaq = _gaq || [];
23+ _gaq.push(['_setAccount', 'UA-16756069-8']);
24+ _gaq.push(['_trackPageview']);
25+
26+ (function() {
27+ var ga = document.createElement('script'); ga.type = 'text/javascript';
28+ ga.async = true;
29+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
30+ var s = document.getElementsByTagName('script')[0];
31+ s.parentNode.insertBefore(ga, s);
32+ })();
33+ </script>
34 </head>
35 <body>
36 <div id="head">

Subscribers

People subscribed via source and target branches