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

Unified Diff: Tools/GardeningServer/lib/analytics.html

Issue 659503003: Add analytics to sheriff-o-matic. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add comment. 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
« no previous file with comments | « no previous file | Tools/GardeningServer/ui/ct-sheriff-o-matic.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Tools/GardeningServer/lib/analytics.html
diff --git a/Tools/GardeningServer/lib/analytics.html b/Tools/GardeningServer/lib/analytics.html
new file mode 100644
index 0000000000000000000000000000000000000000..769d199d26dbdedad7a03d61a48bed2794c35bf6
--- /dev/null
+++ b/Tools/GardeningServer/lib/analytics.html
@@ -0,0 +1,22 @@
+<!--
+Copyright 2014 The Chromium Authors. All rights reserved.
+Use of this source code is governed by a BSD-style license that can be
+found in the LICENSE file.
+-->
+
+<!--
+This is a copy of the Google Analytics snippet obtained from
+http://www.google.com/analytics/.
+-->
+
+<script>
+ function Analytics(trackingId){
+ (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', trackingId, 'auto');
+ ga('send', 'pageview');
+ }
+</script>
« no previous file with comments | « no previous file | Tools/GardeningServer/ui/ct-sheriff-o-matic.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698