GitHub - Hexo - 网站数据分析 - Baidu

GitHub - Hexo - 网站数据分析 - Baidu

  • 原文地址:
  • 原文作者:
  • 本文永久链接:
特别说明

当前文章内容迁移中,如有问题,请提交 issues 谢谢~~

一. Baidu

1. 进入 theame 文件夹,正在使用的主题

编辑文件 themes/使用的主题/_config.yml,添加一行配置,

baidu_tongji: true

2. 新建用于分析的脚本文件

新建 themes/使用的主题/layout/_partial/baidu_tongji.ejs,新增内容:

<% if (theme.baidu_tongji) &#123; %>
<script type="text/javascript">
#申请的百度统计代码
</script>
<% &#125; %>

编辑 themes/使用的主题/layout/_partial/head.ejs</head> 前添加 <%- partial("baidu_tongji") %> 重新生产部署站点即可。

Prev:
响应式编程 - RxJava - Disposable
Next:
文章目录 - 理论 - 中间件
Contents of this article
Contents of this article