mirror of
https://github.com/Hopiu/angular.js.git
synced 2026-05-28 15:28:15 +00:00
Load GA script using $script loader
This commit is contained in:
parent
350ee31107
commit
16d0354f93
1 changed files with 1 additions and 9 deletions
|
|
@ -30,6 +30,7 @@
|
||||||
'docs-combined.js',
|
'docs-combined.js',
|
||||||
'docs-keywords.js'], function(){
|
'docs-keywords.js'], function(){
|
||||||
angular.compile(document)();
|
angular.compile(document)();
|
||||||
|
$script(('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js');
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
@ -88,14 +89,5 @@
|
||||||
<br class="clearFloat" />
|
<br class="clearFloat" />
|
||||||
<div id="twoColFooter">© 2010-2011 angular</div>
|
<div id="twoColFooter">© 2010-2011 angular</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<script type="text/javascript">
|
|
||||||
// lazy load GA asynchronous tracker
|
|
||||||
(function() {
|
|
||||||
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
|
|
||||||
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
|
|
||||||
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
|
|
||||||
})();
|
|
||||||
</script>
|
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue