Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Unified Diff: third_party/buildbot_8_4p1/README.chromium

Issue 662513003: Add Google Analytics to buildbot pages. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/build
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/buildbot_8_4p1/README.chromium
diff --git a/third_party/buildbot_8_4p1/README.chromium b/third_party/buildbot_8_4p1/README.chromium
index 5c56a0f7cf06280123ba137e0bec18946a24de2b..727e66c101a23eb2d8dff073d415d8cb41fe9cb0 100644
--- a/third_party/buildbot_8_4p1/README.chromium
+++ b/third_party/buildbot_8_4p1/README.chromium
@@ -4609,3 +4609,24 @@ index 9099a08..f5b4f43 100644
if cmd.rc != 0:
return FAILURE
return SUCCESS
+
+diff --git a/third_party/buildbot_8_4p1/buildbot/status/web/templates/layout.html b/third_party/buildbot_8_4p1/buildbot/status/web/templates/layout.html
+index e988807..3a582ef 100644
+--- a/third_party/buildbot_8_4p1/buildbot/status/web/templates/layout.html
++++ b/third_party/buildbot_8_4p1/buildbot/status/web/templates/layout.html
+@@ -60,5 +60,15 @@
+ Page built: <b>{{ time }}</b> ({{ tz }})
+ </div>
+ {% endblock -%}
++ <script>
++ (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
++ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
++ m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
++ })(window,document,'script','//www.google-analytics.com/analytics.js','ga');
++
++ ga('create', 'UA-55762617-2', 'auto');
++ ga('send', 'pageview');
++
++ </script>
+ </body>
+ </html>
« no previous file with comments | « masters/master.client.nacl/templates/layout.html ('k') | third_party/buildbot_8_4p1/buildbot/status/web/templates/layout.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698