|
24 | 24 | <body class="docs-app-background"> |
25 | 25 | <material-docs-app></material-docs-app> |
26 | 26 | <script> |
27 | | - window.ga=window.ga||function(){(ga.q=ga.q||[]).push(arguments)};ga.l=+new Date; |
28 | | - ga('create', 'UA-8594346-24', 'auto'); |
29 | | - ga('send', 'pageview'); |
| 27 | + // Note this is a customised version of the GA tracking snippet |
| 28 | + // See the comments below for more info |
| 29 | + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| 30 | + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| 31 | + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g; |
| 32 | + ~i.name.indexOf('NG_DEFER_BOOTSTRAP')|| // only load library if not running e2e tests |
| 33 | + m.parentNode.insertBefore(a,m) |
| 34 | + })(window,document,'script','https://www.google-analytics.com/analytics.js','ga'); |
30 | 35 | </script> |
31 | 36 | <script> |
32 | 37 | // This hides the address bar on mobile browsers |
33 | 38 | // https://developers.google.com/web/fundamentals/native-hardware/fullscreen/ |
34 | 39 | window.addEventListener('load',function() { window.scrollTo(0, 1); }); |
35 | 40 | </script> |
36 | | - <script async src='https://www.google-analytics.com/analytics.js'></script> |
37 | 41 | <script src="https://ajax.googleapis.com/ajax/libs/hammerjs/2.0.8/hammer.min.js"></script> |
38 | 42 | <script src="https://cdnjs.cloudflare.com/ajax/libs/web-animations/2.2.5/web-animations.min.js"></script> |
39 | 43 | </body> |
|
0 commit comments