Chromium Code Reviews| 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..f5add56bb6b58dd10bf13209856cc5c5d317e855 |
| --- /dev/null |
| +++ b/Tools/GardeningServer/lib/analytics.html |
| @@ -0,0 +1,17 @@ |
| +<!-- |
| +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. |
| +--> |
| + |
| +<script> |
| + function Analytics(trackingId){ |
| + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
|
ojan
2014/10/15 03:44:49
Maybe add a comment about where this code came fro
ghost stip (do not use)
2014/10/15 19:02:22
Done.
|
| + (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> |