Skip to content

Commit 16d0354

Browse files
vojtajinaIgorMinar
authored andcommitted
Load GA script using $script loader
1 parent 350ee31 commit 16d0354

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

docs/src/templates/index.html

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
'docs-combined.js',
3131
'docs-keywords.js'], function(){
3232
angular.compile(document)();
33+
$script(('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js');
3334
});
3435
});
3536
});
@@ -88,14 +89,5 @@
8889
<br class="clearFloat" />
8990
<div id="twoColFooter">© 2010-2011 angular</div>
9091
</div>
91-
92-
<script type="text/javascript">
93-
// lazy load GA asynchronous tracker
94-
(function() {
95-
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
96-
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
97-
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
98-
})();
99-
</script>
10092
</body>
10193
</html>

0 commit comments

Comments
 (0)