mirror of
https://github.com/wahyd4/hexo-phase-junv.git
synced 2026-08-09 04:55:53 +10:00
13 lines
531 B
Plaintext
13 lines
531 B
Plaintext
<% if (theme.google_analytics){ %>
|
|
<script type="text/javascript">
|
|
var _gaq = _gaq || [];
|
|
_gaq.push(['_setAccount', '<%= theme.google_analytics %>']);
|
|
_gaq.push(['_trackPageview']);
|
|
|
|
(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>
|
|
<% } %> |