From f9a5ec5940e024862656b356bc1ae7ba49658e3d Mon Sep 17 00:00:00 2001 From: lianglianglee Date: Wed, 5 Apr 2023 13:22:27 +0800 Subject: [PATCH] add umami analytics --- _config.yml | 6 +++++- layout/_partial/footer.ejs | 6 ++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/_config.yml b/_config.yml index ef81d97..a893029 100644 --- a/_config.yml +++ b/_config.yml @@ -197,7 +197,11 @@ website_count: site_uv: false # Option values: true | false site_pv: false # Option values: true | false page_pv: false # Option values: true | false - +analytics: + umami: + umami_enable : false + umami_src: "http://*******/umami.js" + umami_data_id: "*******" # --------------------------------------------------------------------------------------- # Local Search # Docs: https://keep-docs.xpoet.cn/tutorial/configuration-guide/local_search.html diff --git a/layout/_partial/footer.ejs b/layout/_partial/footer.ejs index 200b348..8bc26c4 100644 --- a/layout/_partial/footer.ejs +++ b/layout/_partial/footer.ejs @@ -7,6 +7,7 @@ const { const { author: bi_author } = theme.base_info const { author: hexo_author } = config const { site_uv: bsz_site_uv, site_pv: bsz_site_pv, enable: bsz_enable } = theme.website_count.busuanzi_count +const { umami_enable: umami_enable, umami_src : umami_src, umami_data_id : umami_data_id } = theme.analytics.umami %>