|
28 | 28 | <!-- this needs to be loaded before guide's inline scripts -->
|
29 | 29 | <script src="/js/vue.js"></script>
|
30 | 30 | <script>window.PAGE_TYPE = "<%- page.type %>"</script>
|
| 31 | + |
| 32 | + <!-- ga --> |
| 33 | + <script> |
| 34 | + (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
| 35 | + (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
| 36 | + m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
| 37 | + })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); |
| 38 | +
|
| 39 | + ga('create', '<%- theme.google_analytics %>', '<%- theme.root_domain %>'); |
| 40 | + ga('send', 'pageview'); |
| 41 | + </script> |
31 | 42 | </head>
|
32 | 43 | <body class="<%- isIndex ? '' : 'docs' -%>">
|
33 | 44 | <div id="mobile-bar" <%- isIndex ? 'class="top"' : '' %>>
|
|
51 | 62 | <!-- main custom script for sidebars, version selects etc. -->
|
52 | 63 | <script src="/js/common.js"></script>
|
53 | 64 |
|
54 |
| - <!-- ga --> |
55 |
| - <script> |
56 |
| - (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ |
57 |
| - (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), |
58 |
| - m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) |
59 |
| - })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); |
60 |
| -
|
61 |
| - ga('create', '<%- theme.google_analytics %>', '<%- theme.root_domain %>'); |
62 |
| - ga('send', 'pageview'); |
63 |
| - </script> |
64 |
| - |
65 | 65 | <!-- search -->
|
66 | 66 | <link href="//cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css" rel='stylesheet' type='text/css'>
|
67 | 67 | <%- css('css/search') %>
|
|
0 commit comments