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
=== modified file 'INSTALL'
--- INSTALL 2012-08-17 15:05:44 +0000
+++ INSTALL 2012-11-27 15:49:32 +0000
@@ -16,6 +16,7 @@
16 * libapache2-mod-xsendfile (>=0.10)16 * libapache2-mod-xsendfile (>=0.10)
17 * python-django (>=1.3.1)17 * python-django (>=1.3.1)
18 * python-django-openid18 * python-django-openid
19 * textile
1920
20To do development, you need a few more dependencies. Please check the21To do development, you need a few more dependencies. Please check the
21HACKING file.22HACKING file.
2223
=== modified file 'templates/header.html'
--- templates/header.html 2012-10-15 11:14:42 +0000
+++ templates/header.html 2012-11-27 15:49:32 +0000
@@ -25,6 +25,20 @@
25 width: 75%;25 width: 75%;
26 }26 }
27 </style>27 </style>
28
29 <script type="text/javascript">
30 var _gaq = _gaq || [];
31 _gaq.push(['_setAccount', 'UA-16756069-8']);
32 _gaq.push(['_trackPageview']);
33
34 (function() {
35 var ga = document.createElement('script'); ga.type = 'text/javascript';
36 ga.async = true;
37 ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
38 var s = document.getElementsByTagName('script')[0];
39 s.parentNode.insertBefore(ga, s);
40 })();
41 </script>
28</head>42</head>
29<body>43<body>
30<div id="head">44<div id="head">

Subscribers

People subscribed via source and target branches