summaryrefslogtreecommitdiff
path: root/themes/hexo-theme-freemind.bithack/layout/_partial/post/analytics.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'themes/hexo-theme-freemind.bithack/layout/_partial/post/analytics.ejs')
m---------themes/hexo-theme-freemind.bithack0
-rw-r--r--themes/hexo-theme-freemind.bithack/layout/_partial/post/analytics.ejs14
2 files changed, 14 insertions, 0 deletions
diff --git a/themes/hexo-theme-freemind.bithack b/themes/hexo-theme-freemind.bithack
deleted file mode 160000
-Subproject db335ebdc14507c7687084da084a56eb3d003f1
diff --git a/themes/hexo-theme-freemind.bithack/layout/_partial/post/analytics.ejs b/themes/hexo-theme-freemind.bithack/layout/_partial/post/analytics.ejs
new file mode 100644
index 0000000..209eafb
--- /dev/null
+++ b/themes/hexo-theme-freemind.bithack/layout/_partial/post/analytics.ejs
@@ -0,0 +1,14 @@
+<% if (theme.google_analytics.enable){ %>
+ <!-- Global site tag (gtag.js) - Google Analytics -->
+<script async src="https://www.googletagmanager.com/gtag/js?id=<%= theme.google_analytics.siteid %>"></script>
+<script>
+ window.dataLayer = window.dataLayer || [];
+ function gtag(){dataLayer.push(arguments);}
+ gtag('js', new Date());
+
+ gtag('config', '<%= theme.google_analytics.siteid %>');
+</script>
+
+<% } %>
+
+