mirror of
https://github.com/tangkunyin/hexo-theme-jsimple.git
synced 2026-01-25 14:56:28 +00:00
30 lines
1.1 KiB
Plaintext
30 lines
1.1 KiB
Plaintext
<script defer src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
|
|
|
|
<!-- disqus count -->
|
|
<% if (is_post() || is_page()) { %>
|
|
<% if (theme.comments.enable){ %>
|
|
<script defer id="dsq-count-scr" src="//<%=theme.comments.shortname %>.disqus.com/count.js"></script>
|
|
<% } %>
|
|
<% } %>
|
|
|
|
<!-- google analytics -->
|
|
<% if (theme.analytics.enable){ %>
|
|
<script defer src="https://www.googletagmanager.com/gtag/js?id=<%= theme.analytics.configId %>"></script>
|
|
<script>
|
|
window.dataLayer = window.dataLayer || [];
|
|
function gtag(){dataLayer.push(arguments);}
|
|
gtag('js', new Date());
|
|
gtag('config', '<%= theme.analytics.configId %>');
|
|
</script>
|
|
<% } %>
|
|
|
|
<!-- ms clarity -->
|
|
<% if (theme.clarity.enable){ %>
|
|
<script type="text/javascript">
|
|
(function(c,l,a,r,i,t,y){
|
|
c[a]=c[a]||function(){(c[a].q=c[a].q||[]).push(arguments)};
|
|
t=l.createElement(r);t.defer=1;t.src="https://www.clarity.ms/tag/"+i;
|
|
y=l.getElementsByTagName(r)[0];y.parentNode.insertBefore(t,y);
|
|
})(window, document, "clarity", "script", "<%= theme.clarity.configId %>");
|
|
</script>
|
|
<% } %> |